Class BasePlatformManagementInterface
java.lang.Object
io.github.webbasedwodt.PlatformManagementInterface.impl.BasePlatformManagementInterface
- All Implemented Interfaces:
PlatformManagementInterface
,PlatformManagementInterfaceNotifier
,PlatformManagementInterfaceReader
Base implementation of the
PlatformManagementInterface
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method allows to obtain all the Platform URLs to which the DT is registered.boolean
notifyNewRegistration
(URI platformUrl) Notify the registration to a new Platform.boolean
registerToPlatform
(URI platformUrl, String currentDtd) This method allows the component to send the registration request to the passed WoDT Digital Twins Platform.void
Signal to the Platform Management Interface the deletion of the managed Digital Twin.
-
Constructor Details
-
BasePlatformManagementInterface
Default constructor.- Parameters:
digitalTwinUri
- the uri of the WoDT Digital Twin
-
-
Method Details
-
registerToPlatform
Description copied from interface:PlatformManagementInterface
This method allows the component to send the registration request to the passed WoDT Digital Twins Platform.- Specified by:
registerToPlatform
in interfacePlatformManagementInterface
- Parameters:
platformUrl
- the platformUrl to which registercurrentDtd
- the current Digital Twin Description- Returns:
- true if correctly registered, false instead
-
signalDigitalTwinDeletion
public void signalDigitalTwinDeletion()Description copied from interface:PlatformManagementInterface
Signal to the Platform Management Interface the deletion of the managed Digital Twin. This will result in the deletion notification to be sent to all the WoDT Digital Twins Platform to which it is registered.- Specified by:
signalDigitalTwinDeletion
in interfacePlatformManagementInterface
-
getRegisteredPlatformUrls
Description copied from interface:PlatformManagementInterfaceReader
This method allows to obtain all the Platform URLs to which the DT is registered.- Specified by:
getRegisteredPlatformUrls
in interfacePlatformManagementInterfaceReader
- Returns:
- the set of urls.
-
notifyNewRegistration
Description copied from interface:PlatformManagementInterfaceNotifier
Notify the registration to a new Platform.- Specified by:
notifyNewRegistration
in interfacePlatformManagementInterfaceNotifier
- Parameters:
platformUrl
- the url of the platform that has added the DT.- Returns:
- true if the DT platform was not already registered, false instead.
-