public interface InstanceElementOperations
Modifier and Type | Method and Description |
---|---|
void |
addInstanceAttribute(NameValueUnit instAttr)
(14001)
Add an instance attribute to the instance.
|
T_LONGLONG |
compare(InstanceElement compIeObj)
(14031)
Compare two instance elements.
|
InstanceElement[] |
createRelatedInstances(ApplicationRelation applRel,
NameValueSeqUnit[] attributes,
ApplicationRelationInstanceElementSeq[] relatedInstances)
(14032)
Create a list with new instances which are related to the actual
instance element.
|
void |
createRelation(ApplicationRelation relation,
InstanceElement instElem)
(14002)
Create a relation between the current and the given instance.
|
InstanceElement |
deepCopy(java.lang.String newName,
java.lang.String newVersion)
(14028)
Provides an easy-to-use and effective copy mechanism for instance
element hierarchies inside the server (e.g. copy a project with all
tests or copy a test with all measurements).
|
void |
destroy()
(14030)
Destroy the object on the server.
|
ApplicationElement |
getApplicationElement()
(14003)
Get the application element of the instance element.
|
java.lang.String |
getAsamPath()
(14004)
Get the ASAM-Path of the instance element.
|
T_LONGLONG |
getId()
(14005)
Get the Id of the instance element.
|
InitialRight[] |
getInitialRights()
(14025)
Retrieve access control list information for the initial rights of
the given object.
|
java.lang.String |
getName()
(14006)
Get the name of the instance element.
|
InstanceElementIterator |
getRelatedInstances(ApplicationRelation applRel,
java.lang.String iePattern)
(14007)
Get the related instances.
|
InstanceElementIterator |
getRelatedInstancesByRelationship(Relationship ieRelationship,
java.lang.String iePattern)
(14008)
Get the list of related instances.
|
ACL[] |
getRights()
(14024)
Retrieve access control list information of the given object.
|
NameValueUnit |
getValue(java.lang.String attrName)
(14009)
Get the name-value-unit tuple of the given attribute of the instance
element.
|
NameValueUnit |
getValueByBaseName(java.lang.String baseAttrName)
(14010)
Get the attribute's name-value-unit tuple of the attribute inherited
from the given base attribute of the instance element.
|
NameValueUnit |
getValueInUnit(NameUnit attr)
(14021)
Get the attribute value (name, value and unit) of the given
attribute of the instance element.
|
NameValueUnit[] |
getValueSeq(java.lang.String[] attrNames)
(14029)
Get the sequence of the values of the application or instance
attributes, specified by their names.
|
java.lang.String[] |
listAttributes(java.lang.String iaPattern,
AttrType aType)
(14011)
Get the attribute names from the instance element.
|
NameIterator |
listRelatedInstances(ApplicationRelation ieRelation,
java.lang.String iePattern)
(14012)
Get the names of the related instances.
|
NameIterator |
listRelatedInstancesByRelationship(Relationship ieRelationship,
java.lang.String iePattern)
(14013)
Get the names of the related instances.
|
void |
removeInstanceAttribute(java.lang.String attrName)
(14014)
Remove an instance attribute.
|
void |
removeRelation(ApplicationRelation applRel,
InstanceElement instElem_nm)
(14015)
Remove the relation between the current instance and the given
instance.
|
void |
renameInstanceAttribute(java.lang.String oldName,
java.lang.String newName)
(14016)
Rename the instance attribute.
|
void |
setInitialRights(InstanceElement usergroup,
int rights,
T_LONGLONG refAid,
RightsSet set)
(14026)
The given user group the initial rights should be set for.
|
void |
setName(java.lang.String iaName)
(14017)
Set the name of an instance element.
|
void |
setRights(InstanceElement usergroup,
int rights,
RightsSet set)
(14023)
The given user group the rights should be set for.
|
void |
setValue(NameValueUnit value)
(14018)
Set the value of an application attribute or of an existing instance
attribute.
|
void |
setValueSeq(NameValueUnit[] values)
(14022)
Set a sequence of values of application attributes but no instances
attributes.
|
InstanceElement |
shallowCopy(java.lang.String newName,
java.lang.String newVersion)
(14027)
Provides an easy-to-use and effective copy mechanism for instance
elements inside the server.
|
Measurement |
upcastMeasurement()
(14019)
Cast an instance element to a measurement.
|
ODSFile |
upcastODSFile()
(14033)
Upcast the InstanceElement object to the corresponding ODSFile
interface for an instance.
|
SubMatrix |
upcastSubMatrix()
(14020)
Cast an instance element to a submatrix.
|
void addInstanceAttribute(NameValueUnit instAttr) throws AoException
instAttr
- The instance attribute to be added.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 createRelation(ApplicationRelation relation, InstanceElement instElem) throws AoException
relation
- The application relation.instElem
- The instance element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement getApplicationElement() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String getAsamPath() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVET_LONGLONG getId() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String getName() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElementIterator getRelatedInstances(ApplicationRelation applRel, java.lang.String iePattern) throws AoException
applRel
- The application relation.iePattern
- The name or the search pattern for the related
instance names.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElementIterator getRelatedInstancesByRelationship(Relationship ieRelationship, java.lang.String iePattern) throws AoException
ieRelationship
- The requested relationship.iePattern
- The name or the search pattern for the related
instance names.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameValueUnit getValue(java.lang.String attrName) throws AoException
attrName
- The name of the requested attribute.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_ACTIVENameValueUnit getValueByBaseName(java.lang.String baseAttrName) throws AoException
baseAttrName
- The base name of the requested attribute.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[] listAttributes(java.lang.String iaPattern, AttrType aType) throws AoException
iaPattern
- The name or the search pattern for the attribute
names.aType
- The requested attribute type.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_ATTRIBUTE_TYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameIterator listRelatedInstances(ApplicationRelation ieRelation, java.lang.String iePattern) throws AoException
ieRelation
- The application relation.iePattern
- The name or the search pattern for the related
instance names.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_ACTIVENameIterator listRelatedInstancesByRelationship(Relationship ieRelationship, java.lang.String iePattern) throws AoException
ieRelationship
- The requested relationship.iePattern
- The name or the search pattern for the related
instance names.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid removeInstanceAttribute(java.lang.String attrName) throws AoException
attrName
- The name of the attribute to be removed.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid removeRelation(ApplicationRelation applRel, InstanceElement instElem_nm) throws AoException
applRel
- The relation to be removed.instElem_nm
- The instance element for specific delete from
n:m relations.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid renameInstanceAttribute(java.lang.String oldName, java.lang.String newName) throws AoException
oldName
- The old instance attribute name.newName
- The new instance attribute name.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setName(java.lang.String iaName) throws AoException
iaName
- The instance attribute name.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 setValue(NameValueUnit value) throws AoException
value
- The value to be set in the instance element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_VALUE
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEMeasurement upcastMeasurement() 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_INVALID_BASETYPESubMatrix upcastSubMatrix() 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_INVALID_BASETYPENameValueUnit getValueInUnit(NameUnit attr) throws AoException
attr
- The name of the requested attribute and the unit of
the attribute value.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_INCOMPATIBLE_UNITS
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setValueSeq(NameValueUnit[] values) throws AoException
values
- The sequence of the values to be set at the instance
element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_VALUE
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setRights(InstanceElement usergroup, int rights, RightsSet set) throws AoException
usergroup
- The user group for which the rights will be
modified.rights
- The new right for the user group. The rights
constants are defined in the interface
SecurityRights. The interface definition language
IDL does not allow to set the values of enumerations
thus the constant definitions had to be done in an
interface.set
- What to do with the new right.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_ACTIVEACL[] getRights() 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_ACTIVEInitialRight[] getInitialRights() 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_ACTIVEvoid setInitialRights(InstanceElement usergroup, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
usergroup
- The user group for which the initial rights will
be modified.rights
- The new initial rights for the user group. The
rights constants are defined in the interface
SecurityRights. The interface definition language
IDL does not allow to set the values of enumerations
thus the constant definitions have to be done in the
interface.refAid
- The Id of referencing application element for which
the initial rights will be used. If no refAid is set
the initial rights will be used for each new
instance element independent of the application
element.set
- What to do with the new initial rights.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_ACTIVEInstanceElement shallowCopy(java.lang.String newName, java.lang.String newVersion) throws AoException
newName
- The name of the new instance element. If a new
version shall be created this parameter may be NULL
to use the same name for the copy. In this case a
new version must be provided.newVersion
- The version of the new instance element. This
parameter may be NULL if a new name is provided.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_ACTIVEInstanceElement deepCopy(java.lang.String newName, java.lang.String newVersion) throws AoException
newName
- The name of the new instance element. If a new
version shall be created this parameter may be NULL
to use the same name for the copy. In this case a
new version must be provided.newVersion
- The version of the new instance element. This
parameter may be NULL if a new name is provided.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_ACTIVENameValueUnit[] getValueSeq(java.lang.String[] attrNames) throws AoException
attrNames
- The names of the attributes to be reported.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 destroy() 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_ACTIVET_LONGLONG compare(InstanceElement compIeObj) throws AoException
compIeObj
- The instance element to compare with.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_ACTIVEInstanceElement[] createRelatedInstances(ApplicationRelation applRel, NameValueSeqUnit[] attributes, ApplicationRelationInstanceElementSeq[] relatedInstances) throws AoException
applRel
- The application relation for witch the related
instances will be created.attributes
- The attributes of the new created instances.relatedInstances
- The list with related instances for
different application relations.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_ACTIVEODSFile upcastODSFile() throws AoException
AoException
- with the following possible error codes:
AO_INVALID_BASETYPE
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE