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 java.lang.Object implements ProtocolAdapter<O,I,CO,CI>
Basic protocol adapter implementation.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private ModelAccessmodelAccess
-
Constructor Summary
Constructors Constructor Description AbstractProtocolAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelAccessgetModelAccess()Returns 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, wait
-
Methods inherited from interface de.iip_ecosphere.platform.connectors.types.ProtocolAdapter
adaptInput, adaptOutput, getConnectorInputType, getConnectorOutputType, getProtocolInputType, getProtocolOutputType, initializeModelAccess
-
-
-
-
Field Detail
-
modelAccess
private ModelAccess modelAccess
-
-
Method Detail
-
getModelAccess
public final ModelAccess 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
public void setModelAccess(ModelAccess modelAccess)
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
-
-