public class MessageProcessing
extends java.lang.Object
This class implements the functionalities to encode/decode HLA values received from HLA/CERTI.
Constructor and Description |
---|
MessageProcessing() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
decodeHlaValue(HlaSubscriber hs,
Type type,
byte[] buffer)
This generic method calls the
EncodingHelpers API provided
by CERTI to handle type decoding operations for HLA value attribute
that has been reflected (RAV). |
static byte[] |
encodeHlaValue(HlaPublisher hp,
Token tok)
This generic method calls the
EncodingHelpers API or the
MessageBuffer API provided by CERTI to handle data encoding
operation for updated value of HLA attribute that will be published
to the federation. |
public static java.lang.Object decodeHlaValue(HlaSubscriber hs, Type type, byte[] buffer) throws IllegalActionException
EncodingHelpers
API provided
by CERTI to handle type decoding operations for HLA value attribute
that has been reflected (RAV).hs
- The targeted HLA subscriber actor.type
- The type to decode the token.buffer
- The encoded value to decode.IllegalActionException
- If the token is not handled or the
decoding has failed.public static byte[] encodeHlaValue(HlaPublisher hp, Token tok) throws IllegalActionException
EncodingHelpers
API or the
MessageBuffer
API provided by CERTI to handle data encoding
operation for updated value of HLA attribute that will be published
to the federation.hp
- The HLA publisher actor which sends the HLA attribute value.tok
- The token to encode, i.e. the HLA attribute value to encode.IllegalActionException
- If the token is not handled or the
encoding has failed.