Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 54cac1c2268db633d66eeff1b4faa585 > files > 397

frepple-doc-0.8.1-3.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>C++ API frePPLe: frepple::Operation Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="../styles.css" rel="stylesheet"  type="text/css">
</head>
<body>
<div id="container">

<div id="menubar"> 
<div id="logo" align="center">
<br/><img src='../frepple.bmp' alt="frepple" /><br/>
<a href='http://www.frepple.com/'>
<strong>a Free<br/>Production Planning<br/>Library</strong>
</a>
</div>
<div id="menu">
<br/>
<h3><a href='../Main/HomePage.html'>Main</a></h3>
<h3><a href='../UI/Main.html'>User Manual</a></h3>
<h3><a href='../Tutorial/Main.html'>Tutorial</a></h3>
<h3><a href='../Frepple/Main.html'>Reference Manual</a></h3>
<h3><a href='../Main/FAQ.html'>FAQ</a></h3>
<h3><a href='index.html'>C++ API</a></h3>
<br/>
</div>  
</div>

<div id="content">
<br/>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00256.html">frepple</a>::<a class="el" href="a00121.html">Operation</a>
  </div>
</div>
<div class="contents">
<h1>frepple::Operation Class Reference</h1><!-- doxytag: class="frepple::Operation" --><!-- doxytag: inherits="HasName&lt; Operation &gt;,frepple::HasLevel,frepple::Plannable,frepple::utils::HasDescription" -->
<p>An operation represents an activity: these consume and produce material, take time and also require capacity.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00218_source.html">model.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for frepple::Operation:</div>
<div class="dynsection">
<div class="center"><img src="a00455.png" border="0" usemap="#frepple_1_1_operation_inherit__map" alt="Inheritance graph"/></div>
<map name="frepple_1_1_operation_inherit__map" id="frepple_1_1_operation_inherit__map">
<area shape="rect" id="node23" href="a00122.html" title="This class represents a choice between multiple operations. The alternates are sorted..." alt="" coords="983,30,1159,58"/>
<area shape="rect" id="node25" href="a00123.html" title="Models an operation that takes a fixed amount of time, independent of the quantity..." alt="" coords="979,81,1163,109"/>
<area shape="rect" id="node27" href="a00128.html" title="Represents a routing operation, i.e. an operation consisting of multiple, sequential..." alt="" coords="987,131,1155,159"/>
<area shape="rect" id="node29" href="a00129.html" title="Models an operation to convert a setup on a resource." alt="" coords="992,182,1149,210"/>
<area shape="rect" id="node31" href="a00130.html" title="Models an operation whose duration is the sum of a constant time, plus a cetain time..." alt="" coords="985,233,1156,261"/>
<area shape="rect" id="node2" href="a00085.html" title="frepple::utils::HasName\&lt; Operation \&gt;" alt="" coords="521,55,756,83"/>
<area shape="rect" id="node4" href="a00119.html" title="Class NonCopyable is a base class. Derive your own class from it when you want to..." alt="" coords="289,5,465,33"/>
<area shape="rect" id="node6" href="a00182.html" title="This class represents a node in the tree." alt="" coords="284,55,471,83"/>
<area shape="rect" id="node8" href="a00120.html" title="Object is the abstract base class for the main entities." alt="" coords="309,106,445,134"/>
<area shape="rect" id="node10" href="a00151.html" title="This is a base class for all Python extension types." alt="" coords="7,106,233,134"/>
<area shape="rect" id="node12" href="a00084.html" title="The purpose of this class is to compute the levels of all buffers, operations and..." alt="" coords="579,106,699,134"/>
<area shape="rect" id="node14" href="a00133.html" title="This class needs to be implemented by all classes that implement dynamic behavior..." alt="" coords="577,157,700,185"/>
<area shape="rect" id="node16" href="a00086.html" title="Classes that keep track of problem conditions need to implement this class." alt="" coords="305,157,449,185"/>
<area shape="rect" id="node18" href="a00170.html" title="This class needs to be implemented by all classes that implement dynamic behavior..." alt="" coords="320,207,435,235"/>
<area shape="rect" id="node20" href="a00082.html" title="This is a decorator class for the main objects." alt="" coords="545,207,732,235"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00456.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="a00001.html">Association</a>&lt; <a class="el" href="a00121.html">Operation</a>, <br class="typebreak"/>
<a class="el" href="a00008.html">Buffer</a>, <a class="el" href="a00065.html">Flow</a> &gt;::ListA&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a7c20446253ec601c19271b18a759458a">flowlist</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="a00001.html">Association</a>&lt; <a class="el" href="a00121.html">Operation</a>, <br class="typebreak"/>
<a class="el" href="a00156.html">Resource</a>, <a class="el" href="a00103.html">Load</a> &gt;::ListA&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a4b6ed51e9b6898ecf786a899ccc8ea32">loadlist</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef list&lt; <a class="el" href="a00121.html">Operation</a> * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">Operationlist</a></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a0a41514b52fc52172c2899f2ae931701">addSuperOperation</a> (<a class="el" href="a00121.html">Operation</a> *o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a1ea5ed57a9d9cf0ffd71db2c1122ecf5">beginElement</a> (<a class="el" href="a00186.html">XMLInput</a> &amp;, const <a class="el" href="a00002.html">Attribute</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00050.html">DateRange</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a9e22f3865dd34fd7f2e4efcec6f8221d">calculateOperationTime</a> (<a class="el" href="a00049.html">Date</a> start, <a class="el" href="a00049.html">Date</a> end, <a class="el" href="a00179.html">TimePeriod</a> *actualduration=NULL) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00050.html">DateRange</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a53bed8ce50df21b809e1cf7d1e39fd95">calculateOperationTime</a> (<a class="el" href="a00049.html">Date</a> thedate, <a class="el" href="a00179.html">TimePeriod</a> duration, bool forward, <a class="el" href="a00179.html">TimePeriod</a> *actualduration=NULL) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ad183a2e72b75cdd83f9e71f6bc235424">createOperationPlan</a> (double, <a class="el" href="a00049.html">Date</a>, <a class="el" href="a00049.html">Date</a>, <a class="el" href="a00051.html">Demand</a> *=NULL, <a class="el" href="a00125.html">OperationPlan</a> *=NULL, unsigned long=0, bool makeflowsloads=true) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#acdd8d982c710c49a32648dd37bc559a2">deleteOperationPlans</a> (bool deleteLockedOpplans=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#aa201f6f1dd9d0194ac419345333a5a7f">endElement</a> (<a class="el" href="a00186.html">XMLInput</a> &amp;, const <a class="el" href="a00002.html">Attribute</a> &amp;, const <a class="el" href="a00047.html">DataElement</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ab5ac84c04cba58284043a4c36bd6621b">extrasize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00065.html">Flow</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#aa636fe4ef5ba4352126e6f22f485cd2e">findFlow</a> (const <a class="el" href="a00008.html">Buffer</a> *b, <a class="el" href="a00049.html">Date</a> d) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00103.html">Load</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#af91bd6a705c2342bb6b94cbe0a4ba73b">findLoad</a> (const <a class="el" href="a00156.html">Resource</a> *r, <a class="el" href="a00049.html">Date</a> d) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual PyObject *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a0681225944aef2db5421e5a5f7f710c1">getattro</a> (const <a class="el" href="a00002.html">Attribute</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ab69b08d57703a9d7809530270a6b86bf">getCost</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a0ad8ad3a837a2d93c2811cf568bf2cf0">getFence</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a3af88e6defcb9036f4597ad1308c1fcc">getFirstOpPlan</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00101.html">flowlist</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ac6b2f299c5939e2c61b2724ac58a2326">getFlows</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a69cb37b254f41a64896a8de3076697a8">getHidden</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00121.html#a4b6ed51e9b6898ecf786a899ccc8ea32">loadlist</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a7b95131f687f60ec30165e14876dac7c">getLoads</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00108.html">Location</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ac1bee1aad414a31708cc0e5c73cc1fa3">getLocation</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a1154c9b0b9d3f732f27f6dcd538174bb">getPostTime</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#abe0e2d32e84f135f6023eb78922f1ac2">getPreTime</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#af720f657b00a661e76f3ba7304053071">getSizeMaximum</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ae1ef1417d3f6b89561e6c0909f772782">getSizeMinimum</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a3b55372755baff92fa8fcc0d47ed717f">getSizeMultiple</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">Operationlist</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#adacfb6a7138a25e554e17da40f2c5438">getSubOperations</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">Operationlist</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a0dbbd3263c4284b776f62f542ef09850">getSuperOperations</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a9ed7e7fbf51ce5232699d1708e40e772">removeSubOperation</a> (<a class="el" href="a00121.html">Operation</a> *o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a77405539fd34571c1256c92f59ad9b45">removeSuperOperation</a> (<a class="el" href="a00121.html">Operation</a> *o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a494bac93a19785d858ed4553eb444166">setattro</a> (const <a class="el" href="a00002.html">Attribute</a> &amp;, const <a class="el" href="a00154.html">PythonObject</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a258d1a1dbd72994a5c351560b579264b">setCost</a> (const double c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a24fa469d1f7e5bce42ab27389a15db92">setFence</a> (<a class="el" href="a00179.html">TimePeriod</a> t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a5ad84f4daa4e5f5d018ba46c8896a585">setHidden</a> (bool b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a9244c0638313cf9f830916196d4d17ff">setLocation</a> (<a class="el" href="a00108.html">Location</a> *l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00127.html">OperationPlanState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a744480cdd80e70a2b0a7606114e1ab73">setOperationPlanParameters</a> (<a class="el" href="a00125.html">OperationPlan</a> *, double, <a class="el" href="a00049.html">Date</a>, <a class="el" href="a00049.html">Date</a>, bool=true, bool=true) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#abbdf4639868202354b5dac66bb957442">setPostTime</a> (<a class="el" href="a00179.html">TimePeriod</a> t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ac72b630ad4d0e25b8999bf769b992355">setPreTime</a> (<a class="el" href="a00179.html">TimePeriod</a> t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#aba8019ede4a8d42c9ef7c26e2c82b7ed">setSizeMaximum</a> (double f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a0bf699cb21a1431b85441a4fc9675f86">setSizeMinimum</a> (double f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#aade8f5a9ecbdc851a1fdcfed6f76387f">setSizeMultiple</a> (double f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a15b6686fb03126fea6d5151a79aa5a91">solve</a> (<a class="el" href="a00171.html">Solver</a> &amp;s, void *v=NULL) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#af081f3c4838de6b84d45e708001cb9c6">updateProblems</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a3db91252184523fa8246064446d56b60">writeElement</a> (<a class="el" href="a00189.html">XMLOutput</a> *, const <a class="el" href="a00096.html">Keyword</a> &amp;, <a class="el" href="a00257.html#a20c2c7e4c6b668e71c154ae3eb18f398">mode</a>=DEFAULT) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a2e795f6e702142d34e41ed03f8729a41">~Operation</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ab5e2d2b189b10576cb3775b44e232f87">initialize</a> ()</td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="a00114.html">MetaCategory</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#afcc9adf1a9c37fd168af778368601978">metadata</a></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a281dbc14aa516838b895c352bd388bda">extraInstantiate</a> (<a class="el" href="a00125.html">OperationPlan</a> *o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a9f0764e58b94d8f51fb2ca349d745027">initOperationPlan</a> (<a class="el" href="a00125.html">OperationPlan</a> *, double, const <a class="el" href="a00049.html">Date</a> &amp;, const <a class="el" href="a00049.html">Date</a> &amp;, <a class="el" href="a00051.html">Demand</a> *, <a class="el" href="a00125.html">OperationPlan</a> *, unsigned long, bool=true) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a402d619a3101f475d10c88c666e7aaec">Operation</a> (const string &amp;str)</td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a4f3bf5ddad62048a5ba0f424952c3e35">Flow</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#ada8f776cb873ad4dc1202c73c08d0f53">Load</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a99838363e42c780d32063e2fa8400092">OperationAlternate</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#afbc1095d8768decf47335581f018cd01">OperationPlan</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00121.html#a97cf6fb42b2a6f68bd80eba74635f229">OperationRouting</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>An operation represents an activity: these consume and produce material, take time and also require capacity. </p>
<p>An operation consumes and produces material, modeled through flows.<br/>
 An operation requires capacity, modeled through loads.</p>
<p>This is an abstract base class for all different operation types. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01498">1498</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>
<hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a7c20446253ec601c19271b18a759458a"></a><!-- doxytag: member="frepple::Operation::flowlist" ref="a7c20446253ec601c19271b18a759458a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a00001.html">Association</a>&lt;<a class="el" href="a00121.html">Operation</a>,<a class="el" href="a00008.html">Buffer</a>,<a class="el" href="a00065.html">Flow</a>&gt;::ListA <a class="el" href="a00101.html">frepple::Operation::flowlist</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01580">1580</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4b6ed51e9b6898ecf786a899ccc8ea32"></a><!-- doxytag: member="frepple::Operation::loadlist" ref="a4b6ed51e9b6898ecf786a899ccc8ea32" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a00001.html">Association</a>&lt;<a class="el" href="a00121.html">Operation</a>,<a class="el" href="a00156.html">Resource</a>,<a class="el" href="a00103.html">Load</a>&gt;::ListA <a class="el" href="a00121.html#a4b6ed51e9b6898ecf786a899ccc8ea32">frepple::Operation::loadlist</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01581">1581</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae5c93377f652a5bdb9ec20e6bee898e9"></a><!-- doxytag: member="frepple::Operation::Operationlist" ref="ae5c93377f652a5bdb9ec20e6bee898e9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef list&lt;<a class="el" href="a00121.html">Operation</a>*&gt; <a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">frepple::Operation::Operationlist</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01747">1747</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a402d619a3101f475d10c88c666e7aaec"></a><!-- doxytag: member="frepple::Operation::Operation" ref="a402d619a3101f475d10c88c666e7aaec" args="(const string &amp;str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::Operation::Operation </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>str</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. Don't use it directly. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01509">1509</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2e795f6e702142d34e41ed03f8729a41"></a><!-- doxytag: member="frepple::Operation::~Operation" ref="a2e795f6e702142d34e41ed03f8729a41" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::Operation::~Operation </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. </p>

<p>Definition at line <a class="el" href="a00223_source.html#l00118">118</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a0a41514b52fc52172c2899f2ae931701"></a><!-- doxytag: member="frepple::Operation::addSuperOperation" ref="a0a41514b52fc52172c2899f2ae931701" args="(Operation *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::addSuperOperation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00121.html">Operation</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Register a super-operation, i.e. an operation having this one as a sub-operation. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01759">1759</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1ea5ed57a9d9cf0ffd71db2c1122ecf5"></a><!-- doxytag: member="frepple::Operation::beginElement" ref="a1ea5ed57a9d9cf0ffd71db2c1122ecf5" args="(XMLInput &amp;, const Attribute &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::beginElement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00186.html">XMLInput</a> &amp;&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called while restoring the model from an XML-file.<br/>
 This is called for each element within the "this" element, for which the "this" element is immediate parent.<br/>
 It is called when the open element tag is encountered. </p>

<p>Reimplemented from <a class="el" href="a00120.html#ac17c9f7df359ee20839f5e09723d38f1">frepple::utils::Object</a>.</p>

<p>Reimplemented in <a class="el" href="a00128.html#aaf6ac7b995513f4f4590f656e372aeb8">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#a21d641b55fcac1c0be9e52df180056c9">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l00527">527</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9e22f3865dd34fd7f2e4efcec6f8221d"></a><!-- doxytag: member="frepple::Operation::calculateOperationTime" ref="a9e22f3865dd34fd7f2e4efcec6f8221d" args="(Date start, Date end, TimePeriod *actualduration=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00050.html">DateRange</a> frepple::Operation::calculateOperationTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a> *&nbsp;</td>
          <td class="paramname"> <em>actualduration</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculates the effective, available time between two dates.</p>
<p>This calculation considers the availability calendars of:</p>
<ul>
<li>the availability calendar of the operation's location</li>
<li>the availability calendar of all resources loaded by the operation  <dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>start</em>&nbsp;</td><td>The date from which to start searching. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>end</em>&nbsp;</td><td>The date where to stop searching. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>actualduration</em>&nbsp;</td><td>This variable is updated with the actual amount of available time found. </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

<p>Definition at line <a class="el" href="a00223_source.html#l00331">331</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a53bed8ce50df21b809e1cf7d1e39fd95"></a><!-- doxytag: member="frepple::Operation::calculateOperationTime" ref="a53bed8ce50df21b809e1cf7d1e39fd95" args="(Date thedate, TimePeriod duration, bool forward, TimePeriod *actualduration=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00050.html">DateRange</a> frepple::Operation::calculateOperationTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>thedate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td>
          <td class="paramname"> <em>duration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>forward</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a> *&nbsp;</td>
          <td class="paramname"> <em>actualduration</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculates the daterange starting from (or ending at) a certain date and using a certain amount of effective available time on the operation.</p>
<p>This calculation considers the availability calendars of:</p>
<ul>
<li>the availability calendar of the operation's location</li>
<li>the availability calendar of all resources loaded by the operation  <dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>thedate</em>&nbsp;</td><td>The date from which to start searching. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>duration</em>&nbsp;</td><td>The amount of available time we are looking for. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>forward</em>&nbsp;</td><td>The search direction </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>actualduration</em>&nbsp;</td><td>This variable is updated with the actual amount of available time found. </td></tr>
  </table>
  </dd>
</dl>
</li>
</ul>

<p>Definition at line <a class="el" href="a00223_source.html#l00178">178</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad183a2e72b75cdd83f9e71f6bc235424"></a><!-- doxytag: member="frepple::Operation::createOperationPlan" ref="ad183a2e72b75cdd83f9e71f6bc235424" args="(double, Date, Date, Demand *=NULL, OperationPlan *=NULL, unsigned long=0, bool makeflowsloads=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00125.html">OperationPlan</a> * frepple::Operation::createOperationPlan </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>q</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00051.html">Demand</a> *&nbsp;</td>
          <td class="paramname"> <em>l</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td>
          <td class="paramname"> <em>ow</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>i</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>makeflowsloads</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is the factory method which creates all operationplans of the operation. </p>

<p>Definition at line <a class="el" href="a00223_source.html#l00167">167</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acdd8d982c710c49a32648dd37bc559a2"></a><!-- doxytag: member="frepple::Operation::deleteOperationPlans" ref="acdd8d982c710c49a32648dd37bc559a2" args="(bool deleteLockedOpplans=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::deleteOperationPlans </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>deleteLockedOpplans</em> = <code>false</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deletes all operationplans of this operation. The boolean parameter controls whether we delete also locked operationplans or not. </p>

<p>Definition at line <a class="el" href="a00223_source.html#l00483">483</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa201f6f1dd9d0194ac419345333a5a7f"></a><!-- doxytag: member="frepple::Operation::endElement" ref="aa201f6f1dd9d0194ac419345333a5a7f" args="(XMLInput &amp;, const Attribute &amp;, const DataElement &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::endElement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00186.html">XMLInput</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pAttr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00047.html">DataElement</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pElement</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="a00133.html#adbaec4d97d9773b4eb1d63ea935d75ba">frepple::Plannable</a>.</p>

<p>Reimplemented in <a class="el" href="a00123.html#aa83d7a485466fa68f047cd9bcacb5bf7">frepple::OperationFixedTime</a>, <a class="el" href="a00130.html#a19fb3f3759863a01b23df6566c602495">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#a17ba27923c4f9e18199c48a9e4c7c980">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#aa1a730f69090603825c925e332491b4c">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l00551">551</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a281dbc14aa516838b895c352bd388bda"></a><!-- doxytag: member="frepple::Operation::extraInstantiate" ref="a281dbc14aa516838b895c352bd388bda" args="(OperationPlan *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool frepple::Operation::extraInstantiate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Extra logic called when instantiating an operationplan.<br/>
 When the function returns false the creation of the operationplan is denied and it is deleted. </p>

<p>Reimplemented in <a class="el" href="a00123.html#ad4bdd7531824452d710d9f427514f44b">frepple::OperationFixedTime</a>, <a class="el" href="a00128.html#a94629eb8c0ea5f23bc616998a2864324">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#a76ab3ec452cd87b5a3bc72af13454458">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01517">1517</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab5ac84c04cba58284043a4c36bd6621b"></a><!-- doxytag: member="frepple::Operation::extrasize" ref="ab5ac84c04cba58284043a4c36bd6621b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t frepple::Operation::extrasize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the memory size in bytes. </p>

<p>Reimplemented from <a class="el" href="a00082.html#a3cfae26eb004dfe977271fdedacbb5e3">frepple::utils::HasDescription</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01742">1742</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa636fe4ef5ba4352126e6f22f485cd2e"></a><!-- doxytag: member="frepple::Operation::findFlow" ref="aa636fe4ef5ba4352126e6f22f485cd2e" args="(const Buffer *b, Date d) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00065.html">Flow</a>* frepple::Operation::findFlow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00008.html">Buffer</a> *&nbsp;</td>
          <td class="paramname"> <em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>d</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the flow that is associates a given buffer with this operation. Returns NULL is no such flow exists. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01682">1682</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="af91bd6a705c2342bb6b94cbe0a4ba73b"></a><!-- doxytag: member="frepple::Operation::findLoad" ref="af91bd6a705c2342bb6b94cbe0a4ba73b" args="(const Resource *r, Date d) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00103.html">Load</a>* frepple::Operation::findLoad </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00156.html">Resource</a> *&nbsp;</td>
          <td class="paramname"> <em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>d</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the load that is associates a given resource with this operation. Returns NULL is no such load exists. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01687">1687</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0681225944aef2db5421e5a5f7f710c1"></a><!-- doxytag: member="frepple::Operation::getattro" ref="a0681225944aef2db5421e5a5f7f710c1" args="(const Attribute &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PyObject * frepple::Operation::getattro </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>attr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default getattro method. <br/>
 Subclasses are expected to implement an override if the type supports gettattro. </p>

<p>Reimplemented from <a class="el" href="a00151.html#af3cfc29003472070ba9e133bcf5eb335">frepple::utils::PythonExtensionBase</a>.</p>

<p>Reimplemented in <a class="el" href="a00123.html#ac5f14aa11baf05605a6db60ecef1b288">frepple::OperationFixedTime</a>, <a class="el" href="a00130.html#ab848b039e95e902500a35497babc9cf5">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#a5d33554349a36ca63ed8062504e8759c">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#aca0c41e63d37719114c08f1c0e709664">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l01395">1395</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab69b08d57703a9d7809530270a6b86bf"></a><!-- doxytag: member="frepple::Operation::getCost" ref="ab69b08d57703a9d7809530270a6b86bf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double frepple::Operation::getCost </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the operation cost.<br/>
 The cost of executing this operation, per unit of the operation_plan.<br/>
 The default value is 0.0. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01569">1569</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0ad8ad3a837a2d93c2811cf568bf2cf0"></a><!-- doxytag: member="frepple::Operation::getFence" ref="a0ad8ad3a837a2d93c2811cf568bf2cf0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::Operation::getFence </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the release fence of this operation. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01770">1770</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3af88e6defcb9036f4597ad1308c1fcc"></a><!-- doxytag: member="frepple::Operation::getFirstOpPlan" ref="a3af88e6defcb9036f4597ad1308c1fcc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00125.html">OperationPlan</a>* frepple::Operation::getFirstOpPlan </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pointer to the operationplan being instantiated. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01524">1524</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac6b2f299c5939e2c61b2724ac58a2326"></a><!-- doxytag: member="frepple::Operation::getFlows" ref="ac6b2f299c5939e2c61b2724ac58a2326" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00101.html">flowlist</a>&amp; frepple::Operation::getFlows </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns an reference to the list of flows. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01675">1675</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a69cb37b254f41a64896a8de3076697a8"></a><!-- doxytag: member="frepple::Operation::getHidden" ref="a69cb37b254f41a64896a8de3076697a8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::Operation::getHidden </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns whether an entity is real or dummy. </p>

<p>Reimplemented from <a class="el" href="a00120.html#a05c1c38045f55cd8ce66cee9e933d2bb">frepple::utils::Object</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01778">1778</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7b95131f687f60ec30165e14876dac7c"></a><!-- doxytag: member="frepple::Operation::getLoads" ref="a7b95131f687f60ec30165e14876dac7c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00121.html#a4b6ed51e9b6898ecf786a899ccc8ea32">loadlist</a>&amp; frepple::Operation::getLoads </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns an reference to the list of flows. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01678">1678</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac1bee1aad414a31708cc0e5c73cc1fa3"></a><!-- doxytag: member="frepple::Operation::getLocation" ref="ac1bee1aad414a31708cc0e5c73cc1fa3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00108.html">Location</a>* frepple::Operation::getLocation </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the location of the operation, which is used to model the working hours and holidays. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01668">1668</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1154c9b0b9d3f732f27f6dcd538174bb"></a><!-- doxytag: member="frepple::Operation::getPostTime" ref="a1154c9b0b9d3f732f27f6dcd538174bb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::Operation::getPostTime </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the delay after this operation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00121.html#abbdf4639868202354b5dac66bb957442">setPostTime</a> </dd></dl>

<p>Definition at line <a class="el" href="a00218_source.html#l01548">1548</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="abe0e2d32e84f135f6023eb78922f1ac2"></a><!-- doxytag: member="frepple::Operation::getPreTime" ref="abe0e2d32e84f135f6023eb78922f1ac2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::Operation::getPreTime </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the delay before this operation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00121.html#ac72b630ad4d0e25b8999bf769b992355">setPreTime</a> </dd></dl>

<p>Definition at line <a class="el" href="a00218_source.html#l01529">1529</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="af720f657b00a661e76f3ba7304053071"></a><!-- doxytag: member="frepple::Operation::getSizeMaximum" ref="af720f657b00a661e76f3ba7304053071" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double frepple::Operation::getSizeMaximum </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the maximum size for operationplans. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01733">1733</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae1ef1417d3f6b89561e6c0909f772782"></a><!-- doxytag: member="frepple::Operation::getSizeMinimum" ref="ae1ef1417d3f6b89561e6c0909f772782" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double frepple::Operation::getSizeMinimum </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the minimum size for operationplans. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01707">1707</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3b55372755baff92fa8fcc0d47ed717f"></a><!-- doxytag: member="frepple::Operation::getSizeMultiple" ref="a3b55372755baff92fa8fcc0d47ed717f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double frepple::Operation::getSizeMultiple </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the mutiple size for operationplans. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01719">1719</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="adacfb6a7138a25e554e17da40f2c5438"></a><!-- doxytag: member="frepple::Operation::getSubOperations" ref="adacfb6a7138a25e554e17da40f2c5438" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const <a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">Operationlist</a>&amp; frepple::Operation::getSubOperations </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a reference to the list of sub operations of this operation. </p>

<p>Reimplemented in <a class="el" href="a00128.html#a2630402ce9db63798fd471795b65c155">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#a15e4ba08a35bb3a364e2f6ce2512f3c6">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01750">1750</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0dbbd3263c4284b776f62f542ef09850"></a><!-- doxytag: member="frepple::Operation::getSuperOperations" ref="a0dbbd3263c4284b776f62f542ef09850" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00121.html#ae5c93377f652a5bdb9ec20e6bee898e9">Operationlist</a>&amp; frepple::Operation::getSuperOperations </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a reference to the list of super-operations, i.e. operations using the current <a class="el" href="a00121.html" title="An operation represents an activity: these consume and produce material, take time...">Operation</a> as a sub-Operation. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01755">1755</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab5e2d2b189b10576cb3775b44e232f87"></a><!-- doxytag: member="frepple::Operation::initialize" ref="ab5e2d2b189b10576cb3775b44e232f87" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int frepple::Operation::initialize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented in <a class="el" href="a00123.html#a5875fc9b4f9a69c217405e805572a1a0">frepple::OperationFixedTime</a>, <a class="el" href="a00129.html#abfeacc412756b3ccb6707c371f683a29">frepple::OperationSetup</a>, <a class="el" href="a00130.html#afaf1fe00da0ede538f58d58f9c6bdea8">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#ac514629e1d2c8580682296357c3572dd">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#a0fd492b1c7b1c0d52270bd77cde6ffef">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l00045">45</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9f0764e58b94d8f51fb2ca349d745027"></a><!-- doxytag: member="frepple::Operation::initOperationPlan" ref="a9f0764e58b94d8f51fb2ca349d745027" args="(OperationPlan *, double, const Date &amp;, const Date &amp;, Demand *, OperationPlan *, unsigned long, bool=true) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::initOperationPlan </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td>
          <td class="paramname"> <em>opplan</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>q</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00051.html">Demand</a> *&nbsp;</td>
          <td class="paramname"> <em>l</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td>
          <td class="paramname"> <em>ow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>makeflowsloads</em> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00223_source.html#l00460">460</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9ed7e7fbf51ce5232699d1708e40e772"></a><!-- doxytag: member="frepple::Operation::removeSubOperation" ref="a9ed7e7fbf51ce5232699d1708e40e772" args="(Operation *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void frepple::Operation::removeSubOperation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00121.html">Operation</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Removes a sub-operation from the list. This method will need to be overridden by all operation types that acts as a super-operation. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01763">1763</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a77405539fd34571c1256c92f59ad9b45"></a><!-- doxytag: member="frepple::Operation::removeSuperOperation" ref="a77405539fd34571c1256c92f59ad9b45" args="(Operation *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::removeSuperOperation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00121.html">Operation</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Removes a super-operation from the list. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01766">1766</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a494bac93a19785d858ed4553eb444166"></a><!-- doxytag: member="frepple::Operation::setattro" ref="a494bac93a19785d858ed4553eb444166" args="(const Attribute &amp;, const PythonObject &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int frepple::Operation::setattro </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00002.html">Attribute</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00154.html">PythonObject</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>field</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default setattro method. <br/>
 Subclasses are expected to implement an override if the type supports settattro. </p>

<p>Reimplemented from <a class="el" href="a00151.html#a0a1bd051198a1b82fd23d3ca04c3ee8d">frepple::utils::PythonExtensionBase</a>.</p>

<p>Reimplemented in <a class="el" href="a00123.html#aa34a37033c58f0777fc76a3824f35586">frepple::OperationFixedTime</a>, <a class="el" href="a00130.html#a943a4be921c6a204fbd101a4878609d4">frepple::OperationTimePer</a>, and <a class="el" href="a00122.html#a4adc5f876e7f8719b61f27770e0ed4e0">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l01437">1437</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a258d1a1dbd72994a5c351560b579264b"></a><!-- doxytag: member="frepple::Operation::setCost" ref="a258d1a1dbd72994a5c351560b579264b" args="(const double c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setCost </td>
          <td>(</td>
          <td class="paramtype">const double&nbsp;</td>
          <td class="paramname"> <em>c</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the operation cost.<br/>
 The cost of executing this operation, per unit of the operation_plan. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01574">1574</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a24fa469d1f7e5bce42ab27389a15db92"></a><!-- doxytag: member="frepple::Operation::setFence" ref="a24fa469d1f7e5bce42ab27389a15db92" args="(TimePeriod t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setFence </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the release fence of this operation. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01773">1773</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5ad84f4daa4e5f5d018ba46c8896a585"></a><!-- doxytag: member="frepple::Operation::setHidden" ref="a5ad84f4daa4e5f5d018ba46c8896a585" args="(bool b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setHidden </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Mark the object as hidden or not. Hidden objects are not exported and are used only as dummy constructs. </p>

<p>Reimplemented from <a class="el" href="a00120.html#ac6181efac538dd99ee1194226d890a97">frepple::utils::Object</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01777">1777</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9244c0638313cf9f830916196d4d17ff"></a><!-- doxytag: member="frepple::Operation::setLocation" ref="a9244c0638313cf9f830916196d4d17ff" args="(Location *l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setLocation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00108.html">Location</a> *&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the location of the operation, which is used to model the working hours and holidays. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01672">1672</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a744480cdd80e70a2b0a7606114e1ab73"></a><!-- doxytag: member="frepple::Operation::setOperationPlanParameters" ref="a744480cdd80e70a2b0a7606114e1ab73" args="(OperationPlan *, double, Date, Date, bool=true, bool=true) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00127.html">OperationPlanState</a> frepple::Operation::setOperationPlanParameters </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> = <code>true</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method stores ALL logic the operation needs to compute the correct relationship between the quantity, startdate and enddate of an operationplan.</p>
<p>The parameters "startdate", "enddate" and "quantity" can be conflicting if all are specified together. Typically, one would use one of the following combinations:</p>
<ul>
<li>specify quantity and start date, and let the operation compute the end date.</li>
<li>specify quantity and end date, and let the operation compute the start date.</li>
<li>specify both the start and end date, and let the operation compute the quantity.</li>
<li>specify quantity, start and end date. In this case, you need to be aware that the operationplan that is created can be different from the parameters you requested.</li>
</ul>
<p>The following priority rules apply upon conflicts.</p>
<ul>
<li>respecting the end date has the first priority.</li>
<li>respecting the start date has second priority.</li>
<li>respecting the quantity should be done if the specified dates can be respected.</li>
<li>if the quantity is being computed to meet the specified dates, the quantity being passed as argument is to be treated as a maximum limit. The created operationplan can have a smaller quantity, but not bigger...</li>
<li>at all times, we expect to have an operationplan that is respecting the constraints set by the operation. If required, some of the specified parameters may need to be violated. In case of such a violation we expect the operationplan quantity to be 0.</li>
</ul>
<p>The pre- and post-operation times are NOT considered in this method. This method only enforces "hard" constraints. "Soft" constraints are considered as 'hints' by the solver.</p>
<p>Subclasses need to override this method to implement the correct logic. </p>

<p>Implemented in <a class="el" href="a00123.html#abecd797cb671e1cbb6b94e60445f2518">frepple::OperationFixedTime</a>, <a class="el" href="a00129.html#aa06543c742d743b48f916fb99beb3129">frepple::OperationSetup</a>, <a class="el" href="a00130.html#afec0c7c63afb92c941b26c2d64736d66">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#a0c888f038ba3135b8987f894f9b61537">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#affd8bc828a150f258619aec11c4559b0">frepple::OperationAlternate</a>.</p>

</div>
</div>
<a class="anchor" id="abbdf4639868202354b5dac66bb957442"></a><!-- doxytag: member="frepple::Operation::setPostTime" ref="abbdf4639868202354b5dac66bb957442" args="(TimePeriod t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setPostTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the delay after this operation.<br/>
 This delay is a soft constraint. This means that solvers should try to respect this waiting time but can choose to leave a shorter time delay if required. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00121.html#ac72b630ad4d0e25b8999bf769b992355">setPreTime</a> </dd></dl>

<p>Definition at line <a class="el" href="a00218_source.html#l01556">1556</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac72b630ad4d0e25b8999bf769b992355"></a><!-- doxytag: member="frepple::Operation::setPreTime" ref="ac72b630ad4d0e25b8999bf769b992355" args="(TimePeriod t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setPreTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td>
          <td class="paramname"> <em>t</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the delay before this operation.<br/>
 This delay is a soft constraint. This means that solvers should try to respect this waiting time but can choose to leave a shorter time delay if required.<br/>
 </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00121.html#abbdf4639868202354b5dac66bb957442">setPostTime</a> </dd></dl>

<p>Definition at line <a class="el" href="a00218_source.html#l01537">1537</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="aba8019ede4a8d42c9ef7c26e2c82b7ed"></a><!-- doxytag: member="frepple::Operation::setSizeMaximum" ref="aba8019ede4a8d42c9ef7c26e2c82b7ed" args="(double f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setSizeMaximum </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>f</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the maximum size of operationplans. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01722">1722</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0bf699cb21a1431b85441a4fc9675f86"></a><!-- doxytag: member="frepple::Operation::setSizeMinimum" ref="a0bf699cb21a1431b85441a4fc9675f86" args="(double f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setSizeMinimum </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>f</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the minimum size of operationplans.<br/>
 The default value is 1.0 </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01698">1698</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="aade8f5a9ecbdc851a1fdcfed6f76387f"></a><!-- doxytag: member="frepple::Operation::setSizeMultiple" ref="aade8f5a9ecbdc851a1fdcfed6f76387f" args="(double f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::setSizeMultiple </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>f</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the multiple size of operationplans. </p>

<p>Definition at line <a class="el" href="a00218_source.html#l01710">1710</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a15b6686fb03126fea6d5151a79aa5a91"></a><!-- doxytag: member="frepple::Operation::solve" ref="a15b6686fb03126fea6d5151a79aa5a91" args="(Solver &amp;s, void *v=NULL) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void frepple::Operation::solve </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00171.html">Solver</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>v</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This method is called by solver classes. The implementation of this class simply calls the solve method on the solver class. Using the polymorphism the solver can implement seperate methods for different plannable subclasses. </p>

<p>Reimplemented from <a class="el" href="a00170.html#a35ad0dc1632fbfaee0ecc55752980c29">frepple::Solvable</a>.</p>

<p>Reimplemented in <a class="el" href="a00123.html#aa89ffd9aab7b1ede6f7e847a9200682f">frepple::OperationFixedTime</a>, <a class="el" href="a00129.html#ab564880d276353f1634bf7e5eb870128">frepple::OperationSetup</a>, <a class="el" href="a00130.html#a425f1e883114c4feadde2a6e4cb84be8">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#a11db0cb9bc8dacf88f5d81f622d3c8a4">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#a09ed4c0ea12a06e628ef7b6313493b46">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01745">1745</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="af081f3c4838de6b84d45e708001cb9c6"></a><!-- doxytag: member="frepple::Operation::updateProblems" ref="af081f3c4838de6b84d45e708001cb9c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::updateProblems </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called to update the list of problems. The function will only be called when:</p>
<ul>
<li>the list of problems is being recomputed</li>
<li>AND, problem detection is enabled for this object</li>
<li>AND, the object has changed since the last problem computation </li>
</ul>

<p>Implements <a class="el" href="a00086.html#aaa5a254f9a1c7aab3d423de333185b87">frepple::HasProblems</a>.</p>

<p>Definition at line <a class="el" href="a00230_source.html#l00034">34</a> of file <a class="el" href="a00230_source.html">problems_operationplan.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3db91252184523fa8246064446d56b60"></a><!-- doxytag: member="frepple::Operation::writeElement" ref="a3db91252184523fa8246064446d56b60" args="(XMLOutput *, const Keyword &amp;, mode=DEFAULT) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::Operation::writeElement </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00189.html">XMLOutput</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00096.html">Keyword</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>tag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00257.html#a20c2c7e4c6b668e71c154ae3eb18f398">mode</a>&nbsp;</td>
          <td class="paramname"> <em>m</em> = <code>DEFAULT</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="a00133.html#af52c6c3386a937db2bc91a1950622462">frepple::Plannable</a>.</p>

<p>Reimplemented in <a class="el" href="a00123.html#aaa6f2f9a016a3af3db4d3703b0ef469f">frepple::OperationFixedTime</a>, <a class="el" href="a00129.html#afcbe8d4db472da78e2f9391078173e6f">frepple::OperationSetup</a>, <a class="el" href="a00130.html#a3b99f67bf66dd84414770ce2ee8617a4">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#a6b681054d10d974688b5a0d92ea4d5f7">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#abc8519120ca9ff5e0be1a65131751a09">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00223_source.html#l00489">489</a> of file <a class="el" href="a00223_source.html">operation.cpp</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a4f3bf5ddad62048a5ba0f424952c3e35"></a><!-- doxytag: member="frepple::Operation::Flow" ref="a4f3bf5ddad62048a5ba0f424952c3e35" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00065.html">Flow</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01501">1501</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="ada8f776cb873ad4dc1202c73c08d0f53"></a><!-- doxytag: member="frepple::Operation::Load" ref="ada8f776cb873ad4dc1202c73c08d0f53" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00103.html">Load</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01502">1502</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a99838363e42c780d32063e2fa8400092"></a><!-- doxytag: member="frepple::Operation::OperationAlternate" ref="a99838363e42c780d32063e2fa8400092" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00122.html">OperationAlternate</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01505">1505</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="afbc1095d8768decf47335581f018cd01"></a><!-- doxytag: member="frepple::Operation::OperationPlan" ref="afbc1095d8768decf47335581f018cd01" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00125.html">OperationPlan</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01503">1503</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<a class="anchor" id="a97cf6fb42b2a6f68bd80eba74635f229"></a><!-- doxytag: member="frepple::Operation::OperationRouting" ref="a97cf6fb42b2a6f68bd80eba74635f229" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="a00128.html">OperationRouting</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00218_source.html#l01504">1504</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="afcc9adf1a9c37fd168af778368601978"></a><!-- doxytag: member="frepple::Operation::metadata" ref="afcc9adf1a9c37fd168af778368601978" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00114.html">MetaCategory</a> * <a class="el" href="a00121.html#afcc9adf1a9c37fd168af778368601978">frepple::Operation::metadata</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented in <a class="el" href="a00123.html#a4dc1ff9a0f9ee3e34f1cf5f2e75850a6">frepple::OperationFixedTime</a>, <a class="el" href="a00129.html#a615531dcb5e0218ab36901655f4c6052">frepple::OperationSetup</a>, <a class="el" href="a00130.html#a4629757c5a8dbd6bce4c566717142aed">frepple::OperationTimePer</a>, <a class="el" href="a00128.html#aef5314cf5948eaf8b8f1958060b28f39">frepple::OperationRouting</a>, and <a class="el" href="a00122.html#af55e7f4c9ea99a222e7433756f001d4a">frepple::OperationAlternate</a>.</p>

<p>Definition at line <a class="el" href="a00218_source.html#l01780">1780</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00218_source.html">model.h</a></li>
<li><a class="el" href="a00223_source.html">operation.cpp</a></li>
<li><a class="el" href="a00230_source.html">problems_operationplan.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address>
</div>
</div>
</body>
</html>