- All Superinterfaces:
DataElement
Interface for the HLA data type HLAvariantRecord.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the active discriminant.getValue()Returns element associated with the active discriminant.voidsetDiscriminant(T discriminant) Sets the active discriminant.voidsetVariant(T discriminant, DataElement dataElement) Associates the data element for a specified discriminant.Methods inherited from interface hla.rti1516e.encoding.DataElement
decode, decode, encode, getEncodedLength, getOctetBoundary, toByteArray
-
Method Details
-
setVariant
Associates the data element for a specified discriminant.- Parameters:
discriminant- discriminant to associate data element withdataElement- data element to associate the discriminant with
-
setDiscriminant
Sets the active discriminant.- Parameters:
discriminant- active discriminant
-
getDiscriminant
T getDiscriminant()Returns the active discriminant.- Returns:
- the active discriminant
-
getValue
DataElement getValue()Returns element associated with the active discriminant.- Returns:
- value
-