Class AasConnector.AasModelAccess
- java.lang.Object
-
- de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
-
- de.iip_ecosphere.platform.connectors.aas.AasConnector.AasModelAccess
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.model.ModelAccess
- Enclosing class:
- AasConnector<CO,CI>
private class AasConnector.AasModelAccess extends de.iip_ecosphere.platform.connectors.model.AbstractModelAccessImplements the model access for AAS.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private de.iip_ecosphere.platform.support.aas.ElementsAccessbaseprivate java.util.Map<java.lang.String,java.util.Map<java.lang.String,de.iip_ecosphere.platform.support.aas.ElementsAccess>>elementsprivate AasConnector.AasModelAccessparentprivate static charSEPARATOR_CHARprivate static java.lang.StringSEPARATOR_STRING
-
Constructor Summary
Constructors Modifier Constructor Description protectedAasModelAccess()Creates the instance and binds the listener to the creating connector instance.protectedAasModelAccess(de.iip_ecosphere.platform.support.aas.ElementsAccess base, AasConnector.AasModelAccess parent)Creates the instance and binds the listener to the creating connector instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcall(java.lang.String qName, java.lang.Object... args)private de.iip_ecosphere.platform.support.aas.PropertyfindProperty(java.lang.String qName)Finds an AAS property.java.lang.Objectget(java.lang.String qName)protected de.iip_ecosphere.platform.connectors.ConnectorParametergetConnectorParameter()java.lang.StringgetQSeparator()<T> TgetStruct(java.lang.String qName, java.lang.Class<T> type)voidmonitor(int notificationInterval, java.lang.String... qName)voidmonitorModelChanges(int notificationInterval)voidregisterCustomType(java.lang.Class<?> cls)private de.iip_ecosphere.platform.support.aas.ElementsAccessretrieveElement(de.iip_ecosphere.platform.support.aas.ElementsAccess current, java.lang.String qName)Retrieves a node starting atcurrentrecursively following the path given byqName.private de.iip_ecosphere.platform.support.aas.ElementsAccessretrieveElement(java.lang.String qName)Retrieves a node starting at the root of the OPC UA model based on the node's qualified nameqName.voidset(java.lang.String qName, java.lang.Object value)voidsetStruct(java.lang.String qName, java.lang.Object value)AasConnector.AasModelAccessstepInto(java.lang.String name)AasConnector.AasModelAccessstepOut()java.lang.StringtopInstancesQName()-
Methods inherited from class de.iip_ecosphere.platform.connectors.model.AbstractModelAccess
iqName, isDetailNotifiedItemEnabled, monitor, monitorModelChanges, qName, setDetailNotifiedItem, useNotifications, useNotifications
-
-
-
-
Field Detail
-
SEPARATOR_CHAR
private static final char SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
SEPARATOR_STRING
private static final java.lang.String SEPARATOR_STRING
- See Also:
- Constant Field Values
-
base
private de.iip_ecosphere.platform.support.aas.ElementsAccess base
-
parent
private AasConnector.AasModelAccess parent
-
elements
private java.util.Map<java.lang.String,java.util.Map<java.lang.String,de.iip_ecosphere.platform.support.aas.ElementsAccess>> elements
-
-
Constructor Detail
-
AasModelAccess
protected AasModelAccess()
Creates the instance and binds the listener to the creating connector instance.
-
AasModelAccess
protected AasModelAccess(de.iip_ecosphere.platform.support.aas.ElementsAccess base, AasConnector.AasModelAccess parent)Creates the instance and binds the listener to the creating connector instance. Sets a resolution context by the given submodel/collection.- Parameters:
base- the element to resolve onparent- the return parent forstepOut()
-
-
Method Detail
-
topInstancesQName
public java.lang.String topInstancesQName()
-
getQSeparator
public java.lang.String getQSeparator()
-
findProperty
private de.iip_ecosphere.platform.support.aas.Property findProperty(java.lang.String qName) throws java.io.IOExceptionFinds an AAS property.- Parameters:
qName- the qualified name of the property- Returns:
- the property
- Throws:
java.io.IOException- if the property cannot be found/retrieved
-
retrieveElement
private de.iip_ecosphere.platform.support.aas.ElementsAccess retrieveElement(java.lang.String qName) throws java.io.IOExceptionRetrieves a node starting at the root of the OPC UA model based on the node's qualified nameqName. Takes into accountthe nodes cache.- Parameters:
qName- the qualified node name- Returns:
- the node
- Throws:
java.io.IOException- if no node can be found forqName
-
retrieveElement
private de.iip_ecosphere.platform.support.aas.ElementsAccess retrieveElement(de.iip_ecosphere.platform.support.aas.ElementsAccess current, java.lang.String qName)Retrieves a node starting atcurrentrecursively following the path given byqName.- Parameters:
current- the current not to start searching forqName- the qualified node name- Returns:
- the node or null for none found
-
call
public java.lang.Object call(java.lang.String qName, java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
get
public java.lang.Object get(java.lang.String qName) throws java.io.IOException- Throws:
java.io.IOException
-
set
public void set(java.lang.String qName, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
getStruct
public <T> T getStruct(java.lang.String qName, java.lang.Class<T> type) throws java.io.IOException- Throws:
java.io.IOException
-
setStruct
public void setStruct(java.lang.String qName, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
registerCustomType
public void registerCustomType(java.lang.Class<?> cls) throws java.io.IOException- Throws:
java.io.IOException
-
monitor
public void monitor(int notificationInterval, java.lang.String... qName) throws java.io.IOException- Throws:
java.io.IOException
-
monitorModelChanges
public void monitorModelChanges(int notificationInterval) throws java.io.IOException- Throws:
java.io.IOException
-
getConnectorParameter
protected de.iip_ecosphere.platform.connectors.ConnectorParameter getConnectorParameter()
- Specified by:
getConnectorParameterin classde.iip_ecosphere.platform.connectors.model.AbstractModelAccess
-
stepInto
public AasConnector.AasModelAccess stepInto(java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
stepOut
public AasConnector.AasModelAccess stepOut()
-
-