JACK 5.4 Application Interface

aos.jack.jak.behaviors.bdi
Class BDIBehavior

java.lang.Object
  extended byaos.jack.jak.util.Watchable
      extended byaos.jack.jak.fsm.FSM
          extended byaos.jack.jak.behaviors.Behavior
              extended byaos.jack.jak.behaviors.SimpleBehavior
                  extended byaos.jack.jak.behaviors.bdi.BDIBehavior
All Implemented Interfaces:
BehaviorFactory, ObservableInt
Direct Known Subclasses:
BDIGoalBehavior, RuleBehavior

public class BDIBehavior
extends SimpleBehavior


Constructor Summary
BDIBehavior()
           
BDIBehavior(BDIAttributes a)
           
BDIBehavior(Behavior sen)
           
BDIBehavior(Behavior b, Event e)
           
 
Method Summary
protected  boolean addFailed(Signature s)
           
protected  boolean addPlan(Signature s)
           
 boolean addPlanChoice(Agent a, Plan p, java.lang.String e)
           
protected  void computeApplicable()
           
protected  boolean continueToCompute()
           
 void discard(boolean top)
           
 boolean discardApplicable(int state)
           
 int failedPlan(int status)
           
 java.lang.String getKey()
           
 aos.jack.jak.rvt.MonitorID getMonitor()
           
protected  boolean getNextBinding(Plan p, int n)
           
protected  void init(Behavior sen, Event e)
           
 int initialize(int st)
           
protected  ApplicableSet newApplicableSet()
           
protected  FailureSet newFailureSet()
           
 Behavior newInstance(Event e)
           
protected  PlanChoice newPlanChoice()
           
 int passedPlan(int status)
           
protected  Signature pickApplicable()
           
 int pickPlan(int status)
           
protected  int postSubtask(Signature sig)
           
 int processMetaSubtask(FSM t, int status)
           
 int processSubtask(FSM s, int status)
           
 boolean setAttribute(java.lang.String attr, java.lang.Object val)
           
 boolean setAttribute(java.lang.String attr, java.lang.String val)
           
protected  boolean shouldFail()
           
protected  boolean shouldGenerate()
           
protected  boolean shouldPostPlanChoice()
           
protected  boolean shouldRepost(Signature s)
           
 boolean thrownAnException(aos.jack.jak.task.Task t, java.lang.Throwable e)
           
 
Methods inherited from class aos.jack.jak.behaviors.SimpleBehavior
addingPlan, choosingPlan, clearingApplicable, clearingFailure, error, otherState, postMeta, postPlan, preMeta, prePlan, removingPlan, run, stateInfo
 
Methods inherited from class aos.jack.jak.behaviors.Behavior
checkAttribute, init_sentinel, init, init
 
Methods inherited from class aos.jack.jak.fsm.FSM
describe, exceptionInfo, getAgent, getPreferredPriority, loadClass, remove, restart, setMode, toString, traceGoal
 
Methods inherited from class aos.jack.jak.util.Watchable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BDIBehavior

public BDIBehavior(Behavior b,
                   Event e)

BDIBehavior

public BDIBehavior()

BDIBehavior

public BDIBehavior(BDIAttributes a)

BDIBehavior

public BDIBehavior(Behavior sen)
Method Detail

getMonitor

public aos.jack.jak.rvt.MonitorID getMonitor()
Overrides:
getMonitor in class Behavior

discard

public void discard(boolean top)
Overrides:
discard in class FSM

getKey

public java.lang.String getKey()
Specified by:
getKey in interface BehaviorFactory
Overrides:
getKey in class SimpleBehavior

newInstance

public Behavior newInstance(Event e)
Specified by:
newInstance in interface BehaviorFactory
Overrides:
newInstance in class SimpleBehavior

init

protected void init(Behavior sen,
                    Event e)
Overrides:
init in class Behavior

newApplicableSet

protected ApplicableSet newApplicableSet()

newFailureSet

protected FailureSet newFailureSet()

addPlanChoice

public boolean addPlanChoice(Agent a,
                             Plan p,
                             java.lang.String e)
Overrides:
addPlanChoice in class Behavior

setAttribute

public boolean setAttribute(java.lang.String attr,
                            java.lang.String val)
Overrides:
setAttribute in class Behavior

setAttribute

public boolean setAttribute(java.lang.String attr,
                            java.lang.Object val)
Overrides:
setAttribute in class Behavior

computeApplicable

protected void computeApplicable()

initialize

public int initialize(int st)
Overrides:
initialize in class SimpleBehavior

pickPlan

public int pickPlan(int status)
Overrides:
pickPlan in class SimpleBehavior

processSubtask

public int processSubtask(FSM s,
                          int status)
Overrides:
processSubtask in class SimpleBehavior

passedPlan

public int passedPlan(int status)
Overrides:
passedPlan in class SimpleBehavior

failedPlan

public int failedPlan(int status)
Overrides:
failedPlan in class SimpleBehavior

postSubtask

protected int postSubtask(Signature sig)

processMetaSubtask

public int processMetaSubtask(FSM t,
                              int status)
Overrides:
processMetaSubtask in class SimpleBehavior

shouldGenerate

protected boolean shouldGenerate()

shouldPostPlanChoice

protected boolean shouldPostPlanChoice()

newPlanChoice

protected PlanChoice newPlanChoice()

shouldFail

protected boolean shouldFail()

continueToCompute

protected boolean continueToCompute()

pickApplicable

protected Signature pickApplicable()

getNextBinding

protected boolean getNextBinding(Plan p,
                                 int n)

addFailed

protected boolean addFailed(Signature s)

addPlan

protected boolean addPlan(Signature s)

discardApplicable

public final boolean discardApplicable(int state)

shouldRepost

protected boolean shouldRepost(Signature s)

thrownAnException

public boolean thrownAnException(aos.jack.jak.task.Task t,
                                 java.lang.Throwable e)
Overrides:
thrownAnException in class FSM

JACK 5.4 Application Interface

Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd.

US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.


Agent Oriented Software Pty. Ltd.     http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088