Interface SdcDeviceContext

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getDevice

         abstract Device getDevice()

        Gets the encapsulated device of an SdcDevice.

        Do not call any startup or shutdown functions from that device reference as it is still managed by the enclosing SdcDevice instance that provides this context.

        Returns:

        the DPWS device.

      • getLocalMdibAccess

         abstract LocalMdibAccess getLocalMdibAccess()

        Gets the LocalMdibAccess passed to the SdcDevice constructor.

        Returns:

        the local MDIB access.

      • getServiceState

         abstract Service.State getServiceState()

        Gets the enclosing SdcDevice service state.

        Returns:

        state of the enclosing SDC device.

      • sendPeriodicStateReport

         abstract <T extends AbstractState> void sendPeriodicStateReport(Map<String, List<T>> states, MdibVersion mdibVersion)

        Sends a periodic state report.

        This function does not control periodicity. Periodicity has to be controlled by the calling function.

        Note that only one report type is supported per call, e.g. it is not possible to mix metric and context states. In accordance with the SDC, the following state types have to be sent in separate reports:

        • Metric states (every subclass of org.somda.sdc.biceps.model.participant.AbstractMetricState)
        • Alert states (every subclass of org.somda.sdc.biceps.model.participant.AbstractAlertState)
        • Context states (every subclass of org.somda.sdc.biceps.model.participant.AbstractContextState)
        • Operational states (every subclass of org.somda.sdc.biceps.model.participant.AbstractOperationState)
        • Component states (every subclass of org.somda.sdc.biceps.model.participant.AbstractDeviceComponentState)
        Parameters:
        states - map with mds as key and lists of the states that are supposed to be notified as value.
        mdibVersion - the MDIB version the report belongs to.