public class ParameterSet extends java.util.Vector<Parameter>
write
method is necessary to dump it to the database.
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected java.util.Vector<NameValueUnit> |
addOns |
protected T_LONGLONG |
aid |
protected java.lang.String |
name |
protected T_LONGLONG |
pid |
protected java.util.Vector<ElemId> |
relations |
Constructor and Description |
---|
ParameterSet(T_LONGLONG aid,
T_LONGLONG pid,
java.lang.String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(NameValueUnit nvu)
Add an additional attribute.
|
Parameter |
addParameter(java.lang.String name,
java.lang.String value,
DataType dt,
ElemId unit)
Add a parameter.
|
void |
addRelation(ElemId elemId)
Add a relation.
|
protected void |
appendToSeq(AIDNameValueSeqUnitId seq,
NameValueUnit nvu,
int idx,
int size) |
protected AIDNameValueSeqUnitId |
createAIDNameValueSeqUnitId(T_LONGLONG aid,
java.lang.String aaName,
boolean flag) |
protected NameValueUnit |
createNVU(java.lang.String valName) |
protected NameValueUnit |
createNVU(java.lang.String valName,
java.lang.String value) |
void |
removeAttribute(java.lang.String name)
Remove an additional attribute.
|
ElemId |
write(OdsCacheIF odsCache,
AoSession aoSession,
ElemId parent)
Write the parameter set to database.
|
protected void |
writeRelations(OdsCacheIF odsCache,
ElemId parSet)
Write the relations to the given parameter set.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
protected T_LONGLONG aid
protected T_LONGLONG pid
protected java.lang.String name
protected java.util.Vector<NameValueUnit> addOns
protected java.util.Vector<ElemId> relations
public ParameterSet(T_LONGLONG aid, T_LONGLONG pid, java.lang.String name)
aid
- the application element id of the parameter set.pid
- the application element id of the parameter children.name
- the instance element name of the parameter set.public Parameter addParameter(java.lang.String name, java.lang.String value, DataType dt, ElemId unit)
name
- the name of the parameter.value
- the value of the parameter.dt
- the data-type of the parameter.unit
- the unit id of the parameter.public void addAttribute(NameValueUnit nvu)
nvu
- the name value unit of the attribute.public void removeAttribute(java.lang.String name)
nvu
- the name value unit of the attribute to be removed.public void addRelation(ElemId elemId)
elemId
- the org.asam.ods.ElemId to the related element.public ElemId write(OdsCacheIF odsCache, AoSession aoSession, ElemId parent) throws AoException
odsCache
- the cache object.aoSession
- the ASAM ODS session used for writing.parent
- the optional parent element id.AoException
protected void writeRelations(OdsCacheIF odsCache, ElemId parSet) throws AoException
parSet
- the id of the parameter set.AoException
protected NameValueUnit createNVU(java.lang.String valName)
protected NameValueUnit createNVU(java.lang.String valName, java.lang.String value)
protected AIDNameValueSeqUnitId createAIDNameValueSeqUnitId(T_LONGLONG aid, java.lang.String aaName, boolean flag)
protected void appendToSeq(AIDNameValueSeqUnitId seq, NameValueUnit nvu, int idx, int size)