CO - the output type to the IIP-Ecosphere platformCI - the input type from the IIP-Ecosphere platform@MachineConnector(hasModel=true,
supportsModelStructs=false,
supportsEvents=false)
public class AasConnector<CO,CI>
extends de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>
ConnectorParameter.getApplicationId(), e.g.,
"urn:::AAS:::testMachines#" and the registry URL part, e.g. "registry" in
ConnectorParameter.getEndpointPath().| Modifier and Type | Class and Description |
|---|---|
private class |
AasConnector.AasModelAccess
Implements the model access for AAS.
|
static class |
AasConnector.Descriptor
The descriptor of this connector (see META-INF/services).
|
| Modifier and Type | Field and Description |
|---|---|
private de.iip_ecosphere.platform.support.aas.Aas |
connectedAAS |
private static Object |
DUMMY |
private de.iip_ecosphere.platform.support.aas.AasFactory |
factory |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AasConnector(de.iip_ecosphere.platform.support.aas.AasFactory factory,
de.iip_ecosphere.platform.connectors.AdapterSelector<Object,Object,CO,CI> selector,
de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
Creates an instance and installs the protocol adapter.
|
AasConnector(de.iip_ecosphere.platform.support.aas.AasFactory factory,
de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
Creates an instance and installs the protocol adapter.
|
AasConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
Creates an instance and installs the protocol adapter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params) |
protected void |
disconnectImpl() |
void |
dispose() |
protected void |
error(String message,
Throwable th) |
String |
getName() |
protected Object |
read() |
protected void |
writeImpl(Object data) |
configureModelAccess, connect, disconnect, getConnectorInputType, getConnectorOutputType, getConnectorParameter, getProtocolInputType, getProtocolOutputType, getSelector, initializeModelAccess, installPollTask, isPolling, notificationsChanged, received, setReceptionCallback, uninstallPollTask, writeprivate static final org.slf4j.Logger LOGGER
private static final Object DUMMY
private de.iip_ecosphere.platform.support.aas.Aas connectedAAS
private de.iip_ecosphere.platform.support.aas.AasFactory factory
@SafeVarargs public AasConnector(de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
adapter - the protocol adapterIllegalArgumentException - if adapter is null or empty or adapters are null@SafeVarargs public AasConnector(de.iip_ecosphere.platform.support.aas.AasFactory factory, de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
factory - define the AasFactory to use, if null use AasFactory.getInstance()adapter - the protocol adapter(s)IllegalArgumentException - if adapter is null or empty or adapters are null@SafeVarargs public AasConnector(de.iip_ecosphere.platform.support.aas.AasFactory factory, de.iip_ecosphere.platform.connectors.AdapterSelector<Object,Object,CO,CI> selector, de.iip_ecosphere.platform.connectors.types.ProtocolAdapter<Object,Object,CO,CI>... adapter)
factory - define the AasFactory to use, if null use AasFactory.getInstance()selector - the adapter selector (null leads to a default selector for the first adapter)adapter - the protocol adapter(s)IllegalArgumentException - if adapter is null or empty or adapters are nullprotected void connectImpl(de.iip_ecosphere.platform.connectors.ConnectorParameter params)
throws IOException
connectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionprotected void disconnectImpl()
throws IOException
disconnectImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionpublic void dispose()
public String getName()
protected void writeImpl(Object data) throws IOException
writeImpl in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionprotected Object read() throws IOException
read in class de.iip_ecosphere.platform.connectors.AbstractConnector<Object,Object,CO,CI>IOExceptionCopyright © 2021. All rights reserved.