void MSPerson::routeOutput(OutputDevice& os) const { MSPersonPlan::const_iterator i = myPlan->begin(); if ((*i)->getStageType() == WAITING && getDesiredDepart() == static_cast<MSPersonStage_Waiting*>(*i)->getUntil()) { ++i; } for (; i != myPlan->end(); ++i) { (*i)->routeOutput(os); } }
void MSContainer::routeOutput(OutputDevice& os) const { os.openTag(SUMO_TAG_CONTAINER).writeAttr(SUMO_ATTR_ID, getID()).writeAttr(SUMO_ATTR_DEPART, time2string(getDesiredDepart())); if (myStep == myPlan->end()) { os.writeAttr("arrival", time2string(MSNet::getInstance()->getCurrentTimeStep())); } for (MSTransportablePlan::const_iterator i = myPlan->begin(); i != myPlan->end(); ++i) { (*i)->routeOutput(os); } os.closeTag(); os.lf(); }
void MSContainer::tripInfoOutput(OutputDevice& os, MSTransportable* transportable) const { os.openTag("containerinfo").writeAttr("id", getID()).writeAttr("depart", time2string(getDesiredDepart())); for (MSTransportablePlan::const_iterator i = myPlan->begin(); i != myPlan->end(); ++i) { (*i)->tripInfoOutput(os, transportable); } os.closeTag(); }