Package jadex.web.examples.puzzle.agent
Class ChooseMovePlan
- java.lang.Object
- 
- jadex.bdiv3x.runtime.Plan
- 
- jadex.web.examples.puzzle.agent.ChooseMovePlan
 
 
- 
 public class ChooseMovePlan extends Plan Meta-level reasoning plan for choosing between applicable plans.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.bdiv3x.runtime.PlanPlan.PlanWaitAbstraction
 
- 
 - 
Constructor SummaryConstructors Constructor Description ChooseMovePlan()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()The plan body.protected booleanmatchColor(Board board, Move move, boolean prefer_samecolor)Match move with color constraint.protected booleanmatchJump(Board board, Move move, boolean prefer_jump)Match move with jump constraint.protected ICandidateInfoselectPlan(ICandidateInfo[] apps, Board board, boolean same, boolean jump, boolean consider_color, boolean consider_jump)Select a move with respect to color resp.- 
Methods inherited from class jadex.bdiv3x.runtime.Planaborted, checkNotInAtomic, createExpression, createGoal, createInternalEvent, createMessageEvent, dispatchInternalEvent, dispatchSubgoal, dispatchSubgoalAndWait, dispatchSubgoalAndWait, dispatchTopLevelGoal, endAtomic, fail, fail, fail, failed, getAgent, getBeliefbase, getClock, getComponentDescription, getComponentIdentifier, getComponentName, getDispatchedElement, getEventbase, getException, getExpression, getExpressionbase, getExternalAccess, getGoalbase, getLogger, getParameter, getParameters, getParameterSet, getParameterSets, getPlanbase, getPlanElement, getReason, getRPlan, getScope, getTime, getWaitqueue, hasParameter, hasParameterSet, killAgent, passed, sendMessage, sendMessageAndWait, sendMessageAndWait, startAtomic, toString, waitFor, waitForCondition, waitForCondition, waitForCondition, waitForConditionInline, waitForConditionInline, waitForEver, waitForFactAdded, waitForFactAdded, waitForFactChanged, waitForFactChanged, waitForFactRemoved, waitForFactRemoved, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForGoalFinished, waitForInternalEvent, waitForInternalEvent, waitForMessageEvent, waitForMessageEvent, waitForReply, waitForReply, waitForReply, waitForReply, waitForTick
 
- 
 
- 
- 
- 
Method Detail- 
selectPlanprotected ICandidateInfo selectPlan(ICandidateInfo[] apps, Board board, boolean same, boolean jump, boolean consider_color, boolean consider_jump) Select a move with respect to color resp. move kind (jump vs. normal).- Parameters:
- apps- The list of applicables.
- board- The board.
- same- Prefer moves of same color.
- jump- Prefer jump moves.
- consider_color- Consider the color.
- consider_jump- Consider the move kind.
 
 - 
matchColorprotected boolean matchColor(Board board, Move move, boolean prefer_samecolor) Match move with color constraint.
 
- 
 
-