copyright The Portico Project 2008.

org.portico.shared.msg
Class FED_ReflectAttributes

java.lang.Object
  extended by com.lbf.commons.messaging.RequestMessage
      extended by org.portico.shared.msg.FED_CallbackMessage
          extended by 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

Field Summary
private  HashMap<Integer,byte[]> attributes
           
private  int objectId
           
private static long serialVersionUID
           
private  byte[] tag
           
 
Fields inherited from class org.portico.shared.msg.FED_CallbackMessage
targetFederate, timestamp
 
Constructor Summary
FED_ReflectAttributes()
           
FED_ReflectAttributes(int objectId, byte[] tag, HashMap<Integer,byte[]> attributes)
           
FED_ReflectAttributes(int objectId, byte[] tag, HashMap<Integer,byte[]> attributes, double time)
           
 
Method Summary
 HashMap<Integer,byte[]> getAttributes()
           
 int getObjectId()
           
 byte[] getTag()
           
 boolean isSpecDefinedMessage()
          Is this callback type a "message" as defined in the HLA specification.
 void readExternal(ObjectInput input)
           
 void setAttributes(HashMap<Integer,byte[]> attributes)
           
 void setObjectId(int objectId)
           
 void setTag(byte[] tag)
           
 void writeExternal(ObjectOutput output)
           
 
Methods inherited from class org.portico.shared.msg.FED_CallbackMessage
getTargetFederate, getTimestamp, isAdvanceGrant, isPriority, isTimestamped, setTargetFederate, setTimestamp
 
Methods inherited from class com.lbf.commons.messaging.RequestMessage
getIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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

copyright The Portico Project 2008.