copyright The Portico Project 2008.

org.portico.lrc.handlers
Class REQ_UpdateAttributeHandler

java.lang.Object
  extended by com.lbf.commons.messaging.AbstractMessageHandler
      extended by org.portico.lrc.handlers.LRCMessageHandler
          extended by 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.


Field Summary
 
Fields inherited from class org.portico.lrc.handlers.LRCMessageHandler
interests, logger, lrc, regions, repository, state
 
Fields inherited from class com.lbf.commons.messaging.AbstractMessageHandler
augmentable, name
 
Constructor Summary
REQ_UpdateAttributeHandler()
           
 
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 org.portico.lrc.handlers.LRCMessageHandler
error, error, getConnection, getFOM, initialize, sendMessage, success, success, success
 
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
 

Constructor Detail

REQ_UpdateAttributeHandler

public REQ_UpdateAttributeHandler()
Method Detail

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

copyright The Portico Project 2008.