Package org.yamcs.xtce
Class ArrayParameterEntry
java.lang.Object
org.yamcs.xtce.SequenceEntry
org.yamcs.xtce.ParameterEntry
org.yamcs.xtce.ArrayParameterEntry
- All Implemented Interfaces:
Serializable
,Comparable<SequenceEntry>
Describe an entry that is an array parameter.
The size of the extracted array has to be specified in the
size
property which is a list of
IntegerValue
that can be static or values of other parameters.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.xtce.SequenceEntry
SequenceEntry.ReferenceLocationType
-
Field Summary
Fields inherited from class org.yamcs.xtce.SequenceEntry
container, locationInContainerInBits
-
Constructor Summary
ConstructorsConstructorDescriptionArrayParameterEntry
(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location) ArrayParameterEntry
(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location, Parameter parameter) -
Method Summary
Modifier and TypeMethodDescriptiongetSize()
void
setParameter
(Parameter parameter) void
setSize
(List<IntegerValue> list) sets the sizes of the extracted array.toString()
Methods inherited from class org.yamcs.xtce.SequenceEntry
compareTo, getContainer, getIncludeCondition, getIndex, getLocationInContainerInBits, getReferenceLocation, getRepeatEntry, getSequenceContainer, setIncludeCondition, setLocation, setLocationInContainerInBits, setReferenceLocation, setRepeatEntry
-
Constructor Details
-
ArrayParameterEntry
public ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location) -
ArrayParameterEntry
public ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location, Parameter parameter)
-
-
Method Details
-
setParameter
- Overrides:
setParameter
in classParameterEntry
-
setSize
sets the sizes of the extracted array. The length of the list has to match theArrayDataType.getNumberOfDimensions()
- Throws:
IllegalArgumentException
- if the length of the list is not correct.
-
getSize
-
getParameter
- Overrides:
getParameter
in classParameterEntry
- Returns:
- the parameter referenced by this array entry
-
toString
- Overrides:
toString
in classParameterEntry
-