Package jadex.bdi.puzzle
Class ChooseMovePlan
java.lang.Object
jadex.bdi.puzzle.ChooseMovePlan
Meta-level reasoning plan for choosing between applicable plans.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbody(SokratesMLRAgent agent, jadex.bdi.puzzle.SokratesMLRAgent.ChooseMoveGoal goal) The plan body.protected booleanmatchColor(IBoard board, Move move, boolean prefer_samecolor) Match move with color constraint.protected booleanMatch move with jump constraint.protected jadex.bdi.runtime.impl.ICandidateInfoselectPlan(List<jadex.bdi.runtime.impl.ICandidateInfo> plans, IBoard board, boolean same, boolean jump, boolean consider_color, boolean consider_jump) Select a move with respect to color resp.
-
Constructor Details
-
ChooseMovePlan
public ChooseMovePlan()
-
-
Method Details
-
body
The plan body. -
selectPlan
protected jadex.bdi.runtime.impl.ICandidateInfo selectPlan(List<jadex.bdi.runtime.impl.ICandidateInfo> plans, IBoard 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:
plans- The list of applicable plans distinguished by move field.board- The board.same- Prefer moves of same color.jump- Prefer jump moves.consider_color- Consider the color.consider_jump- Consider the move kind.
-
matchColor
Match move with color constraint. -
matchJump
Match move with jump constraint.
-