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

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

The newest version!
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * 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 GlobalVehicleBreaksConstraint extends Constraint {
  private transient long swigCPtr;

  protected GlobalVehicleBreaksConstraint(long cPtr, boolean cMemoryOwn) {
    super(mainJNI.GlobalVehicleBreaksConstraint_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

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

  protected void finalize() {
    delete();
  }

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

  public GlobalVehicleBreaksConstraint(RoutingDimension dimension) {
    this(mainJNI.new_GlobalVehicleBreaksConstraint(RoutingDimension.getCPtr(dimension), dimension), true);
  }

  public String toString() {
    return mainJNI.GlobalVehicleBreaksConstraint_toString(swigCPtr, this);
  }

  public void post() {
    mainJNI.GlobalVehicleBreaksConstraint_post(swigCPtr, this);
  }

  public void initialPropagate() {
    mainJNI.GlobalVehicleBreaksConstraint_initialPropagate(swigCPtr, this);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy