copyright The Portico Project 2008.

org.portico.shared.msg
Class RTI_SubscribeObjectClass

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

public class RTI_SubscribeObjectClass
extends RTI_RequestMessage

This message class contains the handle of the class and the attribute handles that the target federate wishes to subscribe to. If the active variable is false than the request was to subscribe to the attributes passively.

See Also:
Serialized Form

Field Summary
private  boolean active
           
private  HashSet<Integer> attributeHandles
          A HashSet is used (rather than Set) because it is guaranteed to be serializable
private  int classHandle
           
private  int regionToken
           
private static long serialVersionUID
           
 
Fields inherited from class org.portico.shared.msg.RTI_RequestMessage
targetFederate, timestamp
 
Constructor Summary
RTI_SubscribeObjectClass()
           
RTI_SubscribeObjectClass(int classHandle, HashSet<Integer> attributes, boolean active)
           
RTI_SubscribeObjectClass(int classHandle, HashSet<Integer> attributes, boolean active, int regionToken)
           
 
Method Summary
 HashSet<Integer> getAttributeHandles()
           
 int getClassHandle()
           
 int getRegionToken()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setAttributeHandles(HashSet<Integer> attributeHandles)
           
 void setClassHandle(int classHandle)
           
 void setRegionToken(int regionToken)
           
 boolean usesDDM()
           
 
Methods inherited from class org.portico.shared.msg.RTI_RequestMessage
bytesToString, getTargetFederate, getTimestamp, isTimestamped, readExternal, setTargetFederate, setTimestamp, stringToBytes, writeExternal
 
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

classHandle

private int classHandle

attributeHandles

private HashSet<Integer> attributeHandles
A HashSet is used (rather than Set) because it is guaranteed to be serializable


regionToken

private int regionToken

active

private boolean active
Constructor Detail

RTI_SubscribeObjectClass

public RTI_SubscribeObjectClass()

RTI_SubscribeObjectClass

public RTI_SubscribeObjectClass(int classHandle,
                                HashSet<Integer> attributes,
                                boolean active)

RTI_SubscribeObjectClass

public RTI_SubscribeObjectClass(int classHandle,
                                HashSet<Integer> attributes,
                                boolean active,
                                int regionToken)
Method Detail

getAttributeHandles

public HashSet<Integer> getAttributeHandles()

setAttributeHandles

public void setAttributeHandles(HashSet<Integer> attributeHandles)

getClassHandle

public int getClassHandle()

setClassHandle

public void setClassHandle(int classHandle)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getRegionToken

public int getRegionToken()

setRegionToken

public void setRegionToken(int regionToken)

usesDDM

public boolean usesDDM()

copyright The Portico Project 2008.