Package org.yamcs.xtce
Class ArrayParameterType
- java.lang.Object
-
- org.yamcs.xtce.NameDescription
-
- org.yamcs.xtce.ArrayDataType
-
- org.yamcs.xtce.ArrayParameterType
-
- All Implemented Interfaces:
Serializable,DataType,ParameterType
public class ArrayParameterType extends ArrayDataType implements ParameterType
Describe an array parameter type. The size and number of dimensions are described here. SeeArrayParameterEntry, NameReferenceType and ArrayDataType.Note: XTCE 1.1 defines only the number of dimensions (integer) as part of the ArrayDataType and leaves the dimension list (containing the size of each dimension) to be defined as part of the
ArrayParameterEntryIn XTCE 1.2 the dimension list is also defined in this class and can be optionally omitted from the
ArrayParameterEntry.We support both behaviours.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrayParameterType.Builder
-
Field Summary
-
Fields inherited from class org.yamcs.xtce.NameDescription
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet
-
-
Constructor Summary
Constructors Constructor Description ArrayParameterType(String name)ArrayParameterType(String name, int numberOfDimensions)ArrayParameterType(ArrayParameterType t)ArrayParameterType(ArrayParameterType.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataEncodinggetEncoding()Get the data encoding for the parameter type.StringgetTypeAsString()String which represents the type.booleanhasAlarm()Whether this ParameterType has any alarms associatedObjectparseStringForRawValue(String stringValue)parses the string into a java object according to the parameter encodingArrayParameterType.BuildertoBuilder()Create a builder that can be used to make shallow copy of the parameter typeStringtoString()-
Methods inherited from class org.yamcs.xtce.ArrayDataType
getElementType, getInitialValue, getNumberOfDimensions, getSize, getValueType, parseString, toString
-
Methods inherited from class org.yamcs.xtce.NameDescription
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.yamcs.xtce.DataType
getInitialValue, getLongDescription, getName, getShortDescription, getValueType, toString
-
Methods inherited from interface org.yamcs.xtce.ParameterType
getDependentParameters, parseString
-
-
-
-
Constructor Detail
-
ArrayParameterType
public ArrayParameterType(ArrayParameterType.Builder builder)
-
ArrayParameterType
public ArrayParameterType(String name)
-
ArrayParameterType
public ArrayParameterType(String name, int numberOfDimensions)
-
ArrayParameterType
public ArrayParameterType(ArrayParameterType t)
-
-
Method Detail
-
getTypeAsString
public String getTypeAsString()
Description copied from interface:DataTypeString which represents the type. This string will be presented to the users of the system.- Specified by:
getTypeAsStringin interfaceDataType- Overrides:
getTypeAsStringin classArrayDataType- Returns:
-
hasAlarm
public boolean hasAlarm()
Description copied from interface:ParameterTypeWhether this ParameterType has any alarms associated- Specified by:
hasAlarmin interfaceParameterType
-
parseStringForRawValue
public Object parseStringForRawValue(String stringValue)
Description copied from interface:ParameterTypeparses the string into a java object according to the parameter encoding- Specified by:
parseStringForRawValuein interfaceParameterType- Returns:
-
toBuilder
public ArrayParameterType.Builder toBuilder()
Description copied from interface:ParameterTypeCreate a builder that can be used to make shallow copy of the parameter typeall the fields reference to the same object like the original
- Specified by:
toBuilderin interfaceParameterType- Returns:
-
getEncoding
public DataEncoding getEncoding()
Description copied from interface:ParameterTypeGet the data encoding for the parameter type.
For arrays and aggregates types that do not have encoding; this operation will throw anUnsupportedOperationException- Specified by:
getEncodingin interfaceParameterType- Returns:
-
-