<ahref="PathOperator_8java.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/* ----------------------------------------------------------------------------</span></div><divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div><divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> * Version 4.0.1</span></div><divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> *</span></div><divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div><divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment"> * the SWIG interface file instead.</span></div><divclass="line"><aname="l00007"></a><spanclass="lineno"> 7</span> <spanclass="comment"> * ----------------------------------------------------------------------------- */</span></div><divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> </div><divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="keyword">package </span>com.google.ortools.constraintsolver;</div><divclass="line"><aname="l00010"></a><spanclass="lineno"> 10</span> </div><divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment">// Used to wrap start_empty_path_class see:</span></div><divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment">// https://docs.oracle.com/javase/8/docs/api/java/util/function/LongToIntFunction.html</span></div><divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="keyword">import</span> java.util.function.LongToIntFunction;</div><divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html"> 18</a></span> <spanclass="keyword">public</span><spanclass="keyword">class </span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html">PathOperator</a><spanclass="keyword">extends</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntVarLocalSearchOperator.html">IntVarLocalSearchOperator</a> {</div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="keyword">private</span><spanclass="keyword">transient</span><spanclass="keywordtype">long</span> swigCPtr;</div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> </div><divclass="line"><aname="l00021"></a><spanclass="lineno"><aclass="line"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#aaf55dba7b4ac22f74b69090cab958ad3"> 21</a></span> <spanclass="keyword">protected</span><aclass="code"href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#aaf55dba7b4ac22f74b69090cab958ad3">PathOperator</a>(<spanclass="keywordtype">long</span> cPtr, <spanclass="keywordtype">boolean</span> cMemoryOwn) {</div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span>  super(mainJNI.PathOperator_SWIGUpcast(cPtr), cMemoryOwn);</div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span>  swigCPtr = cPtr;</div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span>  }</div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="keyword">protected</span><spanclass="keyword">static</span><spanclass="ke
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_a5c7b8f832b0c6e82657c41e87505b04d"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#a5c7b8f832b0c6e82657c41e87505b04d">com.google.ortools.constraintsolver.PathOperator.setNextBaseToIncrement</a></div><divclass="ttdeci">void setNextBaseToIncrement(long base_index)</div><divclass="ttdoc">Set the next base to increment on next iteration.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00127">PathOperator.java:127</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_a4d08a724b60322e5d590d32fe10ed2aa"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#a4d08a724b60322e5d590d32fe10ed2aa">com.google.ortools.constraintsolver.PathOperator.OnNodeInitialization</a></div><divclass="ttdeci">void OnNodeInitialization()</div><divclass="ttdoc">Called by OnStart() after initializing node information.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00099">PathOperator.java:99</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_ae61921b62efd21fbc0a6cd23f85efe9b"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#ae61921b62efd21fbc0a6cd23f85efe9b">com.google.ortools.constraintsolver.PathOperator.ConsiderAlternatives</a></div><divclass="ttdeci">boolean ConsiderAlternatives(long base_index)</div><divclass="ttdoc">Indicates if alternatives should be considered when iterating over base nodes.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00134">PathOperator.java:134</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntVar_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1IntVar.html">com.google.ortools.constraintsolver.IntVar</a></div><divclass="ttdoc">The class IntVar is a subset of IntExpr.</div><divclass="ttdef"><b>Definition:</b><ahref="gen_2java_2com_2google_2ortools_2constraintsolver_2IntVar_8java_source.html#l00014">gen/java/com/google/ortools/constraintsolver/IntVar.java:14</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html">com.google.ortools.constraintsolver.PathOperator</a></div><divclass="ttdoc">Base class of the local search operators dedicated to path modifications (a path is a set of nodes li...</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00018">PathOperator.java:18</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_abe8cec8d600000d8f1b8102b211bd515"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#abe8cec8d600000d8f1b8102b211bd515">com.google.ortools.constraintsolver.PathOperator.onSamePathAsPreviousBase</a></div><divclass="ttdeci">boolean onSamePathAsPreviousBase(long base_index)</div><divclass="ttdoc">Returns true if a base node has to be on the same path as the "previous" base node (base node of inde...</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00113">PathOperator.java:113</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_a2f3ac7dfdbb0b219d9fedb9a7489d997"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#a2f3ac7dfdbb0b219d9fedb9a7489d997">com.google.ortools.constraintsolver.PathOperator.Prev</a></div><divclass="ttdeci">long Prev(long node)</div><divclass="ttdoc">Returns the node before node in the current delta.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00085">PathOperator.java:85</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_ab7a5cc37854f767daadf2daafc2c10a3"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#ab7a5cc37854f767daadf2daafc2c10a3">com.google.ortools.constraintsolver.PathOperator.restartAtPathStartOnSynchronize</a></div><divclass="ttdeci">boolean restartAtPathStartOnSynchronize()</div><divclass="ttdoc">When the operator is being synchronized with a new solution (when Start() is called),...</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00106">PathOperator.java:106</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_a0e27eec61939647152f71b79334bbeeb"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#a0e27eec61939647152f71b79334bbeeb">com.google.ortools.constraintsolver.PathOperator.PathOperator</a></div><divclass="ttdeci">PathOperator(IntVar[] next_vars, IntVar[] path_vars, SWIGTYPE_p_operations_research__PathOperator__IterationParameters iteration_parameters)</div><divclass="ttdoc">Builds an instance of PathOperator from next and path variables.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00064">PathOperator.java:64</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_a1b7b0a1b4685cf9adf5ee381f34466d4"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#a1b7b0a1b4685cf9adf5ee381f34466d4">com.google.ortools.constraintsolver.PathOperator.getBaseNodeRestartPosition</a></div><divclass="ttdeci">long getBaseNodeRestartPosition(int base_index)</div><divclass="ttdoc">Returns the index of the node to which the base node of index base_index must be set to when it reach...</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00120">PathOperator.java:120</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_ae1dc5ccf59b73a81503ce4b440e42ef6"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#ae1dc5ccf59b73a81503ce4b440e42ef6">com.google.ortools.constraintsolver.PathOperator.initPosition</a></div><divclass="ttdeci">boolean initPosition()</div><divclass="ttdoc">Returns true if the operator needs to restart its initial position at each call to Start()</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00141">PathOperator.java:141</a></div></div>
<divclass="ttc"id="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator_html_ad4f30c46352bd8e3993b58253f151ea1"><divclass="ttname"><ahref="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1PathOperator.html#ad4f30c46352bd8e3993b58253f151ea1">com.google.ortools.constraintsolver.PathOperator.oneNeighbor</a></div><divclass="ttdeci">boolean oneNeighbor()</div><divclass="ttdoc">This method should not be overridden.</div><divclass="ttdef"><b>Definition:</b><ahref="PathOperator_8java_source.html#l00092">PathOperator.java:92</a></div></div>