aos.jack.jak.behaviors.bdi
Class BDIBehavior
java.lang.Object
aos.jack.jak.util.Watchable
aos.jack.jak.fsm.FSM
aos.jack.jak.behaviors.Behavior
aos.jack.jak.behaviors.SimpleBehavior
aos.jack.jak.behaviors.bdi.BDIBehavior
- All Implemented Interfaces:
- BehaviorFactory, ObservableInt
- Direct Known Subclasses:
- BDIGoalBehavior, RuleBehavior
- public class BDIBehavior
- extends SimpleBehavior
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BDIBehavior
public BDIBehavior(Behavior b,
Event e)
BDIBehavior
public BDIBehavior()
BDIBehavior
public BDIBehavior(BDIAttributes a)
BDIBehavior
public BDIBehavior(Behavior sen)
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
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