org.portico.shared.msg
Class FED_ReflectAttributes
java.lang.Object
com.lbf.commons.messaging.RequestMessage
org.portico.shared.msg.FED_CallbackMessage
org.portico.shared.msg.FED_ReflectAttributes
- All Implemented Interfaces:
- Externalizable, Serializable
public class FED_ReflectAttributes
- extends FED_CallbackMessage
- implements Externalizable
Callback to inform the target federate that some attributes that it is interested in have had
their values changed.
- 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
objectId
private int objectId
tag
private byte[] tag
attributes
private HashMap<Integer,byte[]> attributes
FED_ReflectAttributes
public FED_ReflectAttributes()
FED_ReflectAttributes
public FED_ReflectAttributes(int objectId,
byte[] tag,
HashMap<Integer,byte[]> attributes)
FED_ReflectAttributes
public FED_ReflectAttributes(int objectId,
byte[] tag,
HashMap<Integer,byte[]> attributes,
double time)
getAttributes
public HashMap<Integer,byte[]> getAttributes()
setAttributes
public void setAttributes(HashMap<Integer,byte[]> attributes)
getObjectId
public int getObjectId()
setObjectId
public void setObjectId(int objectId)
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