Package CIM15 :: Package IEC61970 :: Package Informative :: Package InfCommon :: Module Ratio' :: Class Ratio
[hide private]
[frames] | no frames]

Class Ratio

object --+
         |
        Ratio

Fraction specified explicitly with a numerator and denominator, which can be used to calculate the quotient.Fraction specified explicitly with a numerator and denominator, which can be used to calculate the quotient.

Instance Methods [hide private]
 
__init__(self, numerator=0.0, denominator=0.0)
Initialises a new 'Ratio' instance.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _attr_types = {'denominator': <type 'float'>, 'numerator': <ty...
  _attrs = ['numerator', 'denominator']
  _defaults = {'denominator': 0.0, 'numerator': 0.0}
  _enums = {}
  _many_refs = []
  _refs = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, numerator=0.0, denominator=0.0)
(Constructor)

 

Initialises a new 'Ratio' instance.

Parameters:
  • numerator - The part of a fraction that is above the line and signifies the number to be divided by the denominator.
  • denominator - The part of a fraction that is below the line and that functions as the divisor of the numerator.
Overrides: object.__init__

Class Variable Details [hide private]

_attr_types

Value:
{'denominator': <type 'float'>, 'numerator': <type 'float'>}