|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.planner.PlannerEngine
public final class PlannerEngine
This class constitutes a Blackboard for the planner. Works as a liaison class
between the
and
GraphFactory
.
Pathfinder
This class holds three SidiousQueue
queues for calculating a
plan:
Field Summary | |
---|---|
private SidiousQueue<Goal> |
graphFactoryQueue
Queue to facilitate generation of the graph. |
private java.util.HashMap<SuperLinkID,Pathfinder> |
idToPathfinder
Mapping between id and pathfinder |
private static Planner |
INSTANCE
private singleton instance. |
private static org.apache.commons.logging.Log |
logger
Logger for this class. |
private SidiousQueue<Graph> |
pathfinderQueue
Queue to facilitate the path finding. |
private SidiousQueue<Graph> |
planGeneratorQueue
Queue to handle the generation of a plan from a searched graph. |
Constructor Summary | |
---|---|
private |
PlannerEngine()
Private constructor, to facilitate singleton. |
Method Summary | |
---|---|
private void |
deliverPlan(Plan plan)
Delivers the finished plan to the blackboard. |
static java.util.Collection<Adjustable> |
getAdjustables(SuperLinkID requester)
Returns the adjustables of the specified requester. |
static Planner |
getInstance()
Returns the singleton instance. |
void |
requestPlan(Goal goal)
Requests this planner for a plan to the specified goal. |
void |
stop(SuperLinkID id)
Stops generating a plan for the given id . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log logger
private final java.util.HashMap<SuperLinkID,Pathfinder> idToPathfinder
private static final Planner INSTANCE
private SidiousQueue<Goal> graphFactoryQueue
private SidiousQueue<Graph> pathfinderQueue
private SidiousQueue<Graph> planGeneratorQueue
Constructor Detail |
---|
private PlannerEngine()
Method Detail |
---|
private void deliverPlan(Plan plan)
plan
- the finished planpublic static java.util.Collection<Adjustable> getAdjustables(SuperLinkID requester)
requester
- the requester
public void stop(SuperLinkID id)
Planner
id
.
stop
in interface Planner
id
- the idpublic void requestPlan(Goal goal)
Planner
requestPlan
in interface Planner
goal
- the goal to search with respect topublic static Planner getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |