Package CIM14 :: Package IEC61968 :: Package PaymentMetering :: Module AccountingUnit' :: Class AccountingUnit
[hide private]
[frames] | no frames]

Class AccountingUnit

      object --+    
               |    
Element'.Element --+
                   |
                  AccountingUnit

Unit for accounting; use either 'energyUnit' or 'currencyUnit' to specify the unit for 'value'.

Instance Methods [hide private]
 
__init__(self, multiplier='k', monetaryUnit='CNY', energyUnit=0.0, value=0.0, *args, **kw_args)
Initialises a new 'AccountingUnit' instance.

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

Class Variables [hide private]
  _attr_types = {'energyUnit': <type 'float'>, 'monetaryUnit': <...
  _attrs = ['multiplier', 'monetaryUnit', 'energyUnit', 'value']
  _defaults = {'energyUnit': 0.0, 'monetaryUnit': 'CNY', 'multip...
  _enums = {'monetaryUnit': 'Currency', 'multiplier': 'UnitMulti...

Inherited from Element'.Element (private): _many_refs, _refs

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, multiplier='k', monetaryUnit='CNY', energyUnit=0.0, value=0.0, *args, **kw_args)
(Constructor)

 

Initialises a new 'AccountingUnit' instance.

Parameters:
  • multiplier - Multiplier for the 'energyUnit' or 'monetaryUnit'. Values are: "k", "d", "n", "M", "none", "G", "micro", "T", "c", "m", "p"
  • monetaryUnit - Unit of currency. Values are: "CNY", "EUR", "INR", "AUD", "CHF", "DKK", "other", "RUR", "SEK", "GBP", "JPY", "NOK", "CAD", "USD"
  • energyUnit - Unit of service.
  • value - Value expressed in applicable units.
Overrides: object.__init__

Class Variable Details [hide private]

_attr_types

Value:
{'energyUnit': <type 'float'>,
 'monetaryUnit': <type 'str'>,
 'multiplier': <type 'str'>,
 'value': <type 'float'>}

_defaults

Value:
{'energyUnit': 0.0,
 'monetaryUnit': 'CNY',
 'multiplier': 'k',
 'value': 0.0}

_enums

Value:
{'monetaryUnit': 'Currency', 'multiplier': 'UnitMultiplier'}