DotNet Reference

.Net Reference

SequenceVar.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
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 SequenceVar : PropagationBaseObject {
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21 internal SequenceVar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(operations_research_constraint_solverPINVOKE.SequenceVar_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23 }
24
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SequenceVar obj) {
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public SequenceVar(Solver s, IntervalVarVector intervals, IntVarVector nexts, string name) : this(operations_research_constraint_solverPINVOKE.new_SequenceVar(Solver.getCPtr(s), IntervalVarVector.getCPtr(intervals), IntVarVector.getCPtr(nexts), name), true) {
44 }
45
46 public override string ToString() {
48 return ret;
49 }
50
51 public void RankFirst(int index) {
53 }
54
55 public void RankNotFirst(int index) {
57 }
58
59 public void RankLast(int index) {
61 }
62
63 public void RankNotLast(int index) {
65 }
66
67 public void RankSequence( int[] rank_first, int[] rank_last, int[] unperformed) {
68 operations_research_constraint_solverPINVOKE.SequenceVar_RankSequence(swigCPtr, rank_first.Length, rank_first , rank_last.Length, rank_last , unperformed.Length, unperformed );
69 }
70
71 public IntervalVar Interval(int index) {
72 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVar_Interval(swigCPtr, index);
73 IntervalVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntervalVar(cPtr, false);
74 return ret;
75 }
76
77 public IntVar Next(int index) {
78 global::System.IntPtr cPtr = operations_research_constraint_solverPINVOKE.SequenceVar_Next(swigCPtr, index);
79 IntVar ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntVar(cPtr, false);
80 return ret;
81 }
82
83 public long Size() {
85 return ret;
86 }
87
88 public virtual void Accept(ModelVisitor visitor) {
90 }
91
92}
93
94}
virtual void Accept(ModelVisitor visitor)
Definition: SequenceVar.cs:88
void RankSequence(int[] rank_first, int[] rank_last, int[] unperformed)
Definition: SequenceVar.cs:67
override void Dispose(bool disposing)
Definition: SequenceVar.cs:29
SequenceVar(Solver s, IntervalVarVector intervals, IntVarVector nexts, string name)
Definition: SequenceVar.cs:42
static global::System.IntPtr SequenceVar_Interval(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SequenceVar_RankLast(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static string SequenceVar_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
static long SequenceVar_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void SequenceVar_RankFirst(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SequenceVar_RankNotLast(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void delete_SequenceVar(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr SequenceVar_SWIGUpcast(global::System.IntPtr jarg1)
static void SequenceVar_RankNotFirst(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SequenceVar_Accept(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr SequenceVar_Next(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void SequenceVar_RankSequence(global::System.Runtime.InteropServices.HandleRef jarg1, int length2, int[] jarg2, int length3, int[] jarg3, int length4, int[] jarg4)