Class Controller
java.lang.Object
org.openremote.agent.protocol.controller.Controller
Controller class represent a Controller defined in a Manager Agent and store all sensors and commands linked to that Controller agent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringA unique ID to use for polling (see Controller 2.5 polling HTTP API) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(org.openremote.model.attribute.AttributeRef attributeRef, ControllerCommand command) voidaddSensor(org.openremote.model.attribute.AttributeRef attributeRef, ControllerSensor sensor) collectSensorNameLinkedToDeviceName(String deviceName) Collect every sensorName linked to a deviceName.getCommand(org.openremote.model.attribute.AttributeRef attributeRef) Set<Map.Entry<org.openremote.model.attribute.AttributeRef,ControllerSensor>> getSensorsListForDevice(String deviceName) voidremoveAttributeRef(org.openremote.model.attribute.AttributeRef attributeRef)
-
Field Details
-
DEVICE_ID_BASE
A unique ID to use for polling (see Controller 2.5 polling HTTP API)- See Also:
-
-
Constructor Details
-
Controller
-
-
Method Details
-
addSensor
public void addSensor(org.openremote.model.attribute.AttributeRef attributeRef, ControllerSensor sensor) -
addCommand
public void addCommand(org.openremote.model.attribute.AttributeRef attributeRef, ControllerCommand command) -
getCommand
-
getSensorsListForDevice
public Set<Map.Entry<org.openremote.model.attribute.AttributeRef,ControllerSensor>> getSensorsListForDevice(String deviceName) -
getDeviceId
-
getControllerConfigName
-
removeAttributeRef
public void removeAttributeRef(org.openremote.model.attribute.AttributeRef attributeRef) -
collectSensorNameLinkedToDeviceName
Collect every sensorName linked to a deviceName. Look intosensorsList
-