Package com.google.ortools.sat
Class NotBooleanVariable
java.lang.Object
com.google.ortools.sat.NotBooleanVariable
- All Implemented Interfaces:
Literal
public final class NotBooleanVariable extends java.lang.Object implements Literal
The negation of a boolean variable. This class should not be used directly, Literal must be used
instead.
-
Constructor Summary
Constructors Constructor Description NotBooleanVariable(IntVar boolVar) -
Method Summary
Modifier and Type Method Description intgetIndex()Internal: returns the index in the literal in the underlying CpModelProto.java.lang.StringgetShortString()Returns a short string describing this literal.Literalnot()Returns the negation of this literal.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NotBooleanVariable
-
-
Method Details
-
getIndex
public int getIndex()Internal: returns the index in the literal in the underlying CpModelProto. -
not
Returns the negation of this literal. -
getShortString
public java.lang.String getShortString()Returns a short string describing this literal.- Specified by:
getShortStringin interfaceLiteral
-