vs.plotagent
Class BasicPlotGoalManager

java.lang.Object
  extended by vs.plotagent.BasicPlotGoalManager
All Implemented Interfaces:
IAgentModule, IPlotGoalManager

public class BasicPlotGoalManager
extends java.lang.Object
implements IPlotGoalManager

Author:
tommasse

Nested Class Summary
 class BasicPlotGoalManager.BasicPlotGoal
           
 
Nested classes/interfaces inherited from interface vs.plotagent.IPlotGoalManager
IPlotGoalManager.IPlotGoalResult, IPlotGoalManager.PlotGoal
 
Constructor Summary
BasicPlotGoalManager(IPlotAgent owner)
           
 
Method Summary
 void addGoal(IPlotGoalManager.PlotGoal goal)
           
 IAgent getAgent()
          To get the Agent
 void performSteps(boolean fail)
          Tries to perform new steps to achieve the plot goals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPlotGoalManager

public BasicPlotGoalManager(IPlotAgent owner)
Method Detail

addGoal

public void addGoal(IPlotGoalManager.PlotGoal goal)
Specified by:
addGoal in interface IPlotGoalManager

getAgent

public IAgent getAgent()
Description copied from interface: IAgentModule
To get the Agent

Specified by:
getAgent in interface IAgentModule
Returns:
an Agent that owns this module

performSteps

public void performSteps(boolean fail)
Description copied from interface: IPlotGoalManager
Tries to perform new steps to achieve the plot goals

Specified by:
performSteps in interface IPlotGoalManager
Parameters:
fail - if true, the failure condition of a plot goal should be executed if no plan can be made