zeus.actors.rtn
Class Graph

java.lang.Object
  extended byzeus.actors.rtn.Arc
      extended byzeus.actors.rtn.Graph
Direct Known Subclasses:
buy, ContractNetInitiator, ContractNetRespondent, g0, g1, g2, PGraph, sell

public abstract class Graph
extends Arc


Field Summary
protected  Node begin_node
           
private static int count
           
static int DONE
           
static int FAILED
           
private  Node last_node
           
protected  java.lang.String next_node
           
protected  java.lang.String node_wakeup_key
           
protected  java.lang.String[][] nodes
           
protected  Node previous_node
           
static int READY
           
static int RUNNING
           
protected  java.lang.String start_node
           
protected  int state
           
 
Fields inherited from class zeus.actors.rtn.Arc
context, description, graph, input, output
 
Constructor Summary
Graph(java.lang.String description, java.lang.String[][] nodes, java.lang.String start_node)
           
 
Method Summary
(package private)  boolean allow_backtrack(Node node)
           
(package private)  boolean allow_exec()
           
(package private)  void done(Engine engine, Node node)
           
protected  boolean exec()
           
protected  void fail(Engine engine, java.lang.String reason)
           
(package private)  void failed(Engine engine, Node node)
           
protected  void finalize()
           
 int getState()
           
(package private)  java.util.Vector getTerminalNodes()
           
(package private)  Node newNode(Engine engine, java.lang.String name, Node previous)
           
(package private)  Node newNode(Engine engine, java.lang.String name, Node previous, java.util.Vector parents)
           
 void run(Engine engine, Node previous_node, java.lang.Object input, java.lang.String node_wakeup_key)
           
 void run(Engine engine, java.lang.Object input)
           
(package private)  void run1(Engine engine, Graph graph, Node previous_node, java.lang.Object input, java.lang.String next_node)
           
(package private)  void setState(Engine engine, int value)
           
protected  void start(Engine engine, java.lang.Object input)
           
 
Methods inherited from class zeus.actors.rtn.Arc
getDescription, getGraph, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

READY

public static final int READY
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

DONE

public static final int DONE
See Also:
Constant Field Values

FAILED

public static final int FAILED
See Also:
Constant Field Values

count

private static int count

nodes

protected java.lang.String[][] nodes

start_node

protected java.lang.String start_node

next_node

protected java.lang.String next_node

previous_node

protected Node previous_node

begin_node

protected Node begin_node

state

protected int state

node_wakeup_key

protected java.lang.String node_wakeup_key

last_node

private Node last_node
Constructor Detail

Graph

public Graph(java.lang.String description,
             java.lang.String[][] nodes,
             java.lang.String start_node)
Method Detail

getState

public final int getState()

run1

void run1(Engine engine,
          Graph graph,
          Node previous_node,
          java.lang.Object input,
          java.lang.String next_node)
Overrides:
run1 in class Arc

run

public void run(Engine engine,
                java.lang.Object input)

run

public void run(Engine engine,
                Node previous_node,
                java.lang.Object input,
                java.lang.String node_wakeup_key)

start

protected void start(Engine engine,
                     java.lang.Object input)

done

void done(Engine engine,
          Node node)

failed

void failed(Engine engine,
            Node node)

fail

protected void fail(Engine engine,
                    java.lang.String reason)

getTerminalNodes

java.util.Vector getTerminalNodes()

newNode

Node newNode(Engine engine,
             java.lang.String name,
             Node previous)

newNode

Node newNode(Engine engine,
             java.lang.String name,
             Node previous,
             java.util.Vector parents)

allow_exec

boolean allow_exec()

allow_backtrack

boolean allow_backtrack(Node node)

exec

protected boolean exec()
Overrides:
exec in class Arc

setState

final void setState(Engine engine,
                    int value)

finalize

protected void finalize()
Overrides:
finalize in class Arc


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