public class AggregateDataType extends NameDescription implements DataType
| Modifier and Type | Class and Description |
|---|---|
static class |
AggregateDataType.Builder<T extends AggregateDataType.Builder<T>> |
ancillaryData, name, PATH_SEPARATOR, qualifiedName, xtceAliasSet| Modifier | Constructor and Description |
|---|---|
|
AggregateDataType(AggregateDataType.Builder<?> builder) |
protected |
AggregateDataType(AggregateDataType t) |
|
AggregateDataType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getInitialValue()
Get the initial value if any
|
Member |
getMember(int idx) |
Member |
getMember(String name)
Returns a member on the given name.
|
Member |
getMember(String[] path)
Returns a member in a hierarchical aggregate.
|
List<Member> |
getMemberList() |
AggregateMemberNames |
getMemberNames() |
String |
getTypeAsString()
String which represents the type.
|
Yamcs.Value.Type |
getValueType()
Return the expected Value type of an engineering value conforming to this XTCE data type
|
int |
numMembers() |
Map<String,Object> |
parseString(String initialValue)
Parse the initial value as a JSON string.
|
String |
toString(Object v)
Converts a value to a string.
|
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setAncillaryData, setLongDescription, setName, setQualifiedName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescriptionpublic AggregateDataType(AggregateDataType.Builder<?> builder)
public AggregateDataType(String name)
protected AggregateDataType(AggregateDataType t)
public String getTypeAsString()
DataTypegetTypeAsString in interface DataTypepublic Member getMember(String name)
name - the name of the member to be returnedpublic Yamcs.Value.Type getValueType()
DataTypegetValueType in interface DataTypepublic Member getMember(String[] path)
getMember(String):
getMember(path[0]).getMember(path[1])...getMember(path[n])assuming that all the elements on the path exist.
path - - the path to be traversed. Its length has to be at least 1 - otherwise an
IllegalArgumentException will be thrown.public AggregateMemberNames getMemberNames()
public int numMembers()
public Member getMember(int idx)
public Map<String,Object> parseString(String initialValue)
This allows to specify only partially the values, the rest are copied from the member initial value or the type definition (an exception is thrown if there is any member for which the value cannot be determined).
parseString in interface DataTypeinitialValue - IllegalArgumentException - if the string cannot be parsed or if values cannot be determined for all memberspublic Map<String,Object> getInitialValue()
DataTypegetInitialValue in interface DataTypeCopyright © 2020 Space Applications Services. All rights reserved.