ubiware.shared
Class HttpResponseSenderBehavior

java.lang.Object
  extended by ubiware.core.ReusableAtomicBehavior
      extended by ubiware.shared.HttpResponseSenderBehavior
All Implemented Interfaces:
ubiware.core.ParametrizedAsset

public class HttpResponseSenderBehavior
extends ubiware.core.ReusableAtomicBehavior

Send a response to a AgentServerBehaviorServerEvent which resides on the blackboard of the UbiwareAgent The behavior tries to respond to the event, if an IOException occurs the event will still be removed after execution! The actual responding to the event happens in a separate thread to allow the UbiwareAgent to continue it's work.

18.3.2010

Author:
Michael Cochez for UBIWARE project

Field Summary
 
Fields inherited from class ubiware.core.ReusableAtomicBehavior
finished, myAgent
 
Constructor Summary
HttpResponseSenderBehavior()
           
 
Method Summary
protected  void doAction()
           
protected  void initializeRAB(ubiware.core.BehaviorStartParameters parameters)
           
 
Methods inherited from class ubiware.core.ReusableAtomicBehavior
addBeliefs, addBeliefsN3, addBeliefsN3, addBeliefsN3, addCommand, addOnBlackboard, block, block, done, equals, eraseBeliefs, getFromBlackboard, getStatements, getStatements, hasBeenExecuted, hasBeliefs, hasBeliefs, hasBeliefsN3, hasBeliefsN3, hasBeliefsN3, hasBeliefsN3, hashCode, hasSucceededTillNow, moveBeliefs, onRABEnd, print, printError, produceN3, produceN3, produceN3Document, produceN3Document, removeBeliefs, removeBeliefsN3, removeBeliefsN3, removeFromBlackboard, restart, sendMessage, sendMessage, setFailed, setStartParameters, wakeAgent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseSenderBehavior

public HttpResponseSenderBehavior()
Method Detail

initializeRAB

protected void initializeRAB(ubiware.core.BehaviorStartParameters parameters)
                      throws ubiware.core.IllegalParameterConfigurationException
Specified by:
initializeRAB in class ubiware.core.ReusableAtomicBehavior
Throws:
ubiware.core.IllegalParameterConfigurationException

doAction

protected void doAction()
Specified by:
doAction in class ubiware.core.ReusableAtomicBehavior