|
|||||||||
| Home >> All >> jeops >> [ rete overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jeops.rete
Class ReteNode

java.lang.Objectjeops.rete.ReteNode
- Direct Known Subclasses:
- ClassFilterReteNode, FilterReteNode, FinalReteNode, JoinReteNode
- public abstract class ReteNode
- extends java.lang.Object
A node in the Rete network. This class is the base for all kinds of nodes that exist in the implementation of the Rete network for JEOPS.
- Version:
- 1.0 13 Jul 2000
| Field Summary | |
private int |
numberInputs
The number of inputs of this node. |
private int |
numberOutputs
The number of outputs of this node. |
private java.util.List |
successors
The nodes that succede this one. |
| Constructor Summary | |
ReteNode(int numberInputs,
int numberOutputs)
Creates a new rete node. |
|
| Method Summary | |
void |
addSuccessor(int input,
ReteNode succNode,
int succInput)
Adds a connection from some input of this node to a given input of the given node. |
void |
addSuccessor(ReteNode succNode)
Adds a connection from the only input of this node to the only input of the given node. |
void |
addSuccessor(ReteNode succNode,
int succIndex)
Adds a connection from the only input of this node to a given input of the given node. |
int |
getNumberInputs()
Returns the number of inputs of this node. |
int |
getNumberOutputs()
Returns the number of outputs of this node. |
protected java.util.List |
getSuccessors()
Returns the successors of this node. |
abstract void |
newObject(java.lang.Object obj,
int input)
Informs this node that an object has arrived. |
protected void |
propagate(java.lang.Object obj,
int input)
Propagates the objects from this node to the successors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
successors
private java.util.List successors
- The nodes that succede this one. It's actually a list of lists,
where each row represents the input index of this node, and the
columns represent the connections whose source is the
corresponding input.
numberInputs
private int numberInputs
- The number of inputs of this node.
numberOutputs
private int numberOutputs
- The number of outputs of this node.
| Constructor Detail |
ReteNode
public ReteNode(int numberInputs,
int numberOutputs)
- Creates a new rete node.
| Method Detail |
addSuccessor
public void addSuccessor(int input,
ReteNode succNode,
int succInput)
- Adds a connection from some input of this node to a given
input of the given node.
addSuccessor
public void addSuccessor(ReteNode succNode)
- Adds a connection from the only input of this node to the
only input of the given node.
addSuccessor
public void addSuccessor(ReteNode succNode, int succIndex)
- Adds a connection from the only input of this node to a
given input of the given node.
getNumberInputs
public int getNumberInputs()
- Returns the number of inputs of this node.
getNumberOutputs
public int getNumberOutputs()
- Returns the number of outputs of this node.
getSuccessors
protected java.util.List getSuccessors()
- Returns the successors of this node. Available only for subclasses.
newObject
public abstract void newObject(java.lang.Object obj, int input)
- Informs this node that an object has arrived.
propagate
protected void propagate(java.lang.Object obj, int input)
- Propagates the objects from this node to the successors. It's
an auxiliar method that must be invoked by the subclasses in
order to propagate the objects to the registered successors.
|
|||||||||
| Home >> All >> jeops >> [ rete overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jeops.rete.ReteNode