vs.characteragent.behaviour
Class ExplainerBehaviour

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by vs.characteragent.behaviour.ExplainerBehaviour
All Implemented Interfaces:
java.io.Serializable

public class ExplainerBehaviour
extends jade.core.behaviours.SimpleBehaviour

Collects fabula elements and causalities from the character agent, and sends them to the Plot Agent Also keeps track of what the Plot Agent already received (although principally and by implementation it is no problem to send a fabula element twice, just that the PA already knew).

Author:
swartjes
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jade.core.behaviours.Behaviour
STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ExplainerBehaviour(BasicCharacterAgent arg0)
           
 
Method Summary
 void action()
           
 boolean done()
           
 void sendFabulaCausality(FabulaCausality fc)
          Sends a fabula causality to the Plot Agent
 void sendFabulaElement(FabulaElement fe)
          Sends a fabula element to the Plot Agent
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, isRunnable, onEnd, onStart, restart, root, setAgent, setBehaviourName, setDataStore, setExecutionState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplainerBehaviour

public ExplainerBehaviour(BasicCharacterAgent arg0)
Method Detail

action

public void action()
Specified by:
action in class jade.core.behaviours.Behaviour

done

public boolean done()
Specified by:
done in class jade.core.behaviours.Behaviour

sendFabulaCausality

public void sendFabulaCausality(FabulaCausality fc)
Sends a fabula causality to the Plot Agent

Parameters:
fc - the fabula causality to send

sendFabulaElement

public void sendFabulaElement(FabulaElement fe)
Sends a fabula element to the Plot Agent

Parameters:
fe - the fabula element to send