copyright The Portico Project 2008.

org.portico.shared.msg
Class RTI_AssociateForUpdates

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_AssociateForUpdates
All Implemented Interfaces:
Serializable

public class RTI_AssociateForUpdates
extends RTI_RequestMessage

This message represents a request to associate a group of attributes with a specified region so that when updates are sent out, subscribers are filtered based on those regions.

See Also:
Serialized Form

Field Summary
private  HashSet<Integer> attributes
           
private  int objectHandle
           
private  int regionToken
           
private static long serialVersionUID
           
 
Fields inherited from class org.portico.shared.msg.RTI_RequestMessage
targetFederate, timestamp
 
Constructor Summary
RTI_AssociateForUpdates()
           
RTI_AssociateForUpdates(int objectHandle, int regionToken, HashSet<Integer> attributes)
           
 
Method Summary
 HashSet<Integer> getAttributes()
           
 int getObjectHandle()
           
 int getRegionToken()
           
 void readExternal(ObjectInput input)
           
 void setAttributes(HashSet<Integer> attributes)
           
 void setObjectHandle(int objectHandle)
           
 void setRegionToken(int regionToken)
           
 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

regionToken

private int regionToken

objectHandle

private int objectHandle

attributes

private HashSet<Integer> attributes
Constructor Detail

RTI_AssociateForUpdates

public RTI_AssociateForUpdates()

RTI_AssociateForUpdates

public RTI_AssociateForUpdates(int objectHandle,
                               int regionToken,
                               HashSet<Integer> attributes)
Method Detail

getRegionToken

public int getRegionToken()

setRegionToken

public void setRegionToken(int regionToken)

getObjectHandle

public int getObjectHandle()

setObjectHandle

public void setObjectHandle(int objectHandle)

getAttributes

public HashSet<Integer> getAttributes()

setAttributes

public void setAttributes(HashSet<Integer> attributes)

readExternal

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

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Overrides:
writeExternal in class RTI_RequestMessage
Throws:
IOException

copyright The Portico Project 2008.