gr.demokritos.iit.jinsect.distributed
Class ReceiveTextsBehaviour

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by jade.core.behaviours.TickerBehaviour
              extended by gr.demokritos.iit.jinsect.distributed.ReceiveTextsBehaviour
All Implemented Interfaces:
java.io.Serializable

public class ReceiveTextsBehaviour
extends jade.core.behaviours.TickerBehaviour

A behaviour that receives texts and routes calculation of similarity between them. Also checks for cancellation messages, in order to finish the reception process.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jade.core.behaviours.Behaviour
jade.core.behaviours.Behaviour.RunnableChangedEvent
 
Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ReceiveTextsBehaviour(jade.core.Agent a, long l)
           
 
Method Summary
 void onTick()
          Checks for incoming texts in a non-blocking way, and also checks for cancellation messages.
 
Methods inherited from class jade.core.behaviours.TickerBehaviour
action, done, getTickCount, onStart, reset, reset, stop
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, getParent, handle, isRunnable, onEnd, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiveTextsBehaviour

public ReceiveTextsBehaviour(jade.core.Agent a,
                             long l)
Method Detail

onTick

public void onTick()
Checks for incoming texts in a non-blocking way, and also checks for cancellation messages.

Specified by:
onTick in class jade.core.behaviours.TickerBehaviour