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.getEndpointPath(). The ConnectorParameter.getApplicationId() denotes the AASs
to operate on. If the application id is
| 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 Map<String,de.iip_ecosphere.platform.support.aas.Aas> |
connectedAAS |
private static Object |
DUMMY |
private de.iip_ecosphere.platform.support.aas.AasFactory |
factory |
private AtomicBoolean |
inPolling |
private static org.slf4j.Logger |
LOGGER |
private String |
nonPollingAas |
private de.iip_ecosphere.platform.connectors.ConnectorParameter |
params |
private Pattern |
pattern |
private String |
pollingAas |
private Thread |
pollingThread |
private de.iip_ecosphere.platform.support.aas.Registry |
registry |
| 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 |
doPolling() |
String |
enabledEncryption() |
protected void |
error(String message,
Throwable th) |
String |
getName() |
protected Object |
read() |
String |
supportedEncryption() |
private boolean |
updateAas()
Updates the AAS.
|
protected void |
writeImpl(Object data) |
configureModelAccess, connect, disconnect, enableNotifications, enablePolling, getConnectorInputType, getConnectorOutputType, getConnectorParameter, getProtocolInputType, getProtocolOutputType, getSelector, initializeModelAccess, installPollTask, isPolling, notificationsChanged, received, received, request, setReceptionCallback, uninstallPollTask, writeprivate static final org.slf4j.Logger LOGGER
private static final Object DUMMY
private de.iip_ecosphere.platform.support.aas.AasFactory factory
private de.iip_ecosphere.platform.connectors.ConnectorParameter params
private Pattern pattern
private de.iip_ecosphere.platform.support.aas.Registry registry
private AtomicBoolean inPolling
private transient String pollingAas
private transient Thread pollingThread
private String nonPollingAas
@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>IOExceptionprivate boolean updateAas()
true if new AAS were added, false elseprotected void doPolling()
protected 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>IOExceptionpublic String supportedEncryption()
public String enabledEncryption()
Copyright © 2022. All rights reserved.