Class AbstractSerialProtocol<T extends AbstractNettyIOClientProtocol<T,U,W,X,V>,U extends IOAgent<U,T,V>,V extends org.openremote.model.asset.agent.AgentLink<?>,W,X extends SerialIOClient<W>>
java.lang.Object
org.openremote.agent.protocol.AbstractProtocol<U,X>
org.openremote.agent.protocol.io.AbstractIOClientProtocol<T,U,V,W,X>
org.openremote.agent.protocol.io.AbstractNettyIOClientProtocol<T,U,W,X,V>
org.openremote.agent.protocol.serial.AbstractSerialProtocol<T,U,V,W,X>
- All Implemented Interfaces:
org.openremote.model.asset.agent.Protocol<U>
- Direct Known Subclasses:
SerialProtocol
public abstract class AbstractSerialProtocol<T extends AbstractNettyIOClientProtocol<T,U,W,X,V>,U extends IOAgent<U,T,V>,V extends org.openremote.model.asset.agent.AgentLink<?>,W,X extends SerialIOClient<W>>
extends AbstractNettyIOClientProtocol<T,U,W,X,V>
This is an abstract TCP client protocol for communicating with TCP servers; concrete implementations must provide
an
for handling over the wire communication .-
Field Summary
Fields inherited from class org.openremote.agent.protocol.io.AbstractIOClientProtocol
client, LOGFields inherited from class org.openremote.agent.protocol.AbstractProtocol
agent, assetService, datapointService, dynamicAttributes, executorService, linkedAttributes, messageBrokerContext, predictedDatapointService, producerTemplate, timerServiceFields inherited from interface org.openremote.model.asset.agent.Protocol
ACTUATOR_TOPIC, ACTUATOR_TOPIC_TARGET_PROTOCOL, DYNAMIC_TIME_PLACEHOLDER_REGEXP, DYNAMIC_VALUE_PLACEHOLDER, DYNAMIC_VALUE_PLACEHOLDER_REGEXP, SENSOR_QUEUE, SENSOR_QUEUE_SOURCE_PROTOCOL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openremote.agent.protocol.io.AbstractNettyIOClientProtocol
createIoClient, getEncoderDecoderProviderMethods inherited from class org.openremote.agent.protocol.io.AbstractIOClientProtocol
createWriteMessage, doLinkedAttributeWrite, doStart, doStop, getGenericStringEncodersAndDecoders, getProtocolInstanceUri, onConnectionStatusChanged, onMessageReceivedMethods inherited from class org.openremote.agent.protocol.AbstractProtocol
doLinkAttribute, doUnlinkAttribute, getAgent, getLinkedAttributes, linkAttribute, processLinkedAttributeWrite, sendAttributeEvent, sendAttributeEvent, setConnectionStatus, start, stop, toString, unlinkAttribute, updateAgentAttribute, updateLinkedAttribute, updateLinkedAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openremote.model.asset.agent.Protocol
getProtocolName, prefixLogMessage
-
Constructor Details
-
AbstractSerialProtocol
-
-
Method Details
-
doCreateIoClient
Description copied from class:AbstractIOClientProtocolShould return an instance ofIOClientfor the linkedAgent.- Specified by:
doCreateIoClientin classAbstractIOClientProtocol<T extends AbstractNettyIOClientProtocol<T,U, W, X, V>, U extends IOAgent<U, T, V>, W, X extends SerialIOClient<W>, V extends org.openremote.model.asset.agent.AgentLink<?>> - Throws:
Exception
-