Package CIM15 :: 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.Organisation receiving services from ServiceSupplier.

Instance Methods [hide private]
 
__init__(self, vip=False, pucNumber='', specialNeed='', kind='windMachine', CustomerAgreements=None, ErpPersons=None, EndDevices=None, Works=None, status=None, PlannedOutage=None, OutageNotifications=None, TroubleTickets=None, *args, **kw_args)
Initialises a new 'Customer' instance.
 
addCustomerAgreements(self, *CustomerAgreements)
 
addEndDevices(self, *EndDevices)
 
addErpPersons(self, *ErpPersons)
 
addOutageNotifications(self, *OutageNotifications)
 
addTroubleTickets(self, *TroubleTickets)
 
addWorks(self, *Works)
 
getCustomerAgreements(self)
All agreements of this customer.
 
getEndDevices(self)
All end devices of this customer.
 
getErpPersons(self)
 
getOutageNotifications(self)
 
getPlannedOutage(self)
 
getTroubleTickets(self)
 
getWorks(self)
All the works performed for this customer.
 
removeCustomerAgreements(self, *CustomerAgreements)
 
removeEndDevices(self, *EndDevices)
 
removeErpPersons(self, *ErpPersons)
 
removeOutageNotifications(self, *OutageNotifications)
 
removeTroubleTickets(self, *TroubleTickets)
 
removeWorks(self, *Works)
 
setCustomerAgreements(self, value)
 
setEndDevices(self, value)
 
setErpPersons(self, value)
 
setOutageNotifications(self, value)
 
setPlannedOutage(self, value)
 
setTroubleTickets(self, value)
 
setWorks(self, value)

Inherited from Common.Organisation'.Organisation: addBusinessRoles, getBusinessRoles, removeBusinessRoles, setBusinessRoles

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: addDiagramObjects, addNames, getDiagramObjects, getModelingAuthoritySet, getNames, removeDiagramObjects, removeNames, setDiagramObjects, setModelingAuthoritySet, setNames

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 = ['vip', 'pucNumber', 'specialNeed', 'kind']
  _defaults = {'kind': 'windMachine', 'pucNumber': '', 'specialN...
  _enums = {'kind': 'CustomerKind'}
  _many_refs = ['CustomerAgreements', 'ErpPersons', 'EndDevices'...
  _refs = ['CustomerAgreements', 'ErpPersons', 'EndDevices', 'Wo...
  status = None

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

Properties [hide private]
  CustomerAgreements
All agreements of this customer.
  EndDevices
All end devices of this customer.
  ErpPersons
  OutageNotifications
  PlannedOutage
  TroubleTickets
  Works
All the works performed for this customer.

Inherited from Common.Organisation'.Organisation: BusinessRoles

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: DiagramObjects, ModelingAuthoritySet, Names

Inherited from object: __class__

Method Details [hide private]

__init__(self, vip=False, pucNumber='', specialNeed='', kind='windMachine', CustomerAgreements=None, ErpPersons=None, EndDevices=None, Works=None, status=None, PlannedOutage=None, OutageNotifications=None, TroubleTickets=None, *args, **kw_args)
(Constructor)

 

Initialises a new 'Customer' instance.

Parameters:
  • vip - True if this is an important customer. Importance is for matters different than those in 'specialNeed' attribute.
  • pucNumber - (if applicable) Public utility commission (PUC) identification number.
  • specialNeed - True if customer organisation has special service needs such as life support, hospitals, etc.
  • kind - Kind of customer. Values are: "windMachine", "residentialAndCommercial", "internalUse", "energyServiceScheduler", "residentialAndStreetlight", "residential", "pumpingLoad", "other", "commercialIndustrial", "energyServiceSupplier", "residentialStreetlightOthers", "residentialFarmService"
  • CustomerAgreements - All agreements of this customer.
  • ErpPersons
  • EndDevices - All end devices of this customer.
  • Works - All the works performed for this customer.
  • status - Status of this customer.
  • PlannedOutage
  • OutageNotifications
  • TroubleTickets
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': 'windMachine',
 'pucNumber': '',
 'specialNeed': '',
 'vip': False}

_many_refs

Value:
['CustomerAgreements',
 'ErpPersons',
 'EndDevices',
 'Works',
 'OutageNotifications',
 'TroubleTickets']

_refs

Value:
['CustomerAgreements',
 'ErpPersons',
 'EndDevices',
 'Works',
 'status',
 'PlannedOutage',
 'OutageNotifications',
 'TroubleTickets']

Property Details [hide private]

CustomerAgreements

All agreements of this customer.

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

EndDevices

All end devices of this customer.

Get Method:
getEndDevices(self) - All end devices of this customer.
Set Method:
setEndDevices(self, value)

ErpPersons

Get Method:
getErpPersons(self)
Set Method:
setErpPersons(self, value)

OutageNotifications

Get Method:
getOutageNotifications(self)
Set Method:
setOutageNotifications(self, value)

PlannedOutage

Get Method:
getPlannedOutage(self)
Set Method:
setPlannedOutage(self, value)

TroubleTickets

Get Method:
getTroubleTickets(self)
Set Method:
setTroubleTickets(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)