|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.HLAMessage
HLAMessage represents one message which can be received by time constrained federate. The message can be queued into the time stamp queue or into the receive order queue.
TimeStampQueue,
ReceiveOrderQueue| Field Summary | |
protected LogicalTime |
logicalTime
The logical time associated with the message. |
protected static int |
MESSAGE_DELETE_OBJECT_INSTANCE
Constant denoting that the message was created after invocation of service deleteObjectInstance(). |
protected static int |
MESSAGE_SEND_INTERACTION
Constant denoting that the message was created after invocation of service sendInteraction(). |
protected static int |
MESSAGE_UPDATE_ATTRIBUTE_VALUES
Constant denoting that the message was created after invocation of service updateAttributeValues(). |
protected OrderType |
sentOrdering
The type of ordering with which the message was sent. |
protected TransportationType |
transportationType
The type of transport associated with the message. |
protected byte[] |
userSuppliedTag
The user-supplied tag associated with the message. |
| Constructor Summary | |
protected |
HLAMessage(int messageType)
Constructor. |
| Method Summary | |
int |
compareTo(java.lang.Object other)
Compares this message to another (time stamps are compared). |
LogicalTime |
getLogicalTime()
Returns logical time associated with the message. |
int |
getMessageType()
Returns the type of the message. |
OrderType |
getSentOrdering()
Returns the type of ordering with which the message was sent. |
TransportationType |
getTransportationType()
Returns the type of transport associated with the message. |
byte[] |
getUserSuppliedTag()
Returns the user-supplied tag associated with the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int MESSAGE_SEND_INTERACTION
protected static final int MESSAGE_UPDATE_ATTRIBUTE_VALUES
protected static final int MESSAGE_DELETE_OBJECT_INSTANCE
protected byte[] userSuppliedTag
protected OrderType sentOrdering
protected LogicalTime logicalTime
protected TransportationType transportationType
| Constructor Detail |
protected HLAMessage(int messageType)
messageType - the type of the message| Method Detail |
public int getMessageType()
public TransportationType getTransportationType()
public byte[] getUserSuppliedTag()
public OrderType getSentOrdering()
public LogicalTime getLogicalTime()
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - message to compare this to
+1 if time stamp of this message is greater than the other one,
-1 if time stamp of this message is less than the other one
0 if the time stamps of messages are equal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||