Package com.artelys.kalis
Class KGuard
- java.lang.Object
-
- com.artelys.kalis.KConstraint
-
- com.artelys.kalis.KGuard
-
public class KGuard extends KConstraint
This class creates an implication on two constraints `C1 ==> C2`
Example :
// C1 C2 C1 ==> C2 // ------------------------- // false false true // false true true // true false false // true true true KIntVar X(...); KIntVar Y(...); KIntVar Z(...); problem.post( KGuard( X <= Y + 3 , Z > 4 ) );
- Since:
- 2016.1
- See Also:
KConstraint
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KConstraint
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KGuard(long cPtr, boolean cMemoryOwn)
KGuard(KConstraint c1, KConstraint c2)
Primary constructor
KGuard(KGuard toCopy)
Copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
protected static long
getCPtr(KGuard obj)
-
Methods inherited from class com.artelys.kalis.KConstraint
askIfEntailed, getArity, getCopyPtr, getCPtr, getInstance, getInstanceCopyPtr, getLinearRelaxation, getLinearRelaxation, getName, getPriority, getProblem, getTag, getTypeInfo, isGetLinearRelaxationImplemented, print, print, setName, setPriority, setTag
-
-
-
-
Constructor Detail
-
KGuard
protected KGuard(long cPtr, boolean cMemoryOwn)
-
KGuard
public KGuard(KConstraint c1, KConstraint c2)
Primary constructor
- Parameters:
c1
- the left part constraint in c1 ==> c2c2
- the right part constraint in c1 ==> c2
-
KGuard
public KGuard(KGuard toCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KGuard obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKConstraint
-
delete
public void delete()
- Overrides:
delete
in classKConstraint
-
-