Package CIM14 :: Package IEC61968 :: Package Customers :: Module Customer' :: Class Customer
[hide private]
[frames] | no frames]

Class Customer

                                  object --+            
                                           |            
                            Element'.Element --+        
                                               |        
IEC61970.Core.IdentifiedObject'.IdentifiedObject --+    
                                                   |    
                   Common.Organisation'.Organisation --+
                                                       |
                                                      Customer

Organisation receiving services from ServiceSupplier.

Instance Methods [hide private]
 
__init__(self, kind='residentialAndCommercial', pucNumber='', specialNeed='', vip=False, status=None, Works=None, CustomerAgreements=None, EndDeviceAssets=None, *args, **kw_args)
Initialises a new 'Customer' instance.
 
addCustomerAgreements(self, *CustomerAgreements)
 
addEndDeviceAssets(self, *EndDeviceAssets)
 
addWorks(self, *Works)
 
getCustomerAgreements(self)
All agreements of this customer.
 
getEndDeviceAssets(self)
All end device assets of this customer.
 
getWorks(self)
All the works performed for this customer.
 
removeCustomerAgreements(self, *CustomerAgreements)
 
removeEndDeviceAssets(self, *EndDeviceAssets)
 
removeWorks(self, *Works)
 
setCustomerAgreements(self, value)
 
setEndDeviceAssets(self, value)
 
setWorks(self, value)

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 = {'kind': <type 'str'>, 'pucNumber': <type 'str'>...
  _attrs = ['kind', 'pucNumber', 'specialNeed', 'vip']
  _defaults = {'kind': 'residentialAndCommercial', 'pucNumber': ...
  _enums = {'kind': 'CustomerKind'}
  _many_refs = ['Works', 'CustomerAgreements', 'EndDeviceAssets']
  _refs = ['status', 'Works', 'CustomerAgreements', 'EndDeviceAs...
  status = None

Inherited from Common.Organisation'.Organisation: electronicAddress, phone1, phone2, postalAddress, streetAddress

Properties [hide private]
  CustomerAgreements
All agreements of this customer.
  EndDeviceAssets
All end device assets of this customer.
  Works
All the works performed for this customer.

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

Inherited from object: __class__

Method Details [hide private]

__init__(self, kind='residentialAndCommercial', pucNumber='', specialNeed='', vip=False, status=None, Works=None, CustomerAgreements=None, EndDeviceAssets=None, *args, **kw_args)
(Constructor)

 

Initialises a new 'Customer' instance.

Parameters:
  • kind - Kind of customer. Values are: "residentialAndCommercial", "residentialStreetlightOthers", "residentialAndStreetlight", "pumpingLoad", "energyServiceSupplier", "windMachine", "residential", "internalUse", "residentialFarmService", "other", "energyServiceScheduler", "commercialIndustrial"
  • pucNumber - (if applicable) Public Utility Commission identification number.
  • specialNeed - True if customer organisation has special service needs such as life support, hospitals, etc.
  • vip - True if this is an important customer. Importance is for matters different than those in 'specialNeed' attribute.
  • status - Status of this customer.
  • Works - All the works performed for this customer.
  • CustomerAgreements - All agreements of this customer.
  • EndDeviceAssets - All end device assets of this customer.
Overrides: object.__init__

Class Variable Details [hide private]

_attr_types

Value:
{'kind': <type 'str'>,
 'pucNumber': <type 'str'>,
 'specialNeed': <type 'str'>,
 'vip': <type 'bool'>}

_defaults

Value:
{'kind': 'residentialAndCommercial',
 'pucNumber': '',
 'specialNeed': '',
 'vip': False}

_refs

Value:
['status', 'Works', 'CustomerAgreements', 'EndDeviceAssets']

Property Details [hide private]

CustomerAgreements

All agreements of this customer.

Get Method:
getCustomerAgreements(self) - All agreements of this customer.
Set Method:
setCustomerAgreements(self, value)

EndDeviceAssets

All end device assets of this customer.

Get Method:
getEndDeviceAssets(self) - All end device assets of this customer.
Set Method:
setEndDeviceAssets(self, value)

Works

All the works performed for this customer.

Get Method:
getWorks(self) - All the works performed for this customer.
Set Method:
setWorks(self, value)