48 Object::createString<DemandDefault>,
true);
58 double delta(f - qty);
73 if (i->getMotive() ==
this) i->setMotive(NULL);
88 for (OperationPlan_list::iterator i = deli.begin(); i!=deli.end(); ++i)
89 if (deleteLocked || !(*i)->getLocked())
94 if (!candidate)
break;
116 throw LogicException(
"Delivery operationplan incorrectly registered");
123 OperationPlan_list::iterator j = deli.begin();
124 while (j!=deli.end() && *j!=o) ++j;
146 for (
bool swapped(!deli.empty()); swapped; swapped=
false)
148 OperationPlan_list::iterator j =
const_cast<Demand*
>(
this)->deli.begin();
150 for (OperationPlan_list::iterator i =
151 const_cast<Demand*>(
this)->deli.begin();
152 j!=
const_cast<Demand*
>(
this)->deli.end(); ++j)
154 if ((*i)->getDates().getEnd() < (*j)->getDates().getEnd())
174 return l.empty() ? NULL : *(l.begin());
182 for (Demand::OperationPlan_list::const_iterator i = l.begin(); i!=l.end(); ++i)
196 for (OperationPlan_list::iterator i = deli.begin(); i!=deli.end(); ++i)
206 OperationPlan_list::iterator j = deli.begin();
207 while (j!=deli.end() && (*j)->getDates().getEnd()>o->
getDates().
getEnd()) ++j;
220 <<
"' different than expected '" << tmpOper
221 <<
"' for demand '" <<
this <<
"'" << endl;
228 if (oper)
return oper;
238 double delivered(0.0);
239 for (OperationPlan_list::const_iterator i=deli.begin(); i!=deli.end(); ++i)
240 delivered += (*i)->getQuantity();
259 HasDescription::writeElement(o, tag);
281 for (OperationPlan_list::const_iterator i=deli.begin(); i!=deli.end(); ++i)
296 if (!constraints.
empty())
337 else throw LogicException(
"Incorrect object type during read operation");
343 else throw LogicException(
"Incorrect object type during read operation");
349 else throw LogicException(
"Incorrect object type during read operation");
360 else throw LogicException(
"Incorrect object type during read operation");
365 HasDescription::endElement(pIn, pAttr, pElement);
430 Item* y =
static_cast<Item*
>(
static_cast<PyObject*
>(field));
460 Demand* y =
static_cast<Demand*
>(
static_cast<PyObject*
>(field));
485 x.
setName(
"demandplanIterator");
486 x.
setDoc(
"frePPLe iterator for demand delivery operationplans");
492 PyObject* DemandPlanIterator::iternext()