org.drools.ruleflow.core
Interface Connection

All Known Implementing Classes:
ConnectionImpl

public interface Connection

Represents a connection between two nodes in a RuleFlow.

Author:
Kris Verlaenen

Field Summary
static int TYPE_ABORT
           
static int TYPE_NORMAL
          The connection type
 
Method Summary
 Node getFrom()
          Returns the from node of the connection.
 Node getTo()
          Returns the to node of the connection
 int getType()
          Returns the connection type
 void terminate()
          Destroys the connection.
 

Field Detail

TYPE_NORMAL

static final int TYPE_NORMAL
The connection type

See Also:
Constant Field Values

TYPE_ABORT

static final int TYPE_ABORT
See Also:
Constant Field Values
Method Detail

getFrom

Node getFrom()
Returns the from node of the connection.

Returns:
the from node of the connection.

getTo

Node getTo()
Returns the to node of the connection

Returns:
the to node of the connection

getType

int getType()
Returns the connection type

Returns:
the connection type

terminate

void terminate()
Destroys the connection. This method also removes the connection on the to and from nodes. Onces a connection is destroyed, all methods throw an IllegalStateException.