Class SerialAgent

java.lang.Object
org.openremote.model.asset.Asset<T>
org.openremote.model.asset.agent.Agent<T,U,V>
org.openremote.agent.protocol.io.IOAgent<SerialAgent,SerialProtocol,org.openremote.model.asset.agent.DefaultAgentLink>
org.openremote.agent.protocol.serial.SerialAgent
All Implemented Interfaces:
org.openremote.model.asset.AssetInfo, org.openremote.model.IdentifiableEntity<SerialAgent>

@Entity public class SerialAgent extends IOAgent<SerialAgent,SerialProtocol,org.openremote.model.asset.agent.DefaultAgentLink>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openremote.model.asset.Asset

    org.openremote.model.asset.Asset.AssetDeserializer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.openremote.model.asset.agent.AgentDescriptor<SerialAgent,SerialProtocol,org.openremote.model.asset.agent.DefaultAgentLink>
     
    static final org.openremote.model.value.AttributeDescriptor<String>
     

    Fields inherited from class org.openremote.model.asset.agent.Agent

    BIND_HOST, BIND_PORT, DISABLED, HOST, MESSAGE_CHARSET, MESSAGE_CONVERT_BINARY, MESSAGE_CONVERT_HEX, MESSAGE_DELIMITERS, MESSAGE_MAX_LENGTH, MESSAGE_STRIP_DELIMITER, OAUTH_GRANT, POLLING_MILLIS, PORT, SERIAL_BAUDRATE, STATUS, UPDATE_ON_WRITE, USERNAME_AND_PASSWORD

    Fields inherited from class org.openremote.model.asset.Asset

    accessPublicRead, attributes, createdOn, EMAIL, id, LOCATION, MANUFACTURER, MODEL, name, NOTES, parentId, path, realm, TAGS, type, version
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    For use by hydrators (i.e.
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the protocol instance for this Agent.

    Methods inherited from class org.openremote.model.asset.agent.Agent

    getAgentLink, getAgentStatus, getBindHost, getBindPort, getHost, getOAuthGrant, getPollingMillis, getPort, getSerialBaudrate, getSerialPort, getUsernamePassword, isConfigurationAttribute, isDisabled, isUpdateOnWrite, setBindHost, setBindPort, setDisabled, setHost, setOAuthGrant, setPort, setSerialBaudrate, setSerialPort, setUpdateOnWrite, setUsernamePassword

    Methods inherited from class org.openremote.model.asset.Asset

    addAttributes, addOrReplaceAttributes, getAssetClass, getAssetName, getAssetType, getAttribute, getAttribute, getAttributeNames, getAttributes, getAttributesString, getCreatedOn, getEmail, getId, getLocation, getManufacturer, getMetaString, getModel, getName, getNotes, getParentId, getPath, getRealm, getTags, getType, getVersion, hasAttribute, hasAttribute, isAccessPublicRead, pathContains, postLoadCallback, setAccessPublicRead, setAttributes, setAttributes, setAttributes, setCreatedOn, setEmail, setId, setLocation, setManufacturer, setModel, setName, setNotes, setParent, setParentId, setRealm, setTags, setVersion, toString, toStringAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • SERIAL_PORT

      public static final org.openremote.model.value.AttributeDescriptor<String> SERIAL_PORT
    • DESCRIPTOR

      public static final org.openremote.model.asset.agent.AgentDescriptor<SerialAgent,SerialProtocol,org.openremote.model.asset.agent.DefaultAgentLink> DESCRIPTOR
  • Constructor Details

    • SerialAgent

      protected SerialAgent()
      For use by hydrators (i.e. JPA/Jackson)
    • SerialAgent

      public SerialAgent(String name)
  • Method Details

    • getProtocolInstance

      public SerialProtocol getProtocolInstance()
      Description copied from class: org.openremote.model.asset.agent.Agent
      Get the protocol instance for this Agent.
      Specified by:
      getProtocolInstance in class org.openremote.model.asset.agent.Agent<SerialAgent,SerialProtocol,org.openremote.model.asset.agent.DefaultAgentLink>