org.drools.ruleflow.core.impl
Class JoinImpl

java.lang.Object
  extended by org.drools.ruleflow.core.impl.NodeImpl
      extended by org.drools.ruleflow.core.impl.JoinImpl
All Implemented Interfaces:
java.io.Serializable, Join, Node

public class JoinImpl
extends NodeImpl
implements Join

Default implementation of a join.

Author:
Kris Verlaenen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.ruleflow.core.impl.NodeImpl
EMPTY_NODE_ARRAY
 
Fields inherited from interface org.drools.ruleflow.core.Join
TYPE_AND, TYPE_UNDEFINED, TYPE_XOR
 
Constructor Summary
JoinImpl()
           
 
Method Summary
 Connection getTo()
          Convenience method for returning the outgoing connection of the join
 int getType()
          Returns the type of the join.
 void setType(int type)
          Sets the type of the join.
protected  void validateAddOutgoingConnection(Connection connection)
          This method validates whether the given connection can be added.
 
Methods inherited from class org.drools.ruleflow.core.impl.NodeImpl
addIncomingConnection, addOutgoingConnection, getId, getIncomingConnections, getName, getOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setId, setName, validateAddIncomingConnection, 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.Node
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName
 

Constructor Detail

JoinImpl

public JoinImpl()
Method Detail

setType

public void setType(int type)
Description copied from interface: Join
Sets the type of the join.

Specified by:
setType in interface Join
Parameters:
type - The type of the join

getType

public int getType()
Description copied from interface: Join
Returns the type of the join.

Specified by:
getType in interface Join
Returns:
the type of the join.

getTo

public Connection getTo()
Description copied from interface: Join
Convenience method for returning the outgoing connection of the join

Specified by:
getTo in interface Join
Returns:
the outgoing connection of the join

validateAddOutgoingConnection

protected void validateAddOutgoingConnection(Connection connection)
Description copied from class: NodeImpl
This method validates whether the given connection can be added. If the connection cannot be added, an IllegalArgumentException is thrown.

Overrides:
validateAddOutgoingConnection in class NodeImpl
Parameters:
connection - the outgoin connection to be added