Java Reference

Java Reference

MinCostFlowBase.java
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.1
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.google.ortools.graph;
10 
11 public class MinCostFlowBase {
12  private transient long swigCPtr;
13  protected transient boolean swigCMemOwn;
14 
15  protected MinCostFlowBase(long cPtr, boolean cMemoryOwn) {
16  swigCMemOwn = cMemoryOwn;
17  swigCPtr = cPtr;
18  }
19 
20  protected static long getCPtr(MinCostFlowBase obj) {
21  return (obj == null) ? 0 : obj.swigCPtr;
22  }
23 
24  @SuppressWarnings("deprecation")
25  protected void finalize() {
26  delete();
27  }
28 
29  public synchronized void delete() {
30  if (swigCPtr != 0) {
31  if (swigCMemOwn) {
32  swigCMemOwn = false;
33  mainJNI.delete_MinCostFlowBase(swigCPtr);
34  }
35  swigCPtr = 0;
36  }
37  }
38 
39  public MinCostFlowBase() {
40  this(mainJNI.new_MinCostFlowBase(), true);
41  }
42 
43  public enum Status {
51 
52  public final int swigValue() {
53  return swigValue;
54  }
55 
56  public static Status swigToEnum(int swigValue) {
57  Status[] swigValues = Status.class.getEnumConstants();
58  if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
59  return swigValues[swigValue];
60  for (Status swigEnum : swigValues)
61  if (swigEnum.swigValue == swigValue)
62  return swigEnum;
63  throw new IllegalArgumentException("No enum " + Status.class + " with value " + swigValue);
64  }
65 
66  @SuppressWarnings("unused")
67  private Status() {
68  this.swigValue = SwigNext.next++;
69  }
70 
71  @SuppressWarnings("unused")
72  private Status(int swigValue) {
73  this.swigValue = swigValue;
74  SwigNext.next = swigValue+1;
75  }
76 
77  @SuppressWarnings("unused")
78  private Status(Status swigEnum) {
79  this.swigValue = swigEnum.swigValue;
80  SwigNext.next = this.swigValue+1;
81  }
82 
83  private final int swigValue;
84 
85  private static class SwigNext {
86  private static int next = 0;
87  }
88  }
89 
90 }
NOT_SOLVED
static Status swigToEnum(int swigValue)
OPTIMAL
MinCostFlowBase(long cPtr, boolean cMemoryOwn)
final int swigValue()
BAD_COST_RANGE
INFEASIBLE
FEASIBLE
BAD_RESULT
MinCostFlowBase()
UNBALANCED