Class AbstractProtocolAdapter<O,I,CO,CI>
java.lang.Object
de.iip_ecosphere.platform.connectors.types.AbstractProtocolAdapter<O,I,CO,CI>
- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector
- All Implemented Interfaces:
ProtocolAdapter<O,I, CO, CI>
- Direct Known Subclasses:
TranslatingProtocolAdapter
public abstract class AbstractProtocolAdapter<O,I,CO,CI>
extends Object
implements ProtocolAdapter<O,I,CO,CI>
Basic protocol adapter implementation.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ModelAccessReturns the instance abstracting the access to the underlying model.voidsetModelAccess(ModelAccess modelAccess) Defines the model access.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter
adaptInput, adaptOutput, getConnectorInputType, getConnectorOutputType, getProtocolInputType, getProtocolOutputType, initializeModelAccess
-
Field Details
-
modelAccess
-
-
Constructor Details
-
AbstractProtocolAdapter
public AbstractProtocolAdapter()
-
-
Method Details
-
getModelAccess
Returns the instance abstracting the access to the underlying model.- Specified by:
getModelAccessin interfaceProtocolAdapter<O,I, CO, CI> - Returns:
- the instance, may be null if
MachineConnector.hasModel()isfalse
-
setModelAccess
Defines the model access. Handle with care, shall be called by connector only.- Specified by:
setModelAccessin interfaceProtocolAdapter<O,I, CO, CI> - Parameters:
modelAccess- the model access
-