public class AggregateDataType extends NameDescription implements DataType
name, PATH_SEPARATOR, qualifiedName, xtceAliasSet| Modifier | Constructor and Description |
|---|---|
protected |
AggregateDataType(AggregateDataType t) |
|
AggregateDataType(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(Member memberType) |
void |
addMembers(List<Member> memberList) |
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.
|
void |
setInitialValue(String initialValue)
Sets the initial value converting from string to the specific type value.
|
addAlias, addAliases, addAncillaryData, getAlias, getAliasSet, getAncillaryData, getAncillaryDataSet, getLongDescription, getName, getName, getOpsName, getQualifiedName, getShortDescription, getSubsystemName, getSubsystemName, setAliasSet, setLongDescription, setName, setQualifiedName, setShortDescriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getName, getShortDescription, setLongDescription, setShortDescriptionpublic AggregateDataType(String name)
protected AggregateDataType(AggregateDataType t)
public void addMember(Member memberType)
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 void setInitialValue(String initialValue)
DataTypesetInitialValue in interface DataTypepublic 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 membersCopyright © 2020 Space Applications Services. All rights reserved.