Class ChooseMovePlan

java.lang.Object
jadex.bdi.puzzle.ChooseMovePlan

public class ChooseMovePlan extends Object
Meta-level reasoning plan for choosing between applicable plans.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    body(SokratesMLRAgent agent, jadex.bdi.puzzle.SokratesMLRAgent.ChooseMoveGoal goal)
    The plan body.
    protected boolean
    matchColor(IBoard board, Move move, boolean prefer_samecolor)
    Match move with color constraint.
    protected boolean
    matchJump(IBoard board, Move move, boolean prefer_jump)
    Match move with jump constraint.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChooseMovePlan

      public ChooseMovePlan()
  • Method Details

    • body

      public void body(SokratesMLRAgent agent, jadex.bdi.puzzle.SokratesMLRAgent.ChooseMoveGoal goal)
      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

      protected boolean matchColor(IBoard board, Move move, boolean prefer_samecolor)
      Match move with color constraint.
    • matchJump

      protected boolean matchJump(IBoard board, Move move, boolean prefer_jump)
      Match move with jump constraint.