Class Controller

java.lang.Object
org.openremote.agent.protocol.controller.Controller

public class Controller extends Object
Controller class represent a Controller defined in a Manager Agent and store all sensors and commands linked to that Controller agent
  • Field Details

    • DEVICE_ID_BASE

      public final String DEVICE_ID_BASE
      A unique ID to use for polling (see Controller 2.5 polling HTTP API)
      See Also:
  • Constructor Details

    • Controller

      public Controller(String agentId)
  • 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

      public ControllerCommand getCommand(org.openremote.model.attribute.AttributeRef attributeRef)
    • getSensorsListForDevice

      public Set<Map.Entry<org.openremote.model.attribute.AttributeRef,ControllerSensor>> getSensorsListForDevice(String deviceName)
    • getDeviceId

      public String getDeviceId()
    • getControllerConfigName

      public String getControllerConfigName()
    • removeAttributeRef

      public void removeAttributeRef(org.openremote.model.attribute.AttributeRef attributeRef)
    • collectSensorNameLinkedToDeviceName

      public List<String> collectSensorNameLinkedToDeviceName(String deviceName)
      Collect every sensorName linked to a deviceName. Look into sensorsList