org.dyncle
Class ADTypeComponent

java.lang.Object
  extended by jade.core.behaviours.Behaviour
      extended by jade.core.behaviours.SimpleBehaviour
          extended by org.dyncle.ComponentBehaviour
              extended by org.dyncle.ADTypeComponent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ApproachObject, ApproachObject, DisposeDust, MaintainBattery, MaintainLoadAmount

public abstract class ADTypeComponent
extends ComponentBehaviour

Abstract class for Analyze & Decide type component.

Version:
2.0: Improve to use JSHOP2
Author:
Hiroyuki NAKAGAWA
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.dyncle.ComponentBehaviour
mode, name, priority, serviceType
 
Fields inherited from class jade.core.behaviours.Behaviour
STATE_BLOCKED, STATE_READY, STATE_RUNNING
 
Constructor Summary
ADTypeComponent(SASystem a)
          This constructor sets the owner agent for this behavior.
ADTypeComponent(SASystem a, java.lang.String name, java.lang.String serviceType)
           
 
Method Summary
 void activateLowerCLs()
          Activates CLs that are previously passivated.
 jess.Rete getEngine()
           
 void makePlan(java.lang.String scriptFile)
          Generates plans.
 void passivateLowerCLs()
          Passivates control loops whose priorities are lower than this component.
 void setRules(java.lang.String ruleFile)
          Reads rules and sets them into the Jess planning engine.
 
Methods inherited from class org.dyncle.ComponentBehaviour
action, activate, addPort, connectPorts, disconnectPorts, done, getName, getPriority, getProvidedPorts, getRequiredPorts, getServiceType, passivate, perform, setName, setServiceType, terminate
 
Methods inherited from class jade.core.behaviours.SimpleBehaviour
reset
 
Methods inherited from class jade.core.behaviours.Behaviour
actionWrapper, block, block, getBehaviourName, getDataStore, getExecutionState, getRestartCounter, handleRestartEvent, 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

ADTypeComponent

public ADTypeComponent(SASystem a)
This constructor sets the owner agent for this behavior.

Parameters:
a - The agent this behavior belongs to.

ADTypeComponent

public ADTypeComponent(SASystem a,
                       java.lang.String name,
                       java.lang.String serviceType)
Method Detail

getEngine

public jess.Rete getEngine()

setRules

public void setRules(java.lang.String ruleFile)
              throws jess.JessException
Reads rules and sets them into the Jess planning engine.

Parameters:
ruleFile -
Throws:
jess.JessException

makePlan

public void makePlan(java.lang.String scriptFile)
Generates plans.

Parameters:
scriptFineName: - script file for start up JSHOP

passivateLowerCLs

public void passivateLowerCLs()
Passivates control loops whose priorities are lower than this component. These control loops are registered in "lowerComps", but not active control loops are outside the scope.


activateLowerCLs

public void activateLowerCLs()
Activates CLs that are previously passivated.