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>
public class ArrayParameterEntry extends ParameterEntry
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 ofIntegerValuethat can be static or values of other parameters.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location)ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location, Parameter parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParametergetParameter()List<IntegerValue>getSize()voidsetParameter(Parameter parameter)voidsetSize(List<IntegerValue> list)sets the sizes of the extracted array.StringtoString()-
Methods inherited from class org.yamcs.xtce.SequenceEntry
compareTo, getContainer, getIncludeCondition, getIndex, getLocationInContainerInBits, getReferenceLocation, getRepeatEntry, getSequenceContainer, setIncludeCondition, setLocation, setLocationInContainerInBits, setReferenceLocation, setRepeatEntry
-
-
-
-
Constructor Detail
-
ArrayParameterEntry
public ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location)
-
ArrayParameterEntry
public ArrayParameterEntry(int locationInContainerInBits, SequenceEntry.ReferenceLocationType location, Parameter parameter)
-
-
Method Detail
-
setParameter
public void setParameter(Parameter parameter)
- Overrides:
setParameterin classParameterEntry
-
setSize
public void setSize(List<IntegerValue> list)
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
public List<IntegerValue> getSize()
-
getParameter
public Parameter getParameter()
- Overrides:
getParameterin classParameterEntry- Returns:
- the parameter referenced by this array entry
-
toString
public String toString()
- Overrides:
toStringin classParameterEntry
-
-