Package com.google.ortools.sat
Class NotBoolVar
java.lang.Object
com.google.ortools.sat.NotBoolVar
- All Implemented Interfaces:
LinearArgument,Literal
The negation of a boolean variable. This class should not be used directly, Literal must be used
instead.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NotBoolVar
-
-
Method Details
-
getIndex
public int getIndex()returns the index in the literal in the underlying CpModelProto. -
not
Returns the negation of this literal. -
build
Description copied from interface:LinearArgumentBuilds a linear expression.- Specified by:
buildin interfaceLinearArgument
-
toString
Returns a short string describing this literal.
-