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

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


org.drools.ruleflow.core.impl
Class Connection

java.lang.Object
  extended by org.drools.ruleflow.core.impl.Connection
All Implemented Interfaces:
Serializable, IConnection

public class Connection
extends Object
implements IConnection, Serializable

Default implementation of a connection.

Author:
Kris Verlaenen
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.drools.ruleflow.core.IConnection
TYPE_ABORT, TYPE_NORMAL
 
Constructor Summary
Connection(INode from, INode to, int type)
          Creates a new connection, given a from node, a to node and a type.
 
Method Summary
 boolean equals(Object object)
           
 INode getFrom()
          Returns the from node of the connection.
 INode getTo()
          Returns the to node of the connection
 int getType()
          Returns the connection type
 int hashCode()
           
 void terminate()
          Destroys the connection.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection(INode from,
                  INode to,
                  int type)
Creates a new connection, given a from node, a to node and a type.

Parameters:
from - The from node
to - The to node
type - The connection type
Method Detail

terminate

public void terminate()
Description copied from interface: IConnection
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.

Specified by:
terminate in interface IConnection

getFrom

public INode getFrom()
Description copied from interface: IConnection
Returns the from node of the connection.

Specified by:
getFrom in interface IConnection
Returns:
the from node of the connection.

getTo

public INode getTo()
Description copied from interface: IConnection
Returns the to node of the connection

Specified by:
getTo in interface IConnection
Returns:
the to node of the connection

getType

public int getType()
Description copied from interface: IConnection
Returns the connection type

Specified by:
getType in interface IConnection
Returns:
the connection type

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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