Class PlannerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--PlannerThread

public class PlannerThread
extends java.lang.Thread


Field Summary
private  java.util.Hashtable CurrentObjectives
           
private  Semaphore GPGP_notify
           
private  Agent localAgent
           
private  LinkedListQ Objectives
           
private  Semaphore planner_wait
           
static java.lang.String PO_SEPARATOR
           
private  Semaphore scheduler_notify
           
private  LinkedListQ TaskQ
           
private  java.util.Hashtable Tasks
           
private  java.util.Hashtable taskTemplates
           
private  LinkedListQ WITQ
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
PlannerThread(Agent lA, LinkedListQ obj, LinkedListQ TaskQueue, LinkedListQ WITQ, java.util.Hashtable taskTemplates, Semaphore one, Semaphore two, Semaphore GPGPn)
           
 
Method Summary
 void DebugPlan(java.lang.String Message)
           
 LinkedListQ getNameAndArgs(java.lang.String Message)
           
 boolean getPlan(java.lang.String taskName, java.lang.String reqId)
           
 void run()
           
 void runPlanner()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PO_SEPARATOR

public static java.lang.String PO_SEPARATOR

localAgent

private Agent localAgent

Objectives

private LinkedListQ Objectives

TaskQ

private LinkedListQ TaskQ

WITQ

private LinkedListQ WITQ

taskTemplates

private java.util.Hashtable taskTemplates

CurrentObjectives

private java.util.Hashtable CurrentObjectives

Tasks

private java.util.Hashtable Tasks

planner_wait

private Semaphore planner_wait

scheduler_notify

private Semaphore scheduler_notify

GPGP_notify

private Semaphore GPGP_notify
Constructor Detail

PlannerThread

public PlannerThread(Agent lA,
                     LinkedListQ obj,
                     LinkedListQ TaskQueue,
                     LinkedListQ WITQ,
                     java.util.Hashtable taskTemplates,
                     Semaphore one,
                     Semaphore two,
                     Semaphore GPGPn)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

runPlanner

public void runPlanner()
                throws NonCriticalAgentException,
                       CriticalAgentException

getNameAndArgs

public LinkedListQ getNameAndArgs(java.lang.String Message)

getPlan

public boolean getPlan(java.lang.String taskName,
                       java.lang.String reqId)

DebugPlan

public void DebugPlan(java.lang.String Message)