diff --git a/ieee_2030_5/server/server_constructs.py b/ieee_2030_5/server/server_constructs.py index a3cf98f..f2bd16c 100644 --- a/ieee_2030_5/server/server_constructs.py +++ b/ieee_2030_5/server/server_constructs.py @@ -41,11 +41,11 @@ def create_device_capability(end_device_index: int) -> m.DeviceCapability: def add_enddevice(device: m.EndDevice) -> m.EndDevice: """Populates links to EndDevice resources and adds it to the EndDeviceAdapter. - + If the link is to a single writable (by the client) resource then create the link and the resource with default data. Otherwise, the link will be to a list. It is expected that the list will be populated at a later point in time in the code execution. - + The enddevice is added to the enddevice adapter, and the following links are created and added to the enddevice: - `DERListLink`: A link to the DER list for the enddevice @@ -89,7 +89,7 @@ def add_enddevice(device: m.EndDevice) -> m.EndDevice: def update_active_der_event_started(event: m.Event): """Event triggered when a DERControl event starts - + Find the control and copy it to the ActiveDERControlList :param event: The control event @@ -125,7 +125,7 @@ def update_active_der_event_started(event: m.Event): def update_active_der_event_ended(event: m.Event): """Event triggered when a DERControl event ends - + Search over the ActiveDERControlListLink for the event that has been triggered and remove it from the list. @@ -165,23 +165,23 @@ def update_active_der_event_ended(event: m.Event): def initialize_2030_5(config: ServerConfiguration, tlsrepo: TLSRepository): - """Initialize the 2030.5 server. - + """Initialize the 2030.5 server. + This method initializes the adapters from the configuration objects into the persistence adapters. - + The adapters are: - + - EndDeviceAdapter - DERAdapter - DERCurveAdapter - DERProgramAdapter - FunctionSetAssignmentsAdapter - + The EndDevices in the EndDeviceAdapter will link to Lists of other types. Those Lists will be stored in the ListAdapter object under the List's href (see below /edev_0_der). As an example the following, note the DER href is not /edev_0_der_0, but /der_12 instead. - + @@ -190,8 +190,8 @@ def initialize_2030_5(config: ServerConfiguration, tlsrepo: TLSRepository): ...