All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ortools.constraintsolver.DisjunctiveConstraint Maven / Gradle / Ivy

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.10
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.google.ortools.constraintsolver;

public class DisjunctiveConstraint extends Constraint {
  private transient long swigCPtr;

  protected DisjunctiveConstraint(long cPtr, boolean cMemoryOwn) {
    super(operations_research_constraint_solverJNI.DisjunctiveConstraint_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(DisjunctiveConstraint obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        operations_research_constraint_solverJNI.delete_DisjunctiveConstraint(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public SequenceVar makeSequenceVar() {
    long cPtr = operations_research_constraint_solverJNI.DisjunctiveConstraint_makeSequenceVar(swigCPtr, this);
    return (cPtr == 0) ? null : new SequenceVar(cPtr, false);
  }

  public void SetTransitionTime(LongLongToLong transition_time) {
    operations_research_constraint_solverJNI.DisjunctiveConstraint_SetTransitionTime(swigCPtr, this, transition_time);
  }

  public long TransitionTime(int before_index, int after_index) {
    return operations_research_constraint_solverJNI.DisjunctiveConstraint_TransitionTime(swigCPtr, this, before_index, after_index);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy