ics.TripleApl.SendAction Class Reference

Inheritance diagram for ics.TripleApl.SendAction:

ics.TripleApl.Plan List of all members.

Public Member Functions

 SendAction (Message message)
 SendAction (Par receiver, Par performative, Atom content)
Plan copy ()
void doSubst (SubstList sub)
boolean equals (Plan plan)
boolean equals (Object obj)
boolean plansMatch (BeliefBase beliefBase, Plan otherPlan, SubstList theta, VarPlanList planSubst)
void simplify ()
void simplify (BeliefBase bb)
String toString ()
PlanOption isExecutable (Agent agent)
Plan executePlan (SubstList theta, SequencePlan scope, Agent agent, AMS ams)

Private Member Functions

Message getMessage ()

Private Attributes

Message message

Detailed Description

Class for a send goal.

Version:
2.0, July 2003
Since:
February 2003
Author:
Meindert Kroese


Constructor & Destructor Documentation

ics.TripleApl.SendAction.SendAction Message  message  ) 
 

Construction of a Send Agent goal.

Parameters:
name the name of the recipient.
b the list of beliefs to be send to the recipient.

ics.TripleApl.SendAction.SendAction Par  receiver,
Par  performative,
Atom  content
 


Member Function Documentation

Plan ics.TripleApl.SendAction.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.SendAction.doSubst SubstList  sub  )  [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.

boolean ics.TripleApl.SendAction.equals Object  obj  ) 
 

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

Method compares Plans on equality of type and content.

Returns:
true on equality.

Implements ics.TripleApl.Plan.

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

Execute this Plan. Always call isExecutable(Agent) first to check whether this Plan is currently executable at all!

Parameters:
theta the substitutions to be used.
scope the scope if this Plan. This may be null if this Plan is a SequencePlan and it is the outer Plan.
agent the agent executing this Plan.
ams the AMS.
Returns:
a rewrite of this Plan, possibly this or null.

Implements ics.TripleApl.Plan.

Message ics.TripleApl.SendAction.getMessage  )  [private]
 

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

Always executable

Implements ics.TripleApl.Plan.

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

This method tries to match two plans, replacing variable parameters and variable plans, if necessary.

Parameters:
bb the beliefbase, is ignored.
otherPlan the goal to be matched with this goal.
theta the list of variable parameters and their values.
planSubst the list of variable goals and their substitutes.
Returns:
true when the match succeeds.

Implements ics.TripleApl.Plan.

void ics.TripleApl.SendAction.simplify BeliefBase  bb  )  [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. Wffs are first unified against the beliefbase.

Parameters:
bb the beliefbase.
Deprecated:
the BeliefBase is not used anywhere. Use simplify() instead

Implements ics.TripleApl.Plan.

void ics.TripleApl.SendAction.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.

String ics.TripleApl.SendAction.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

Message ics.TripleApl.SendAction.message [private]
 


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