ics.TripleApl.SequencePlan Class Reference

Inheritance diagram for ics.TripleApl.SequencePlan:

ics.TripleApl.Plan List of all members.

Public Member Functions

 SequencePlan ()
 SequencePlan (Plan p)
Plan copy ()
void doSubst (SubstList theta)
boolean equals (Object obj)
boolean equals (Plan plan)
boolean plansMatch (BeliefBase beliefBase, Plan otherPlan, SubstList theta, VarPlanList planSubst)
void doSubstitution (VarPlanList planSubst)
void simplify ()
void simplify (BeliefBase bb)
String toString ()
List getPlans ()
void addPlan (Plan plan)
int size ()
PlanOption isExecutable (Agent agent)
Plan executePlan (SubstList theta, SequencePlan scope, Agent agent, AMS ams)

Private Attributes

LinkedList plans

Detailed Description

Class SequencePlan. This class contains a sequence of one or more Plans. It is not allowed to put a SequencePlan within a SequencePlan.

Author:
Bas Steunebrink


Constructor & Destructor Documentation

ics.TripleApl.SequencePlan.SequencePlan  ) 
 

Constructor of an empty SequencePlan.

ics.TripleApl.SequencePlan.SequencePlan Plan  p  ) 
 

helper constructor, build sequencegoal with one plan in it


Member Function Documentation

void ics.TripleApl.SequencePlan.addPlan Plan  plan  ) 
 

Method to add a Plan at the end of a SequencePlan. All types of Plan are allowed, except SequencePlan (this should be fixed in the future).

Parameters:
plan a new Plan to be added.

Plan ics.TripleApl.SequencePlan.copy  )  [virtual]
 

A method to make a copy of a goal.

Returns:
Plan, a copy of the goal.

Implements ics.TripleApl.Plan.

void ics.TripleApl.SequencePlan.doSubst SubstList  theta  )  [virtual]
 

All variables in the Plan which also occur in the SubstList are replaced with their value.

Parameters:
sub the list of variables and their substitution.

Implements ics.TripleApl.Plan.

void ics.TripleApl.SequencePlan.doSubstitution VarPlanList  planSubst  ) 
 

Replaces all VarPlans in this SequencePlan with their given substitutions, or removed if not substituted.

Parameters:
planSubst 

boolean ics.TripleApl.SequencePlan.equals Plan  plan  )  [virtual]
 

Method compares Plans on equality of type and content.

Returns:
true on equality.

Implements ics.TripleApl.Plan.

boolean ics.TripleApl.SequencePlan.equals Object  obj  ) 
 

Plan ics.TripleApl.SequencePlan.executePlan SubstList  theta,
SequencePlan  scope,
Agent  agent,
AMS  ams
[virtual]
 

Executes the first Plan.

Implements ics.TripleApl.Plan.

List ics.TripleApl.SequencePlan.getPlans  ) 
 

Method which returns the SequencePlan as a List.

Returns:
List, containing all plans from the sequence.

PlanOption ics.TripleApl.SequencePlan.isExecutable Agent  agent  )  [virtual]
 

Returns:
a PlanOption if the first Plan is executable, null otherwise

Implements ics.TripleApl.Plan.

boolean ics.TripleApl.SequencePlan.plansMatch BeliefBase  beliefBase,
Plan  otherPlan,
SubstList  theta,
VarPlanList  planSubst
[virtual]
 

Matches this SequencePlan with another SequencePlan, filling the list of VarPlan substitutions when successful substitutions can be made.

Implements ics.TripleApl.Plan.

void ics.TripleApl.SequencePlan.simplify BeliefBase  bb  )  [virtual]
 

Deprecated:
use simplify() instead

Implements ics.TripleApl.Plan.

void ics.TripleApl.SequencePlan.simplify  )  [virtual]
 

The goal is simplified as far as possible. This means that Wffs in the goal are calculated (arithmatic and boolean) as far as possible.

Implements ics.TripleApl.Plan.

int ics.TripleApl.SequencePlan.size  ) 
 

Method returns the number of Plans in the SequencePlan.

Returns:
int, the number of Plans.

String ics.TripleApl.SequencePlan.toString  )  [virtual]
 

Method to get a printable version of a Goal.

Returns:
String, a printable version of a Goal.

Implements ics.TripleApl.Plan.


Member Data Documentation

LinkedList ics.TripleApl.SequencePlan.plans [private]
 

In this LinkedList the plans from a SequencePlan are kept.


The documentation for this class was generated from the following file:
Generated on Mon Dec 12 15:07:24 2005 for 3APL by  doxygen 1.4.5