<!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::ProblemCapacityUnderload 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="a00256.html">frepple</a>::<a class="el" href="a00138.html">ProblemCapacityUnderload</a> </div> </div> <div class="contents"> <h1>frepple::ProblemCapacityUnderload Class Reference</h1><!-- doxytag: class="frepple::ProblemCapacityUnderload" --><!-- doxytag: inherits="frepple::Problem" --> <p>A problem of this class is created when a resource is loaded below its minimum during a certain period of time. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="a00218_source.html">model.h</a>></code></p> <div class="dynheader"> Inheritance diagram for frepple::ProblemCapacityUnderload:</div> <div class="dynsection"> <div class="center"><img src="a00493.png" border="0" usemap="#frepple_1_1_problem_capacity_underload_inherit__map" alt="Inheritance graph"/></div> <map name="frepple_1_1_problem_capacity_underload_inherit__map" id="frepple_1_1_problem_capacity_underload_inherit__map"> <area shape="rect" id="node2" href="a00134.html" title="A problem represents infeasibilities, alerts and warnings in the plan." alt="" coords="125,161,240,189"/> <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="5,83,181,111"/> <area shape="rect" id="node6" href="a00120.html" title="Object is the abstract base class for the main entities." alt="" coords="205,83,341,111"/> <area shape="rect" id="node8" href="a00151.html" title="This is a base class for all Python extension types." alt="" coords="160,6,387,34"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a00494.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00050.html">DateRange</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a7a94ce3804d80f244f4b6a3fb20bb9d2">getDates</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a717cb990c20a07721dd0e404385b2729">getDescription</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a5d5b6bef525ced461e6e496a7779fbb2">getEntity</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00120.html">Object</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#ab634866e277828bfc8c53a5a2a2b41b2">getOwner</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00156.html">Resource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a75d3b808a39e02b3ab4c953e9aea0d60">getResource</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#aa33add277c079bc0c4268423486a9bde">getSize</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="a00115.html">MetaClass</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a4daac3b4c7a3e8767986731e5114cd86">getType</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a948fa0b92f9d05a3be6ef5d02c8ed669">getWeight</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a4715b3d7323394fb63a9e36507a4796a">isFeasible</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a3f363c0853d766c8e0c556e0a489ee8d">ProblemCapacityUnderload</a> (<a class="el" href="a00156.html">Resource</a> *r, <a class="el" href="a00050.html">DateRange</a> d, double q, bool add=true)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a8e41f8e5f98898ae2814b3957a15ee6d">~ProblemCapacityUnderload</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="a00115.html">MetaClass</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00138.html#a06ab88f4c56687c0697b6609e196dff8">metadata</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A problem of this class is created when a resource is loaded below its minimum during a certain period of time. </p> <p>Definition at line <a class="el" href="a00218_source.html#l05334">5334</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a3f363c0853d766c8e0c556e0a489ee8d"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::ProblemCapacityUnderload" ref="a3f363c0853d766c8e0c556e0a489ee8d" args="(Resource *r, DateRange d, double q, bool add=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">frepple::ProblemCapacityUnderload::ProblemCapacityUnderload </td> <td>(</td> <td class="paramtype"><a class="el" href="a00156.html">Resource</a> * </td> <td class="paramname"> <em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00050.html">DateRange</a> </td> <td class="paramname"> <em>d</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">double </td> <td class="paramname"> <em>q</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>add</em> = <code>true</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l05340">5340</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a8e41f8e5f98898ae2814b3957a15ee6d"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::~ProblemCapacityUnderload" ref="a8e41f8e5f98898ae2814b3957a15ee6d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">frepple::ProblemCapacityUnderload::~ProblemCapacityUnderload </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l05342">5342</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a7a94ce3804d80f244f4b6a3fb20bb9d2"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getDates" ref="a7a94ce3804d80f244f4b6a3fb20bb9d2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a00050.html">DateRange</a> frepple::ProblemCapacityUnderload::getDates </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the duration of this problem. </p> <p>Implements <a class="el" href="a00134.html#af283f4815d85c0b33d112efe4435737b">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05345">5345</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a717cb990c20a07721dd0e404385b2729"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getDescription" ref="a717cb990c20a07721dd0e404385b2729" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">string frepple::ProblemCapacityUnderload::getDescription </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a text description of this problem. </p> <p>Implements <a class="el" href="a00134.html#a37253df6ba9ebdbea97e9f789dfb8bb2">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00231_source.html#l00133">133</a> of file <a class="el" href="a00231_source.html">problems_resource.cpp</a>.</p> </div> </div> <a class="anchor" id="a5d5b6bef525ced461e6e496a7779fbb2"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getEntity" ref="a5d5b6bef525ced461e6e496a7779fbb2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">string frepple::ProblemCapacityUnderload::getEntity </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the object type having this problem. </p> <p>Implements <a class="el" href="a00134.html#a393e211b1d4da9fbc4cb1b1284248c1b">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05343">5343</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="ab634866e277828bfc8c53a5a2a2b41b2"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getOwner" ref="ab634866e277828bfc8c53a5a2a2b41b2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00120.html">Object</a>* frepple::ProblemCapacityUnderload::getOwner </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a pointer to the object that owns this problem. </p> <p>Implements <a class="el" href="a00134.html#a66e1a9cb011d009afffb32f428c06fdf">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05344">5344</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a75d3b808a39e02b3ab4c953e9aea0d60"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getResource" ref="a75d3b808a39e02b3ab4c953e9aea0d60" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00156.html">Resource</a>* frepple::ProblemCapacityUnderload::getResource </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l05346">5346</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="aa33add277c079bc0c4268423486a9bde"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getSize" ref="aa33add277c079bc0c4268423486a9bde" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">size_t frepple::ProblemCapacityUnderload::getSize </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return the memory size of the object in bytes. </p> <p>Implements <a class="el" href="a00120.html#ae381655a0e700d1e0d9ef72379792872">frepple::utils::Object</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05347">5347</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a4daac3b4c7a3e8767986731e5114cd86"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getType" ref="a4daac3b4c7a3e8767986731e5114cd86" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a00115.html">MetaClass</a>& frepple::ProblemCapacityUnderload::getType </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Return a reference to the metadata structure. </p> <p>Reimplemented from <a class="el" href="a00134.html#a8a73cf77f0bed3a807e65f9844d9baf4">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05350">5350</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a948fa0b92f9d05a3be6ef5d02c8ed669"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::getWeight" ref="a948fa0b92f9d05a3be6ef5d02c8ed669" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double frepple::ProblemCapacityUnderload::getWeight </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns a double number reflecting the magnitude of the problem. This allows us to focus on the significant problems and filter out the small ones. </p> <p>Implements <a class="el" href="a00134.html#aeac2c097edda9dee786247f8cd69bb4b">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05339">5339</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="a4715b3d7323394fb63a9e36507a4796a"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::isFeasible" ref="a4715b3d7323394fb63a9e36507a4796a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool frepple::ProblemCapacityUnderload::isFeasible </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if the plan remains feasible even if it contains this problem, i.e. if the problems flags only a warning. Returns false if a certain problem points at an infeasibility of the plan. </p> <p>Implements <a class="el" href="a00134.html#a3ce24ef75c043698afa411a6f9eeca61">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05338">5338</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="a06ab88f4c56687c0697b6609e196dff8"></a><!-- doxytag: member="frepple::ProblemCapacityUnderload::metadata" ref="a06ab88f4c56687c0697b6609e196dff8" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="a00115.html">MetaClass</a> * <a class="el" href="a00138.html#a06ab88f4c56687c0697b6609e196dff8">frepple::ProblemCapacityUnderload::metadata</a><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Storing metadata on this class. </p> <p>Reimplemented from <a class="el" href="a00134.html#a9e707be88274a5c5d7bc4c71f2ea1338">frepple::Problem</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05353">5353</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="a00227_source.html">problem.cpp</a></li> <li><a class="el" href="a00231_source.html">problems_resource.cpp</a></li> </ul> </div> <hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by <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>