站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

Split (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.ruleflow.core.impl
Class Split

java.lang.Object
  extended by org.drools.ruleflow.core.impl.Node
      extended by org.drools.ruleflow.core.impl.Split
All Implemented Interfaces:
Serializable, INode, ISplit

public class Split
extends Node
implements ISplit

Default implementation of a split node.

Author:
Kris Verlaenen
See Also:
Serialized Form

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

Split

public Split()

Split

public Split(int type)
Method Detail

setType

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

Specified by:
setType in interface ISplit
Parameters:
type - The type of the split

getType

public int getType()
Description copied from interface: ISplit
Returns the type of the split.

Specified by:
getType in interface ISplit
Returns:
the type of the split.

getConstraint

public IConstraint getConstraint(IConnection connection)
Description copied from interface: ISplit
Returns the corresponding constraint of the given outgoing connection

Specified by:
getConstraint in interface ISplit
Parameters:
connection - the outgoing connection
Returns:
the corresponding constraint of the given outgoing connection

setConstraint

public void setConstraint(IConnection connection,
                          IConstraint constraint)
Description copied from interface: ISplit
Method for setting a constraint corresponding to the given outgoing connection

Specified by:
setConstraint in interface ISplit
Parameters:
connection - the outgoing connection
constraint - the constraint

getConstraints

public Map getConstraints()
Description copied from interface: ISplit
Returns the constraints of the split.

Specified by:
getConstraints in interface ISplit
Returns:
a map containing for each connection the constraint associated with that connection, or null if no constraint has been specified yet for that connection

getFrom

public IConnection getFrom()
Description copied from interface: ISplit
Convenience method for returning the incoming connection of the split.

Specified by:
getFrom in interface ISplit
Returns:
the incoming connection ot the split.

validateAddIncomingConnection

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

Overrides:
validateAddIncomingConnection in class Node
Parameters:
connection - the incoming connection to be added

validateAddOutgoingConnection

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

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

removeOutgoingConnection

public void removeOutgoingConnection(IConnection connection)
Overrides:
removeOutgoingConnection in class Node


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.