Hum Programming Language Wiki
Brought to you by:
richardgreen
The purpose of a Plan Frame is to describe part of a process. A component of the system called the Planner creates programs, called plan trees, by assembling related Task Frames. The Planner assembles task frames to form a plan. It does that by working backwards from a goal. The goal matches a post-condition in one of the task frames.
The notation of the task frame is designed to concisely describe an individual task. It also facilitates starting with an end-goal and then letting the system identify what process knowledge remains to be described.
--- Task: (imperative sentence - is the name/title of the task) Post: (declarative sentence) Pre: . (pre-condition - matches some other task's post-condition) . (pre-condition) . (...) . (Some tasks have no pre-conditions. They are ready to run.) Actions: . (role) : (action - understood by an actor assigned the role) . (role) : (action) . (...) . (Some tasks will have no actions. They simply define a named-state.) ---
Task: Deliver order to customer. Post: Order delivered to customer. Pre: . Customer has paid for order. . Order is ready for delivery. Actions: . Counter: Give order package to customer. . Bookkeeper: Account for order revenue and taxes.
Anonymous