Class Decision

java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.Decision

public class Decision
extends BaseObject
A Decision represents a choice point in the search tree. The two main
methods are Apply() to go left, or Refute() to go right.
  • Field Summary

    Fields inherited from class com.google.ortools.constraintsolver.BaseObject

    swigCMemOwn
  • Constructor Summary

    Constructors
    Modifier Constructor Description
      Decision()  
    protected Decision​(long cPtr, boolean cMemoryOwn)  
  • Method Summary

    Modifier and Type Method Description
    void accept​(DecisionVisitor visitor)
    Accepts the given visitor.
    void apply​(Solver s)
    Apply will be called first when the decision is executed.
    void delete()  
    protected void finalize()  
    protected static long getCPtr​(Decision obj)  
    void refute​(Solver s)
    Refute will be called after a backtrack.
    protected void swigDirectorDisconnect()  
    void swigReleaseOwnership()  
    void swigTakeOwnership()  
    java.lang.String toString()  

    Methods inherited from class com.google.ortools.constraintsolver.BaseObject

    getCPtr

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Decision

      protected Decision​(long cPtr, boolean cMemoryOwn)
    • Decision

      public Decision()
  • Method Details

    • getCPtr

      protected static long getCPtr​(Decision obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class BaseObject
    • delete

      public void delete()
      Overrides:
      delete in class BaseObject
    • swigDirectorDisconnect

      protected void swigDirectorDisconnect()
    • swigReleaseOwnership

      public void swigReleaseOwnership()
    • swigTakeOwnership

      public void swigTakeOwnership()
    • apply

      public void apply​(Solver s)
      Apply will be called first when the decision is executed.
    • refute

      public void refute​(Solver s)
      Refute will be called after a backtrack.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class BaseObject
    • accept

      public void accept​(DecisionVisitor visitor)
      Accepts the given visitor.