ics.TripleApl.AbstractDeliberationCycle Class Reference

Inheritance diagram for ics.TripleApl.AbstractDeliberationCycle:

ics.TripleApl.DeliberationCycle ics.TripleApl.DefaultDeliberationCycle List of all members.

Protected Member Functions

void clearAchievedGoals (Agent agent)
List findPGRulesMatchingGoals (Agent agent)
GoalOption selectPGRuleMatchingBeliefs (Agent agent, List pgGoalOptions)
void applyPGRule (Agent agent, GoalOption selectedRule)
List findPRRulesMatchingPlans (Agent agent)
RuleOption selectPRRuleMatchingBeliefs (Agent agent, List prRuleOptions)
void applyPRRule (Agent agent, RuleOption selectedRule)
PlanOption selectPlan (Agent agent)
void executePlan (Agent agent, PlanOption selectedPlan, AMS ams)
synchronized void waitForMessage (Agent agent)
void processIncomingMessages (Agent agent)

Static Protected Member Functions

static void addMessageToBeliefBase (Message m, BeliefBase bb)

Detailed Description

This class implements all helper functions needed by a ics.TripleApl.DeliberationCycle.

Author:
Bas Steunebrink


Member Function Documentation

static void ics.TripleApl.AbstractDeliberationCycle.addMessageToBeliefBase Message  m,
BeliefBase  bb
[static, protected]
 

Copied from the old deliberation cycle; needs to be refactored

Parameters:
m 
bb 

void ics.TripleApl.AbstractDeliberationCycle.applyPGRule Agent  agent,
GoalOption  selectedRule
[protected]
 

Applies the PlanningGoalRule contained in the GoalOption by adding it's head and body as a tuple to the PlanBase.

Parameters:
agent the Agent.
selectedRule a GoalOption containing the selected PlanningGoalRule.

void ics.TripleApl.AbstractDeliberationCycle.applyPRRule Agent  agent,
RuleOption  selectedRule
[protected]
 

Applies the PlanRevisionRule contained in the RuleOption by adding it's body to the PlanBase.

Parameters:
agent the Agent.
selectedRule a RuleOption containing the selected PlanRevisionRule.

void ics.TripleApl.AbstractDeliberationCycle.clearAchievedGoals Agent  agent  )  [protected]
 

Clears those goals from the Agents GoalBase that follow from it's BeliefBase.

Parameters:
agent the Agent.

void ics.TripleApl.AbstractDeliberationCycle.executePlan Agent  agent,
PlanOption  selectedPlan,
AMS  ams
[protected]
 

Executes the selected Plan.

Parameters:
agent the Agent.
selectedPlan a PlanOption containing the selected Plan.
ams the AMS.

List ics.TripleApl.AbstractDeliberationCycle.findPGRulesMatchingGoals Agent  agent  )  [protected]
 

Finds the PlanningGoalRules who's head match one of the Goals in the GoalBase but does not follow from the BeliefBase.

Parameters:
agent the Agent.
Returns:
a List of GoalOptions.

List ics.TripleApl.AbstractDeliberationCycle.findPRRulesMatchingPlans Agent  agent  )  [protected]
 

Finds the PlanRevisionRules who's head match one of the Plans in the PlanBase.

Parameters:
agent the Agent.
Returns:
a List of RuleOptions.

void ics.TripleApl.AbstractDeliberationCycle.processIncomingMessages Agent  agent  )  [protected]
 

Processes all messages in the agent's MessageBuffer by adding their contents to it's BeliefBase.

Parameters:
agent the Agent.

GoalOption ics.TripleApl.AbstractDeliberationCycle.selectPGRuleMatchingBeliefs Agent  agent,
List  pgGoalOptions
[protected]
 

Selects the first PlanningGoalRule who's guard matches the BeliefBase.

Parameters:
agent the Agent.
pgGoalOptions a List of GoalOptions.
Returns:
a GoalOption containing the selected PlanningGoalRule.

PlanOption ics.TripleApl.AbstractDeliberationCycle.selectPlan Agent  agent  )  [protected]
 

Selects the first executable Plan.

Parameters:
agent the Agent.
Returns:
a PlanOption containing the selected Plan.

RuleOption ics.TripleApl.AbstractDeliberationCycle.selectPRRuleMatchingBeliefs Agent  agent,
List  prRuleOptions
[protected]
 

Selects the first PlanRevisionRule who's guard matches the BeliefBase.

Parameters:
agent the Agent.
prRuleOptions a List of RuleOptions.
Returns:
a RuleOption containing the selected PlanRevisionRule.

synchronized void ics.TripleApl.AbstractDeliberationCycle.waitForMessage Agent  agent  )  [protected]
 

Causes this Thread to suspend until it is interrupted (by an incoming message).

Parameters:
agent the Agent.


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