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

Class Shift

                                  object --+        
                                           |        
                            Element'.Element --+    
                                               |    
IEC61970.Core.IdentifiedObject'.IdentifiedObject --+
                                                   |
                                                  Shift
Known Subclasses:

Generally referring to a period of operation or work performed. Whether shift is open/closed can be derived from attributes 'activiryInterval.start' and 'activityInterval.end'. The grand total for receipts (i.e., cumulative total of all actual receipted amounts during this shift; bankable + non-bankable; excludes rounding error totals) can be derived from Receipt attributes: =sum(Receipt.receiptAmount) ; includes bankable and non-bankable receipts. Must also reconcile against: =sum(receiptsGrandTotalBankable + receiptsGrandTotalNonBankable). Must also reconcile against ReceiptSummary: =sum(ReceiptSummary.receiptsTotal). The attributes with 'GrandTotal' defined in this class may need to be used when the source data is periodically flushed from the system and then these cannot be derived.

Instance Methods [hide private]
 
__init__(self, receiptsGrandTotalNonBankable=0.0, receiptsGrandTotalBankable=0.0, receiptsGrandTotalRounding=0.0, transactionsGrandTotal=0.0, transactionsGrandTotalRounding=0.0, activityInterval=None, *args, **kw_args)
Initialises a new 'Shift' instance.

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: getModelingAuthoritySet, setModelingAuthoritySet

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

Class Variables [hide private]
  _attr_types = {'receiptsGrandTotalBankable': <type 'float'>, '...
  _attrs = ['receiptsGrandTotalNonBankable', 'receiptsGrandTotal...
  _defaults = {'receiptsGrandTotalBankable': 0.0, 'receiptsGrand...
  _refs = ['activityInterval']
  activityInterval = None

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

Properties [hide private]

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: ModelingAuthoritySet

Inherited from object: __class__

Method Details [hide private]

__init__(self, receiptsGrandTotalNonBankable=0.0, receiptsGrandTotalBankable=0.0, receiptsGrandTotalRounding=0.0, transactionsGrandTotal=0.0, transactionsGrandTotalRounding=0.0, activityInterval=None, *args, **kw_args)
(Constructor)

 

Initialises a new 'Shift' instance.

Parameters:
  • receiptsGrandTotalNonBankable - Total of amounts receipted during this shift that cannot be manually banked (card payments for example). Values are obtained from Receipt attributes: =sum(Receipt.receiptAmount) for all Receipt.bankable = false.
  • receiptsGrandTotalBankable - Total of amounts receipted during this shift that can be manually banked (cash and cheques for example). Values are obtained from Receipt attributes: =sum(Receipt.receiptAmount) for all Receipt.bankable = true.
  • receiptsGrandTotalRounding - Cumulative amount in error due to process rounding not reflected in receiptsGrandTotal. Values are obtained from Receipt attributes: =sum(Receipt.receiptRounding).
  • transactionsGrandTotal - Cumulative total of transacted amounts during this shift. Values are obtained from Transaction attributes: =sum(Transaction.transactionAmount). It must also reconcile against TransactionSummary: =sum(TransactionSummary.transactionsTotal).
  • transactionsGrandTotalRounding - Cumulative amount in error due to process rounding not reflected in transactionsGandTotal. Values are obtained from Transaction attributes: =sum(Transaction.transactionRounding).
  • activityInterval - Interval for activity of this shift.
Overrides: object.__init__

Class Variable Details [hide private]

_attr_types

Value:
{'receiptsGrandTotalBankable': <type 'float'>,
 'receiptsGrandTotalNonBankable': <type 'float'>,
 'receiptsGrandTotalRounding': <type 'float'>,
 'transactionsGrandTotal': <type 'float'>,
 'transactionsGrandTotalRounding': <type 'float'>}

_attrs

Value:
['receiptsGrandTotalNonBankable',
 'receiptsGrandTotalBankable',
 'receiptsGrandTotalRounding',
 'transactionsGrandTotal',
 'transactionsGrandTotalRounding']

_defaults

Value:
{'receiptsGrandTotalBankable': 0.0,
 'receiptsGrandTotalNonBankable': 0.0,
 'receiptsGrandTotalRounding': 0.0,
 'transactionsGrandTotal': 0.0,
 'transactionsGrandTotalRounding': 0.0}