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.booleannotifyNewRegistration(URI platformUrl) Notify the registration to a new Platform.booleanregisterToPlatform(URI platformUrl, String currentDtd) This method allows the component to send the registration request to the passed WoDT Digital Twins Platform.voidSignal 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:PlatformManagementInterfaceThis method allows the component to send the registration request to the passed WoDT Digital Twins Platform.- Specified by:
registerToPlatformin 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:PlatformManagementInterfaceSignal 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:
signalDigitalTwinDeletionin interfacePlatformManagementInterface
-
getRegisteredPlatformUrls
Description copied from interface:PlatformManagementInterfaceReaderThis method allows to obtain all the Platform URLs to which the DT is registered.- Specified by:
getRegisteredPlatformUrlsin interfacePlatformManagementInterfaceReader- Returns:
- the set of urls.
-
notifyNewRegistration
Description copied from interface:PlatformManagementInterfaceNotifierNotify the registration to a new Platform.- Specified by:
notifyNewRegistrationin 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.
-