当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
TupleStartEqualsConstraint (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.common
Class TupleStartEqualsConstraint
java.lang.Object
org.drools.common.TupleStartEqualsConstraint
- All Implemented Interfaces:
- Serializable, BetaNodeFieldConstraint, Constraint, RuleComponent
public class TupleStartEqualsConstraint
- extends Object
- implements BetaNodeFieldConstraint
Checks if one tuple is the start subtuple of other tuple.
For instance, if we have two tuples:
T1 = [ a, b, c ]
T2 = [ a, b, c, d, e]
This constraint will evaluate to true as T1 is the starting subtuple
of T2. On the other hand, if we have:
T1 = [ a, c, b ]
T2 = [ a, b, c, d, e ]
This constraint will evaluate to false, as T1 is not the starting subtuple
of T2. Besides having the same elements, the order is different.
This constraint is used when joining subnetworks back into the main
network.
- Author:
- etirelli
- See Also:
- Serialized Form
getInstance
public static TupleStartEqualsConstraint getInstance()
getRequiredDeclarations
public Declaration[] getRequiredDeclarations()
- Specified by:
getRequiredDeclarations in interface Constraint
getContextEntry
public ContextEntry getContextEntry()
- Specified by:
getContextEntry in interface BetaNodeFieldConstraint
isAllowedCachedLeft
public boolean isAllowedCachedLeft(ContextEntry context,
Object object)
- Specified by:
isAllowedCachedLeft in interface BetaNodeFieldConstraint
isAllowedCachedRight
public boolean isAllowedCachedRight(ReteTuple tuple,
ContextEntry context)
- Specified by:
isAllowedCachedRight in interface BetaNodeFieldConstraint
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.