Planner

version 2/080503 by Nate Cull

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Utility Routines

            
    To decide whether goal (C - a planning-relation) with (P1 - an object) and (P2 - an object) is unique:
        repeat through the Table of Goals begin;
            if the Token entry is C and the Param1 entry is P1 and the Param2 entry is P2, decide no;
        end repeat;
        decide yes;

    To decide whether an action was planned:
        if the planned action is no-action, decide no;
        decide yes;

    To decide whether a goal was suggested:
        if the suggested token is a planning-marker, decide no;
        decide yes;

    To clear the goal table:
        repeat through the Table of Goals begin;
            blank out the whole row;
        end repeat;

    To decide whether goal (C - a planning-relation) with (P1 - an object) and (P2 - an object) is true:
        change the desired relation to C;
        change the desired param1 to P1;
        change the desired param2 to P2;
        consider the planning-testing rules;
        if rule succeeded begin;
            decide yes;
        end if;
        decide no;

    To decide whether goal (C - a planning-relation) with (P1 - an object) and (P2 - an object) is false:
        if goal C with P1 and P2 is true, decide no;
        decide yes;