Package org.drools.model.constraints
Class VariableTemporalConstraint<A>
- java.lang.Object
-
- org.drools.model.constraints.AbstractConstraint
-
- org.drools.model.constraints.AbstractSingleConstraint
-
- org.drools.model.constraints.TemporalConstraint
-
- org.drools.model.constraints.VariableTemporalConstraint<A>
-
- All Implemented Interfaces:
Constraint,ModelComponent,SingleConstraint
public class VariableTemporalConstraint<A> extends TemporalConstraint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.Constraint
Constraint.Type
-
-
Field Summary
-
Fields inherited from class org.drools.model.constraints.TemporalConstraint
temporalPredicate, var1
-
Fields inherited from class org.drools.model.constraints.AbstractSingleConstraint
predicateInformation
-
Fields inherited from interface org.drools.model.SingleConstraint
FALSE, TRUE
-
-
Constructor Summary
Constructors Constructor Description VariableTemporalConstraint(java.lang.String exprId, Variable<A> var1, Function1<?,?> f1, Variable<?> var2, Function1<?,?> f2, TemporalPredicate temporalPredicate)VariableTemporalConstraint(VariableTemporalExprViewItem<A> expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Function1<?,?>getF1()Function1<?,?>getF2()Variable[]getVariables()booleanisEqualTo(ModelComponent o)VariableTemporalConstraint<A>negate()VariableTemporalConstraint<A>replaceVariable(Variable oldVar, Variable newVar)java.lang.StringtoString()-
Methods inherited from class org.drools.model.constraints.TemporalConstraint
createTemporalConstraint, getPredicate, getTemporalPredicate, isTemporal
-
Methods inherited from class org.drools.model.constraints.AbstractSingleConstraint
fromExpr, getChildren, getExprId, getIndex, getReactiveProps, getReactivityBitMask, negate, predicateInformation, setIndex, setReactivitySpecs
-
Methods inherited from class org.drools.model.constraints.AbstractConstraint
and, cloneConstraint, or, with
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.model.SingleConstraint
getPredicate1, getPredicate2, getPredicate3, getPredicate4, getPredicate5, getType
-
-
-
-
Constructor Detail
-
VariableTemporalConstraint
public VariableTemporalConstraint(java.lang.String exprId, Variable<A> var1, Function1<?,?> f1, Variable<?> var2, Function1<?,?> f2, TemporalPredicate temporalPredicate)
-
VariableTemporalConstraint
public VariableTemporalConstraint(VariableTemporalExprViewItem<A> expr)
-
-
Method Detail
-
getVariables
public Variable[] getVariables()
-
isEqualTo
public boolean isEqualTo(ModelComponent o)
-
getF1
public Function1<?,?> getF1()
- Specified by:
getF1in classTemporalConstraint
-
getF2
public Function1<?,?> getF2()
- Specified by:
getF2in classTemporalConstraint
-
negate
public VariableTemporalConstraint<A> negate()
-
replaceVariable
public VariableTemporalConstraint<A> replaceVariable(Variable oldVar, Variable newVar)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractSingleConstraint
-
-