org.portico.lrc.handlers
Class REQ_UpdateAttributeHandler
java.lang.Object
com.lbf.commons.messaging.AbstractMessageHandler
org.portico.lrc.handlers.LRCMessageHandler
org.portico.lrc.handlers.REQ_UpdateAttributeHandler
- All Implemented Interfaces:
- com.lbf.commons.messaging.IMessageHandler
public class REQ_UpdateAttributeHandler
- extends LRCMessageHandler
This class handles the preprocessing of updateAttributeValues() requests to make sure they are
valid before sending them to the RTI.
Fields inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
augmentable, name |
Method Summary |
void |
processMessage(com.lbf.commons.messaging.MessageContext context)
This method will perform any state validity checks and if the request was timestamped, it
will ensure that the associated time is not less than the current LBTS for the federate. |
Methods inherited from class com.lbf.commons.messaging.AbstractMessageHandler |
getName, isAugmentable, setAugmentable, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQ_UpdateAttributeHandler
public REQ_UpdateAttributeHandler()
processMessage
public void processMessage(com.lbf.commons.messaging.MessageContext context)
throws Exception
- This method will perform any state validity checks and if the request was timestamped, it
will ensure that the associated time is not less than the current LBTS for the federate.
It will then feth the object instance in question, and for each of the attributes being
updated, it will ensure that the attribute handle both exists, and that the updating
federate is their owner (and thus has permission to update them). If all this is successful,
it will sent the request to the RTI.
- Specified by:
processMessage
in interface com.lbf.commons.messaging.IMessageHandler
- Specified by:
processMessage
in class LRCMessageHandler
- Throws:
Exception