copyright The Portico Project 2008.

org.portico.shared.msg
Class RTI_UpdateAttributes

java.lang.Object
  extended by com.lbf.commons.messaging.RequestMessage
      extended by org.portico.shared.msg.RTI_RequestMessage
          extended by org.portico.shared.msg.RTI_UpdateAttributes
All Implemented Interfaces:
Externalizable, Serializable

public class RTI_UpdateAttributes
extends RTI_RequestMessage
implements Externalizable

This message represents a request to update the values of a group of attributes contained in a specific object instance.

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.RTI_RequestMessage
targetFederate, timestamp
 
Constructor Summary
RTI_UpdateAttributes()
           
RTI_UpdateAttributes(int objectId, byte[] tag, HashMap<Integer,byte[]> attributes)
           
RTI_UpdateAttributes(int objectId, byte[] tag, HashMap<Integer,byte[]> attributes, double time)
           
 
Method Summary
 HashMap<Integer,byte[]> getAttributes()
           
 int getObjectId()
           
 byte[] getTag()
           
 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.RTI_RequestMessage
bytesToString, getTargetFederate, getTimestamp, isTimestamped, setTargetFederate, setTimestamp, stringToBytes
 
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

RTI_UpdateAttributes

public RTI_UpdateAttributes()

RTI_UpdateAttributes

public RTI_UpdateAttributes(int objectId,
                            byte[] tag,
                            HashMap<Integer,byte[]> attributes)

RTI_UpdateAttributes

public RTI_UpdateAttributes(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)

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class RTI_RequestMessage
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class RTI_RequestMessage
Throws:
IOException

copyright The Portico Project 2008.