org.portico.shared.msg
Class FED_ReceiveInteraction
java.lang.Object
com.lbf.commons.messaging.RequestMessage
org.portico.shared.msg.FED_CallbackMessage
org.portico.shared.msg.FED_ReceiveInteraction
- All Implemented Interfaces:
- Externalizable, Serializable
public class FED_ReceiveInteraction
- extends FED_CallbackMessage
- implements Externalizable
Callback to inform the target federate that an interaction it is subscribed to has been sent.
The included parameter values, tag and id of the interaction class are provided.
- See Also:
- Serialized Form
Methods inherited from class com.lbf.commons.messaging.RequestMessage |
getIdentifier, toString |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
interactionId
private int interactionId
tag
private byte[] tag
parameters
private HashMap<Integer,byte[]> parameters
FED_ReceiveInteraction
public FED_ReceiveInteraction()
FED_ReceiveInteraction
public FED_ReceiveInteraction(int interacitonId,
byte[] tag,
HashMap<Integer,byte[]> parameters)
FED_ReceiveInteraction
public FED_ReceiveInteraction(int interactionId,
byte[] tag,
HashMap<Integer,byte[]> parameters,
double time)
getInteractionId
public int getInteractionId()
setInteractionId
public void setInteractionId(int interactionId)
getParameters
public HashMap<Integer,byte[]> getParameters()
setParameters
public void setParameters(HashMap<Integer,byte[]> parameters)
getTag
public byte[] getTag()
setTag
public void setTag(byte[] tag)
isSpecDefinedMessage
public boolean isSpecDefinedMessage()
- Description copied from class:
FED_CallbackMessage
- Is this callback type a "message" as defined in the HLA specification. The specification
defines "messages" as follows:
3.1.51 message: A change of object instance attribute value, an interaction, or a deletion
of an existing object instance, often associated with a particular point on
the High Level Architecture (HLA) time axis, as denoted by the associated
timestamp.
- Overrides:
isSpecDefinedMessage
in class FED_CallbackMessage
- Returns:
- Defaults to return
false
. Should be overridden to return
true
in any message type that requires it
readExternal
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class FED_CallbackMessage
- Throws:
IOException
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput output)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class FED_CallbackMessage
- Throws:
IOException