Package org.yamcs.parameter
Class AggregateValue
java.lang.Object
org.yamcs.parameter.Value
org.yamcs.parameter.AggregateValue
-
Constructor Summary
ConstructorDescriptionAggregateValue
(AggregateMemberNames memberNames) Create a new aggregate value with the member names. -
Method Summary
Modifier and TypeMethodDescriptionint
getMemberIndex
(String name) Get the index of the member with the given name or -1 if there is no such membergetMemberName
(int idx) getMemberValue
(int i) getMemberValue
(String name) Returns the value of the member with the given namegetType()
int
void
setMemberValue
(int idx, Value value) void
setMemberValue
(String name, Value value) toString()
Methods inherited from class org.yamcs.parameter.Value
getBinaryValue, getBooleanValue, getDoubleValue, getFloatValue, getSint32Value, getSint64Value, getStringValue, getTimestampValue, getUint32Value, getUint64Value, toDouble, toLong
-
Constructor Details
-
AggregateValue
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 Details
-
setMemberValue
-
getMemberValue
Returns the value of the member with the given name- Parameters:
name
- the name of the aggregate member whos value has to be returned- Returns:
- the value of the member with the given name
- Throws:
IllegalArgumentException
- if there is no member with that name
-
setMemberValue
-
getMemberIndex
Get the index of the member with the given name or -1 if there is no such member- Parameters:
name
-- Returns:
-
getType
-
numMembers
public int numMembers() -
getMemberName
-
getMemberValue
-
getMemberNames
-
toString
-