Files
ortools-clone/docs/java/GlobalVehicleBreaksConstraint_8java_source.html

161 lines
20 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-06-13 02:45:44 +02:00
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OR-Tools</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<meta charset="utf-8"/>
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
2020-09-01 16:00:33 +02:00
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="styleSheet.tmp.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="banner-container">
<div id="banner">
2021-12-14 13:41:01 +01:00
<span id="sfml">Google OR-Tools 9.2</span>
</div>
</div>
2019-08-07 18:01:08 -07:00
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
2019-08-12 09:16:03 -07:00
<h2>Java Reference</h2>
2019-08-07 18:01:08 -07:00
<ul>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1sat.html">CP-SAT</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1graph.html">Graph</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1algorithms.html">Knapsack solver</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1linearsolver.html">Linear solver</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1constraintsolver.html">Routing</a></li>
<li><a href="../java/namespacecom_1_1google_1_1ortools_1_1util.html">Util</a></li>
</ul>
</div>
<div id="content">
2019-08-07 18:01:08 -07:00
<div align="center">
<h1 style="color: #145A32;">Java Reference</h1>
</div>
2022-01-15 22:53:18 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-09-30 01:18:45 +02:00
/* @license-end */
</script>
2020-09-01 16:00:33 +02:00
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
2019-06-13 02:45:44 +02:00
</div>
</div>
2020-09-01 16:00:33 +02:00
<script type="text/javascript">
2021-09-30 01:18:45 +02:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('GlobalVehicleBreaksConstraint_8java_source.html',''); initResizable(); });
2020-09-01 16:00:33 +02:00
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
2019-06-13 02:45:44 +02:00
<div class="header">
2021-09-30 01:18:45 +02:00
<div class="headertitle"><div class="title">GlobalVehicleBreaksConstraint.java</div></div>
2019-06-13 02:45:44 +02:00
</div><!--header-->
<div class="contents">
2021-09-30 01:18:45 +02:00
<a href="GlobalVehicleBreaksConstraint_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/* ----------------------------------------------------------------------------</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Version 4.0.2</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Do not make changes to this file unless you know what you are doing--modify</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * the SWIG interface file instead.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * ----------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">package </span>com.google.ortools.constraintsolver;</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html"> 23</a></span><span class="keyword">public</span> <span class="keyword">class </span><a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html">GlobalVehicleBreaksConstraint</a> <span class="keyword">extends</span> <a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Constraint.html">Constraint</a> {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">private</span> <span class="keyword">transient</span> <span class="keywordtype">long</span> swigCPtr;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
2021-12-14 13:41:01 +01:00
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a5dfe521d487b38979e497ad34aa0da02"> 26</a></span> <span class="keyword">public</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a5dfe521d487b38979e497ad34aa0da02">GlobalVehicleBreaksConstraint</a>(<span class="keywordtype">long</span> cPtr, <span class="keywordtype">boolean</span> cMemoryOwn) {</div>
2021-09-30 01:18:45 +02:00
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> super(mainJNI.GlobalVehicleBreaksConstraint_SWIGUpcast(cPtr), cMemoryOwn);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> swigCPtr = cPtr;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> }</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">protected</span> <span class="keyword">static</span> <span class="keywordtype">long</span> getCPtr(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html">GlobalVehicleBreaksConstraint</a> obj) {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keywordflow">return</span> (obj == <span class="keyword">null</span>) ? 0 : obj.swigCPtr;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> }</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> @SuppressWarnings(<span class="stringliteral">&quot;deprecation&quot;</span>)</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> protected <span class="keywordtype">void</span> finalize() {</div>
2022-01-15 22:53:18 +01:00
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a155da317e33b817886120f10038c12cf">delete</a>();</div>
2021-09-30 01:18:45 +02:00
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> }</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
2022-01-15 22:53:18 +01:00
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a155da317e33b817886120f10038c12cf"> 40</a></span> <span class="keyword">public</span> <span class="keyword">synchronized</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a155da317e33b817886120f10038c12cf">delete</a>() {</div>
2021-09-30 01:18:45 +02:00
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">if</span> (swigCPtr != 0) {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">if</span> (swigCMemOwn) {</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> swigCMemOwn = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> mainJNI.delete_GlobalVehicleBreaksConstraint(swigCPtr);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> }</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> swigCPtr = 0;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> super.delete();</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> }</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aabf2f35110684862e09bfa8eed2d0675"> 51</a></span> <span class="keyword">public</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aabf2f35110684862e09bfa8eed2d0675">GlobalVehicleBreaksConstraint</a>(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1RoutingDimension.html">RoutingDimension</a> dimension) {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">this</span>(mainJNI.new_GlobalVehicleBreaksConstraint(<a class="code hl_class" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1RoutingDimension.html">RoutingDimension</a>.getCPtr(dimension), dimension), <span class="keyword">true</span>);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#ad146fa8579a5f8a876c4688cc5a68520"> 55</a></span> <span class="keyword">public</span> String <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#ad146fa8579a5f8a876c4688cc5a68520">toString</a>() {</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> mainJNI.GlobalVehicleBreaksConstraint_toString(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#abcca23e6afadfade8c5d63ee62b49bfd"> 59</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#abcca23e6afadfade8c5d63ee62b49bfd">post</a>() {</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> mainJNI.GlobalVehicleBreaksConstraint_post(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aa73acb28f5f6fded9f86d4f5b8057d91"> 63</a></span> <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aa73acb28f5f6fded9f86d4f5b8057d91">initialPropagate</a>() {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> mainJNI.GlobalVehicleBreaksConstraint_initialPropagate(swigCPtr, <span class="keyword">this</span>);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span>}</div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1Constraint_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Constraint.html">com.google.ortools.constraintsolver.Constraint</a></div><div class="ttdoc">A constraint is the main modeling object.</div><div class="ttdef"><b>Definition:</b> <a href="gen_2java_2com_2google_2ortools_2constraintsolver_2Constraint_8java_source.html#l00019">gen/java/com/google/ortools/constraintsolver/Constraint.java:19</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint</a></div><div class="ttdoc">GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on all vehicles in the dimensi...</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00023">GlobalVehicleBreaksConstraint.java:23</a></div></div>
2022-01-15 22:53:18 +01:00
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_a155da317e33b817886120f10038c12cf"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a155da317e33b817886120f10038c12cf">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.delete</a></div><div class="ttdeci">synchronized void delete()</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00040">GlobalVehicleBreaksConstraint.java:40</a></div></div>
2021-09-30 01:18:45 +02:00
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_a5dfe521d487b38979e497ad34aa0da02"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#a5dfe521d487b38979e497ad34aa0da02">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.GlobalVehicleBreaksConstraint</a></div><div class="ttdeci">GlobalVehicleBreaksConstraint(long cPtr, boolean cMemoryOwn)</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00026">GlobalVehicleBreaksConstraint.java:26</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_aa73acb28f5f6fded9f86d4f5b8057d91"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aa73acb28f5f6fded9f86d4f5b8057d91">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.initialPropagate</a></div><div class="ttdeci">void initialPropagate()</div><div class="ttdoc">This method performs the initial propagation of the constraint.</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00063">GlobalVehicleBreaksConstraint.java:63</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_aabf2f35110684862e09bfa8eed2d0675"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#aabf2f35110684862e09bfa8eed2d0675">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.GlobalVehicleBreaksConstraint</a></div><div class="ttdeci">GlobalVehicleBreaksConstraint(RoutingDimension dimension)</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00051">GlobalVehicleBreaksConstraint.java:51</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_abcca23e6afadfade8c5d63ee62b49bfd"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#abcca23e6afadfade8c5d63ee62b49bfd">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.post</a></div><div class="ttdeci">void post()</div><div class="ttdoc">This method is called when the constraint is processed by the solver.</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00059">GlobalVehicleBreaksConstraint.java:59</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint_html_ad146fa8579a5f8a876c4688cc5a68520"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1GlobalVehicleBreaksConstraint.html#ad146fa8579a5f8a876c4688cc5a68520">com.google.ortools.constraintsolver.GlobalVehicleBreaksConstraint.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdef"><b>Definition:</b> <a href="GlobalVehicleBreaksConstraint_8java_source.html#l00055">GlobalVehicleBreaksConstraint.java:55</a></div></div>
<div class="ttc" id="aclasscom_1_1google_1_1ortools_1_1constraintsolver_1_1RoutingDimension_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1constraintsolver_1_1RoutingDimension.html">com.google.ortools.constraintsolver.RoutingDimension</a></div><div class="ttdoc">Dimensions represent quantities accumulated at nodes along the routes.</div><div class="ttdef"><b>Definition:</b> <a href="RoutingDimension_8java_source.html#l00036">RoutingDimension.java:36</a></div></div>
2021-01-26 11:28:50 +01:00
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
2019-08-07 18:01:08 -07:00
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
2019-06-13 02:45:44 +02:00
</html>