Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
IntervalVarElement.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (https://www.swig.org).
5// Version 4.2.1
6//
7// Do not make changes to this file unless you know what you are doing - modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
12
13using System;
14using System.Runtime.InteropServices;
15using System.Collections;
16using System.Collections.Generic;
17
18public partial class IntervalVarElement : AssignmentElement {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal IntervalVarElement(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.IntervalVarElement_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntervalVarElement obj) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 internal static global::System.Runtime.InteropServices.HandleRef swigRelease(IntervalVarElement obj) {
30 if (obj != null) {
31 if (!obj.swigCMemOwn)
32 throw new global::System.ApplicationException("Cannot release ownership as memory is not owned");
33 global::System.Runtime.InteropServices.HandleRef ptr = obj.swigCPtr;
34 obj.swigCMemOwn = false;
35 obj.Dispose();
36 return ptr;
37 } else {
38 return new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 }
40 }
41
42 protected override void Dispose(bool disposing) {
43 lock(this) {
44 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
45 if (swigCMemOwn) {
46 swigCMemOwn = false;
48 }
49 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
50 }
51 base.Dispose(disposing);
52 }
53 }
54
55 public IntervalVarElement() : this(operations_research_constraint_solverPINVOKE.new_IntervalVarElement__SWIG_0(), true) {
56 }
58 public IntervalVarElement(IntervalVar var) : this(operations_research_constraint_solverPINVOKE.new_IntervalVarElement__SWIG_1(IntervalVar.getCPtr(var)), true) {
59 }
61 public void Reset(IntervalVar var) {
63 }
64
65 public IntervalVarElement Clone() {
67 IntervalVarElement ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntervalVarElement(cPtr, false);
68 return ret;
69 }
70
71 public void Copy(IntervalVarElement element) {
77 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.IntervalVarElement_Var(swigCPtr);
78 IntervalVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntervalVar(cPtr, false);
79 return ret;
80 }
81
82 public void Store() {
84 }
85
86 public void Restore() {
88 }
89
90 public long StartMin() {
92 return ret;
93 }
94
95 public long StartMax() {
97 return ret;
98 }
99
100 public long StartValue() {
102 return ret;
103 }
104
105 public long DurationMin() {
107 return ret;
108 }
109
110 public long DurationMax() {
112 return ret;
113 }
114
115 public long DurationValue() {
117 return ret;
118 }
119
120 public long EndMin() {
122 return ret;
123 }
124
125 public long EndMax() {
127 return ret;
128 }
129
130 public long EndValue() {
132 return ret;
133 }
134
135 public long PerformedMin() {
137 return ret;
138 }
139
140 public long PerformedMax() {
142 return ret;
143 }
144
145 public long PerformedValue() {
147 return ret;
148 }
149
150 public void SetStartMin(long m) {
153
154 public void SetStartMax(long m) {
157
158 public void SetStartRange(long mi, long ma) {
161
162 public void SetStartValue(long v) {
165
166 public void SetDurationMin(long m) {
169
170 public void SetDurationMax(long m) {
173
174 public void SetDurationRange(long mi, long ma) {
177
178 public void SetDurationValue(long v) {
181
182 public void SetEndMin(long m) {
185
186 public void SetEndMax(long m) {
189
190 public void SetEndRange(long mi, long ma) {
193
194 public void SetEndValue(long v) {
197
198 public void SetPerformedMin(long m) {
201
202 public void SetPerformedMax(long m) {
205
206 public void SetPerformedRange(long mi, long ma) {
209
210 public void SetPerformedValue(long v) {
213
214 public bool Bound() {
216 return ret;
217 }
218
219 public string ToString() {
221 return ret;
222 }
223
224}
225
226}
static void IntervalVarElement_Restore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetEndValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_EndMin(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool IntervalVarElement_Bound(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetDurationRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void IntervalVarElement_Store(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void IntervalVarElement_SetDurationValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntervalVarElement_SetEndMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_StartMax(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetStartMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_DurationValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetPerformedValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntervalVarElement_SetEndRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static long IntervalVarElement_PerformedValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr IntervalVarElement_Var(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetStartRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)
static void IntervalVarElement_SetDurationMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntervalVarElement_SetPerformedMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntervalVarElement_SetPerformedMax(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_DurationMin(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntervalVarElement_PerformedMin(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetStartValue(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void delete_IntervalVarElement(global::System.Runtime.InteropServices.HandleRef jarg1)
static string IntervalVarElement_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntervalVarElement_PerformedMax(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntervalVarElement_DurationMax(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntervalVarElement_StartMin(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetEndMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_EndMax(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetStartMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static void IntervalVarElement_Reset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr IntervalVarElement_Clone(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetDurationMin(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2)
static long IntervalVarElement_StartValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static long IntervalVarElement_EndValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void IntervalVarElement_SetPerformedRange(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3)