Interface DTDManager
- All Superinterfaces:
DTDManagerReader
- All Known Implementing Classes:
WoTDTDManager
This interface models the DTD Manager component of the Abstract Architecture.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAction
(it.wldt.core.state.DigitalTwinStateAction action) Add an action to the DTD.void
addProperty
(it.wldt.core.state.DigitalTwinStateProperty<?> property) Add a property to the DTD.void
addRelationship
(it.wldt.core.state.DigitalTwinStateRelationship<?> relationship) Add a relationship to the DTD.boolean
removeAction
(it.wldt.core.state.DigitalTwinStateAction action) Remove an action from the DTD.boolean
removeProperty
(it.wldt.core.state.DigitalTwinStateProperty<?> property) Remove a property from the DTD.boolean
removeRelationship
(it.wldt.core.state.DigitalTwinStateRelationship<?> relationship) Remove a relationship from the DTD.Methods inherited from interface io.github.webbasedwodt.application.component.DTDManagerReader
getAvailableActionIds, getDTD
-
Method Details
-
addProperty
void addProperty(it.wldt.core.state.DigitalTwinStateProperty<?> property) Add a property to the DTD.- Parameters:
property
- the property to add
-
removeProperty
boolean removeProperty(it.wldt.core.state.DigitalTwinStateProperty<?> property) Remove a property from the DTD.- Parameters:
property
- the property to remove- Returns:
- true is correctly removed, false if not present
-
addRelationship
void addRelationship(it.wldt.core.state.DigitalTwinStateRelationship<?> relationship) Add a relationship to the DTD.- Parameters:
relationship
- the relationship to add
-
removeRelationship
boolean removeRelationship(it.wldt.core.state.DigitalTwinStateRelationship<?> relationship) Remove a relationship from the DTD.- Parameters:
relationship
- the relationship to remove- Returns:
- true is correctly removed, false if not present
-
addAction
void addAction(it.wldt.core.state.DigitalTwinStateAction action) Add an action to the DTD.- Parameters:
action
- the action to add
-
removeAction
boolean removeAction(it.wldt.core.state.DigitalTwinStateAction action) Remove an action from the DTD.- Parameters:
action
- the action to remove- Returns:
- true is correctly removed, false if not present
-