Class TCPAgent

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

@Entity public class TCPAgent extends IOAgent<TCPAgent,TCPProtocol,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<TCPAgent,TCPProtocol,org.openremote.model.asset.agent.DefaultAgentLink>
     
    static final org.openremote.model.value.AttributeDescriptor<String>
     
    static final org.openremote.model.value.AttributeDescriptor<Integer>
     

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

    BIND_HOST, BIND_PORT, DISABLED, MESSAGE_CHARSET, MESSAGE_CONVERT_BINARY, MESSAGE_CONVERT_HEX, MESSAGE_DELIMITERS, MESSAGE_MAX_LENGTH, MESSAGE_STRIP_DELIMITER, OAUTH_GRANT, POLLING_MILLIS, SERIAL_BAUDRATE, SERIAL_PORT, 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

    • HOST

      public static final org.openremote.model.value.AttributeDescriptor<String> HOST
    • PORT

      public static final org.openremote.model.value.AttributeDescriptor<Integer> PORT
    • DESCRIPTOR

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

    • TCPAgent

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

      public TCPAgent(String name)
  • Method Details

    • getProtocolInstance

      public TCPProtocol 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<TCPAgent,TCPProtocol,org.openremote.model.asset.agent.DefaultAgentLink>