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

com.google.ortools.constraintsolver.PathWithPreviousNodesOperator 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 PathWithPreviousNodesOperator extends PathOperator {
  private transient long swigCPtr;

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

  protected static long getCPtr(PathWithPreviousNodesOperator 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_PathWithPreviousNodesOperator(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public boolean IsPathStart(long node_index) {
    return operations_research_constraint_solverJNI.PathWithPreviousNodesOperator_IsPathStart(swigCPtr, this, node_index);
  }

  public long Prev(long node_index) {
    return operations_research_constraint_solverJNI.PathWithPreviousNodesOperator_Prev(swigCPtr, this, node_index);
  }

  public String toString() {
    return operations_research_constraint_solverJNI.PathWithPreviousNodesOperator_toString(swigCPtr, this);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy