public interface ApplicationStructureOperations
Modifier and Type | Method and Description |
---|---|
void |
check()
(7001)
Check the application model for ASAM ODS conformity.
|
ApplicationElement |
createElement(BaseElement baseElem)
(7002)
Create a new application element in the application model.
|
EnumerationDefinition |
createEnumerationDefinition(java.lang.String enumName)
(7018)
Create a new enumeration definition.
|
void |
createInstanceRelations(ApplicationRelation applRel,
InstanceElement[] elemList1,
InstanceElement[] elemList2)
(7022)
Create the relation between a list of instances.
|
ApplicationRelation |
createRelation()
(7003)
Create a new relation.
|
ApplicationElement |
getElementById(T_LONGLONG aeId)
(7004)
Get the application element with the requested Id.
|
ApplicationElement |
getElementByName(java.lang.String aeName)
(7005)
Get the application element with the requested name.
|
ApplicationElement[] |
getElements(java.lang.String aePattern)
(7006)
Get the application elements whose names match with the pattern.
|
ApplicationElement[] |
getElementsByBaseType(java.lang.String aeType)
(7007)
Get the names of application elements that are derived from the
specified base element.
|
EnumerationDefinition |
getEnumerationDefinition(java.lang.String enumName)
(7021)
Get the specified enumeration definition.
|
InstanceElement |
getInstanceByAsamPath(java.lang.String asamPath)
(7008)
Get the instance element specified by the ASAM path.
|
InstanceElement[] |
getInstancesById(ElemId[] ieIds)
(7016)
Get the instance elements specified by the sequence of element ids.
|
ApplicationRelation[] |
getRelations(ApplicationElement applElem1,
ApplicationElement applElem2)
(7009)
Returns the relations between two application elements.
|
AoSession |
getSession()
(7017)
Get the current client session in which the application model is
created.
|
ApplicationElement[] |
getTopLevelElements(java.lang.String aeType)
(7010)
Get the top level application elements which are inherited from the
base element that matches the base type.
|
java.lang.String[] |
listElements(java.lang.String aePattern)
(7011)
Get the names of the application elements that match with the
pattern.
|
java.lang.String[] |
listElementsByBaseType(java.lang.String aeType)
(7012)
Get the names of application elements that are derived from the
given base type.
|
java.lang.String[] |
listEnumerations()
(7020)
Get the list of all enumeration names.
|
java.lang.String[] |
listTopLevelElements(java.lang.String aeType)
(7013)
Get the names of the top level application elements that are derived
from the given base type.
|
void |
removeElement(ApplicationElement applElem)
(7014)
Remove an application element from the application model.
|
void |
removeEnumerationDefinition(java.lang.String enumName)
(7019)
Remove the enumeration definition.
|
void |
removeRelation(ApplicationRelation applRel)
(7015)
This method removes an application relation from the model.
|
void check() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_DUPLICATE_BASE_ATTRIBUTE
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_MISSING_ATTRIBUTE
AO_MISSING_RELATION
AO_MISSING_APPLICATION_ELEMENT
AO_NOT_IMPLEMENTED
AO_NO_PATH_TO_ELEMENT
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement createElement(BaseElement baseElem) throws AoException
baseElem
- The base element from which the application
element is derived.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEApplicationRelation createRelation() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEApplicationElement getElementById(T_LONGLONG aeId) throws AoException
aeId
- The Id of the requested application element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement getElementByName(java.lang.String aeName) throws AoException
aeName
- The name of the requested application element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement[] getElements(java.lang.String aePattern) throws AoException
aePattern
- The name or the search pattern for the requested
application elements.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement[] getElementsByBaseType(java.lang.String aeType) throws AoException
aeType
- The requested base element type. The base element
type can be a pattern.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_BASETYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElement getInstanceByAsamPath(java.lang.String asamPath) throws AoException
asamPath
- The ASAM path of the requested instance element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_ASAM_PATH
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationRelation[] getRelations(ApplicationElement applElem1, ApplicationElement applElem2) throws AoException
applElem1
- The first application element.applElem2
- The second application element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement[] getTopLevelElements(java.lang.String aeType) throws AoException
aeType
- The requested base type. The base element type can
be a pattern.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_BASETYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String[] listElements(java.lang.String aePattern) throws AoException
aePattern
- The name or the search pattern for the requested
base elements.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String[] listElementsByBaseType(java.lang.String aeType) throws AoException
aeType
- The requested base type. The base element type can
be a pattern.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_BASETYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String[] listTopLevelElements(java.lang.String aeType) throws AoException
aeType
- The requested base type.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_BASETYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid removeElement(ApplicationElement applElem) throws AoException
applElem
- The application element to be removed.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_INSTANCES
AO_HAS_REFERENCES
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid removeRelation(ApplicationRelation applRel) throws AoException
applRel
- The application relation to be removed.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_INSTANCES
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEInstanceElement[] getInstancesById(ElemId[] ieIds) throws AoException
ieIds
- The sequence with the element ids.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_ASAM_PATH
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEAoSession getSession() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEEnumerationDefinition createEnumerationDefinition(java.lang.String enumName) throws AoException
enumName
- Name of the enumerationAoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE
AO_ACCESS_DENIEDvoid removeEnumerationDefinition(java.lang.String enumName) throws AoException
enumName
- Name of the enumeration to remove.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE
AO_ACCESS_DENIEDjava.lang.String[] listEnumerations() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEEnumerationDefinition getEnumerationDefinition(java.lang.String enumName) throws AoException
enumName
- Name of the requested enumeration.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid createInstanceRelations(ApplicationRelation applRel, InstanceElement[] elemList1, InstanceElement[] elemList2) throws AoException
applRel
- The application relation.elemList1
- The list with the instances of one application
element for which the relation will be created.elemList2
- The list with the related instances.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE