zeus.actors
Class Decomposition

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byzeus.actors.Decomposition
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Decomposition
extends java.util.Hashtable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
protected  java.util.Vector constraints
           
protected  java.util.Vector links
           
protected  int node_pointer
           
protected  java.util.Vector nodeList
           
protected  Planner planner
           
protected  java.lang.String root
           
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
Decomposition()
           
Decomposition(Planner planner, java.lang.String key, PlanRecord parent, java.util.Vector path, Goal goal, SummaryTask task)
           
 
Method Summary
protected  void add(TaskNode node)
           
protected  void addChildNode(java.lang.String parentId, java.lang.String childId)
           
protected  void addParentNode(java.lang.String childId, java.lang.String parentId)
           
 boolean allNodesScheduled()
           
protected  boolean allParentsScheduled(java.lang.String nodeId)
           
protected  void determineRoot(java.lang.String key, PlanRecord parent, java.util.Vector path, Goal goal, java.util.Vector candidates)
           
 void enforceLinks()
           
protected  TaskLink findLink(java.lang.String left, java.lang.String right)
           
 Goal getGoal(java.lang.String node)
           
 java.lang.String getKey(java.lang.String node)
           
protected  LinkInfo getLinkInfo(TaskLink link)
           
 java.lang.String getNodeWithGoalId(java.lang.String goalId)
           
 PlanRecord getParentRecord(java.lang.String node)
           
 java.util.Vector getPath(java.lang.String node)
           
 Fact[] getPostconditions(java.lang.String node)
           
 Fact[] getPreconditions(java.lang.String node)
           
 PlanRecord getRecord(java.lang.String node)
           
protected  java.lang.String[] getReservationId(TaskLink link, DecompositionStruct struct)
           
 PlanRecord getRootRecord()
           
protected  int getStartTime(TaskLink link, DecompositionStruct struct)
           
 SuppliedDb getSuppliedDb(java.lang.String node)
           
 boolean isQueued(java.lang.String node)
           
 boolean isScheduled(java.lang.String node)
           
 java.lang.String nextNode()
           
 void reset()
           
 void setImage(java.lang.String node, Goal image, java.lang.String agent, java.lang.String delegation_key)
           
 void setQueued(java.lang.String node, boolean set)
           
 void setRecords(java.lang.String node, java.util.Vector records)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

constraints

protected java.util.Vector constraints

links

protected java.util.Vector links

node_pointer

protected int node_pointer

root

protected java.lang.String root

nodeList

protected java.util.Vector nodeList

planner

protected Planner planner
Constructor Detail

Decomposition

public Decomposition()

Decomposition

public Decomposition(Planner planner,
                     java.lang.String key,
                     PlanRecord parent,
                     java.util.Vector path,
                     Goal goal,
                     SummaryTask task)
Method Detail

determineRoot

protected void determineRoot(java.lang.String key,
                             PlanRecord parent,
                             java.util.Vector path,
                             Goal goal,
                             java.util.Vector candidates)

add

protected void add(TaskNode node)

addParentNode

protected void addParentNode(java.lang.String childId,
                             java.lang.String parentId)

addChildNode

protected void addChildNode(java.lang.String parentId,
                            java.lang.String childId)

nextNode

public java.lang.String nextNode()

reset

public void reset()

findLink

protected TaskLink findLink(java.lang.String left,
                            java.lang.String right)

allParentsScheduled

protected boolean allParentsScheduled(java.lang.String nodeId)

getStartTime

protected int getStartTime(TaskLink link,
                           DecompositionStruct struct)

getReservationId

protected java.lang.String[] getReservationId(TaskLink link,
                                              DecompositionStruct struct)

getPreconditions

public Fact[] getPreconditions(java.lang.String node)

getPostconditions

public Fact[] getPostconditions(java.lang.String node)

getPath

public java.util.Vector getPath(java.lang.String node)

getGoal

public Goal getGoal(java.lang.String node)

getKey

public java.lang.String getKey(java.lang.String node)

getParentRecord

public PlanRecord getParentRecord(java.lang.String node)

setRecords

public void setRecords(java.lang.String node,
                       java.util.Vector records)

allNodesScheduled

public boolean allNodesScheduled()

setQueued

public void setQueued(java.lang.String node,
                      boolean set)

isQueued

public boolean isQueued(java.lang.String node)

isScheduled

public boolean isScheduled(java.lang.String node)

getRecord

public PlanRecord getRecord(java.lang.String node)

getRootRecord

public PlanRecord getRootRecord()

getNodeWithGoalId

public java.lang.String getNodeWithGoalId(java.lang.String goalId)

setImage

public void setImage(java.lang.String node,
                     Goal image,
                     java.lang.String agent,
                     java.lang.String delegation_key)

enforceLinks

public void enforceLinks()

getLinkInfo

protected LinkInfo getLinkInfo(TaskLink link)

getSuppliedDb

public SuppliedDb getSuppliedDb(java.lang.String node)


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.