Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
DecisionVisitor.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 DecisionVisitor : BaseObject {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal DecisionVisitor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.DecisionVisitor_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DecisionVisitor 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(DecisionVisitor 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 DecisionVisitor() : this(operations_research_constraint_solverPINVOKE.new_DecisionVisitor(), true) {
56 }
58 public virtual void VisitSetVariableValue(IntVar var, long value) {
60 }
61
62 public virtual void VisitSplitVariableDomain(IntVar var, long value, bool start_with_lower_half) {
63 operations_research_constraint_solverPINVOKE.DecisionVisitor_VisitSplitVariableDomain(swigCPtr, IntVar.getCPtr(var), value, start_with_lower_half);
64 }
65
66 public virtual void VisitScheduleOrPostpone(IntervalVar var, long est) {
68 }
69
70 public virtual void VisitScheduleOrExpedite(IntervalVar var, long est) {
72 }
73
74 public virtual void VisitRankFirstInterval(SequenceVar sequence, int index) {
76 }
77
78 public virtual void VisitRankLastInterval(SequenceVar sequence, int index) {
80 }
81
82 public virtual void VisitUnknownDecision() {
84 }
85
86}
87
88}
virtual void VisitSplitVariableDomain(IntVar var, long value, bool start_with_lower_half)
virtual void VisitSetVariableValue(IntVar var, long value)
virtual void VisitScheduleOrPostpone(IntervalVar var, long est)
virtual void VisitRankLastInterval(SequenceVar sequence, int index)
virtual void VisitScheduleOrExpedite(IntervalVar var, long est)
virtual void VisitRankFirstInterval(SequenceVar sequence, int index)
static void DecisionVisitor_VisitSetVariableValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static void DecisionVisitor_VisitUnknownDecision(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_DecisionVisitor(global::System.Runtime.InteropServices.HandleRef jarg1)
static void DecisionVisitor_VisitRankLastInterval(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static void DecisionVisitor_VisitScheduleOrExpedite(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static void DecisionVisitor_VisitScheduleOrPostpone(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3)
static void DecisionVisitor_VisitSplitVariableDomain(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, bool jarg4)
static void DecisionVisitor_VisitRankFirstInterval(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)