|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.ruleflow.core.impl.Node
org.drools.ruleflow.core.impl.Split
Default implementation of a split node.
| Field Summary |
|---|
| Fields inherited from class org.drools.ruleflow.core.impl.Node |
|---|
EMPTY_NODE_ARRAY |
| Fields inherited from interface org.drools.ruleflow.core.ISplit |
|---|
TYPE_AND, TYPE_OR, TYPE_UNDEFINED, TYPE_XOR |
| Constructor Summary | |
|---|---|
Split()
|
|
Split(int type)
|
|
| Method Summary | |
|---|---|
IConstraint |
getConstraint(IConnection connection)
Returns the corresponding constraint of the given outgoing connection |
Map |
getConstraints()
Returns the constraints of the split. |
IConnection |
getFrom()
Convenience method for returning the incoming connection of the split. |
int |
getType()
Returns the type of the split. |
void |
removeOutgoingConnection(IConnection connection)
|
void |
setConstraint(IConnection connection,
IConstraint constraint)
Method for setting a constraint corresponding to the given outgoing connection |
void |
setType(int type)
Sets the type of the split. |
protected void |
validateAddIncomingConnection(IConnection connection)
This method validates whether the given connection can be added. |
protected void |
validateAddOutgoingConnection(IConnection connection)
This method validates whether the given connection can be added. |
| Methods inherited from class org.drools.ruleflow.core.impl.Node |
|---|
addIncomingConnection, addOutgoingConnection, getId, getIncomingConnections, getName, getOutgoingConnections, removeIncomingConnection, setId, setName, validateRemoveIncomingConnection, validateRemoveOutgoingConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.drools.ruleflow.core.INode |
|---|
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName |
| Constructor Detail |
|---|
public Split()
public Split(int type)
| Method Detail |
|---|
public void setType(int type)
ISplit
type - The type of the splitpublic int getType()
ISplit
public IConstraint getConstraint(IConnection connection)
ISplit
getConstraint in interface ISplitconnection - the outgoing connection
public void setConstraint(IConnection connection, IConstraint constraint)
ISplit
setConstraint in interface ISplitconnection - the outgoing connectionconstraint - the constraintpublic Map getConstraints()
ISplit
getConstraints in interface ISplitpublic IConnection getFrom()
ISplit
protected void validateAddIncomingConnection(IConnection connection)
Node
validateAddIncomingConnection in class Nodeconnection - the incoming connection to be addedprotected void validateAddOutgoingConnection(IConnection connection)
Node
validateAddOutgoingConnection in class Nodeconnection - the outgoin connection to be addedpublic void removeOutgoingConnection(IConnection connection)
removeOutgoingConnection in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||