Package org.yamcs.parameter
Class AggregateValue
- java.lang.Object
-
- org.yamcs.parameter.Value
-
- org.yamcs.parameter.AggregateValue
-
public class AggregateValue extends Value
-
-
Constructor Summary
Constructors Constructor Description AggregateValue(AggregateMemberNames memberNames)Create a new aggregate value with the member names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMemberName(int idx)AggregateMemberNamesgetMemberNames()ValuegetMemberValue(int i)ValuegetMemberValue(String name)Returns the value of the member with the given name or null if the parameter has no such member.org.yamcs.protobuf.Yamcs.Value.TypegetType()intnumMembers()voidsetMemberValue(int idx, Value value)voidsetMemberValue(String name, Value value)StringtoString()-
Methods inherited from class org.yamcs.parameter.Value
getBinaryValue, getBooleanValue, getDoubleValue, getFloatValue, getSint32Value, getSint64Value, getStringValue, getTimestampValue, getUint32Value, getUint64Value
-
-
-
-
Constructor Detail
-
AggregateValue
public AggregateValue(AggregateMemberNames memberNames)
Create a new aggregate value with the member names. Make sure that the memberNames are interned string (seeString.intern(), for example as returned byAggregateDataType.getMemberNames()- Parameters:
memberNames-
-
-
Method Detail
-
getMemberValue
public Value getMemberValue(String name)
Returns the value of the member with the given name or null if the parameter has no such member.- Parameters:
name- - the name of the aggregate member whos value has to be returned- Returns:
- the value of the member with the given name
-
setMemberValue
public void setMemberValue(int idx, Value value)
-
numMembers
public int numMembers()
-
getMemberName
public String getMemberName(int idx)
-
getMemberValue
public Value getMemberValue(int i)
-
getMemberNames
public AggregateMemberNames getMemberNames()
-
-