|
MATSIM
|
Static Public Member Functions | |
| static Activity | findRealActAfter (MobsimAgent agent, int index) |
| static int | findIndexOfRealActAfter (MobsimAgent agent, int index) |
| static Activity | findRealActBefore (MobsimAgent agent, int index) |
| static Integer | getCurrentPlanElementIndex (MobsimAgent agent) |
| static List< Leg > | findLegsWithModeInFuture (MobsimAgent agent, String mode) |
Private Member Functions | |
| void | checkIfNotStageActivity (Activity origAct) |
Static Private Member Functions | |
| static boolean | checkIfTripHasAlreadyStarted (MobsimAgent agent, final List< PlanElement > currentTripElements) |
| static void | checkIfNotInPastOrCurrent (MobsimAgent agent, int index) |
| static void | checkIfSameMode (String upstreamMode, final String currentMode) |
Private Attributes | |
| final QSim | mobsim |
| final EditTrips | editTrips |
| final PopulationFactory | pf |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger( EditPlans.class ) |
Definition at line 44 of file EditPlans.java.
| org.matsim.withinday.utils.EditPlans.EditPlans | ( | QSim | mobsim, |
| TripRouter | tripRouter, | ||
| EditTrips | editTrips, | ||
| PopulationFactory | pf | ||
| ) |
Definition at line 51 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.editTrips, and org.matsim.withinday.utils.EditPlans.mobsim.
| org.matsim.withinday.utils.EditPlans.EditPlans | ( | QSim | mobsim, |
| TripRouter | tripRouter, | ||
| EditTrips | editTrips, | ||
| Scenario | sc | ||
| ) |
Definition at line 55 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.editTrips, and org.matsim.withinday.utils.EditPlans.mobsim.
| org.matsim.withinday.utils.EditPlans.EditPlans | ( | QSim | mobsim, |
| TripRouter | tripRouter, | ||
| EditTrips | editTrips | ||
| ) |
Definition at line 59 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.editTrips, and org.matsim.withinday.utils.EditPlans.mobsim.
Definition at line 62 of file EditPlans.java.
References org.matsim.core.gbl.Gbl.assertNotNull(), org.matsim.api.core.v01.population.Population.getFactory(), org.matsim.api.core.v01.Scenario.getPopulation(), and org.matsim.core.mobsim.qsim.QSim.getScenario().

| boolean org.matsim.withinday.utils.EditPlans.addActivityAtEnd | ( | MobsimAgent | agent, |
| Activity | activity, | ||
| String | routingMode | ||
| ) |
Definition at line 67 of file EditPlans.java.
References org.matsim.api.core.v01.population.PopulationFactory.createLeg(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.core.mobsim.qsim.QSim.getSimTimer(), org.matsim.core.mobsim.framework.MobsimTimer.getTimeOfDay(), org.matsim.withinday.utils.EditPlans.isAtRealActivity(), org.matsim.withinday.utils.EditTrips.replanCurrentTrip(), org.matsim.core.mobsim.qsim.QSim.rescheduleActivityEnd(), and org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.resetCaches().

| PlanElement org.matsim.withinday.utils.EditPlans.removeActivity | ( | MobsimAgent | agent, |
| int | index, | ||
| String | mode | ||
| ) |
Definition at line 91 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.checkIfNotInPastOrCurrent(), org.matsim.withinday.utils.EditPlans.checkIfTripHasAlreadyStarted(), org.matsim.core.router.TripStructureUtils.findTripEndingAtActivity(), org.matsim.core.router.TripStructureUtils.findTripStartingAtActivity(), org.matsim.core.router.TripStructureUtils.Trip.getDestinationActivity(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.core.router.TripStructureUtils.Trip.getOriginActivity(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.core.mobsim.qsim.QSim.getSimTimer(), org.matsim.core.mobsim.framework.MobsimTimer.getTimeOfDay(), org.matsim.core.router.TripStructureUtils.Trip.getTripElements(), org.matsim.core.router.TripStructureUtils.identifyMainMode(), org.matsim.withinday.utils.EditTrips.insertEmptyTrip(), org.matsim.withinday.utils.EditTrips.replanCurrentTrip(), org.matsim.core.mobsim.qsim.QSim.rescheduleActivityEnd(), and org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.resetCaches().
Referenced by org.matsim.withinday.utils.EditPlans.removeActivity().

| final void org.matsim.withinday.utils.EditPlans.rescheduleActivityEndtime | ( | MobsimAgent | agent, |
| int | index, | ||
| double | newEndTime | ||
| ) |
Definition at line 118 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.rescheduleActivityEnd(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.resetCaches(), and org.matsim.api.core.v01.population.Activity.setEndTime().
Referenced by org.matsim.withinday.utils.EditPlans.rescheduleCurrentActivityEndtime().

| final Activity org.matsim.withinday.utils.EditPlans.replaceActivity | ( | MobsimAgent | agent, |
| int | index, | ||
| Activity | newAct, | ||
| String | upstreamMode, | ||
| String | downstreamMode | ||
| ) |
Definition at line 124 of file EditPlans.java.
References org.matsim.core.gbl.Gbl.assertIf(), org.matsim.core.gbl.Gbl.assertNotNull(), org.matsim.withinday.utils.EditPlans.checkIfNotInPastOrCurrent(), org.matsim.withinday.utils.EditPlans.checkIfNotStageActivity(), org.matsim.withinday.utils.EditPlans.checkIfSameMode(), org.matsim.withinday.utils.EditPlans.checkIfTripHasAlreadyStarted(), org.matsim.core.router.TripStructureUtils.findTripEndingAtActivity(), org.matsim.core.router.TripStructureUtils.findTripStartingAtActivity(), org.matsim.core.router.TripStructureUtils.Trip.getDestinationActivity(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.core.router.TripStructureUtils.Trip.getOriginActivity(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.core.mobsim.qsim.QSim.getSimTimer(), org.matsim.core.mobsim.framework.MobsimTimer.getTimeOfDay(), org.matsim.core.router.TripStructureUtils.Trip.getTripElements(), org.matsim.core.router.TripStructureUtils.identifyMainMode(), org.matsim.withinday.utils.EditTrips.insertEmptyTrip(), org.matsim.withinday.utils.EditPlans.pf, org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.printPlan(), org.matsim.withinday.utils.EditTrips.replanCurrentTrip(), org.matsim.core.mobsim.qsim.QSim.rescheduleActivityEnd(), and org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.resetCaches().
Referenced by org.matsim.withinday.utils.EditPlans.replaceActivity().

| void org.matsim.withinday.utils.EditPlans.insertActivity | ( | MobsimAgent | agent, |
| int | index, | ||
| Activity | activity, | ||
| String | upstreamMode, | ||
| String | downstreamMode | ||
| ) |
Definition at line 185 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.checkIfNotInPastOrCurrent(), org.matsim.withinday.utils.EditPlans.findRealActAfter(), org.matsim.withinday.utils.EditPlans.findRealActBefore(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.core.mobsim.qsim.QSim.getSimTimer(), org.matsim.core.mobsim.framework.MobsimTimer.getTimeOfDay(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.indexOfPlanElement(), org.matsim.withinday.utils.EditTrips.insertEmptyTrip(), org.matsim.withinday.utils.EditTrips.replanCurrentTrip(), org.matsim.core.mobsim.qsim.QSim.rescheduleActivityEnd(), and org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.resetCaches().
Referenced by org.matsim.withinday.utils.EditPlans.insertActivity().

| PlanElement org.matsim.withinday.utils.EditPlans.removeActivity | ( | MobsimAgent | agent, |
| int | index | ||
| ) |
Convenience method, clarifying that this can be called without giving the mode.
Definition at line 219 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.removeActivity().

| final Activity org.matsim.withinday.utils.EditPlans.replaceActivity | ( | MobsimAgent | agent, |
| int | index, | ||
| Activity | newAct | ||
| ) |
Convenience method, clarifying that this can be called without giving the mode.
Definition at line 225 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.replaceActivity().

| void org.matsim.withinday.utils.EditPlans.insertActivity | ( | MobsimAgent | agent, |
| int | index, | ||
| Activity | activity | ||
| ) |
Convenience method, clarifying that this can be called without giving the mode.
Definition at line 231 of file EditPlans.java.
References org.matsim.withinday.utils.EditTrips.findCurrentTrip(), org.matsim.core.router.TripStructureUtils.Trip.getTripElements(), org.matsim.core.router.TripStructureUtils.identifyMainMode(), and org.matsim.withinday.utils.EditPlans.insertActivity().

|
private |
Definition at line 237 of file EditPlans.java.
References org.matsim.api.core.v01.population.Activity.getType(), and org.matsim.core.router.StageActivityTypeIdentifier.isStageActivity().
Referenced by org.matsim.withinday.utils.EditPlans.replaceActivity().

|
staticprivate |
Definition at line 242 of file EditPlans.java.
Referenced by org.matsim.withinday.utils.EditPlans.removeActivity(), and org.matsim.withinday.utils.EditPlans.replaceActivity().
|
staticprivate |
Definition at line 245 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex().
Referenced by org.matsim.withinday.utils.EditPlans.insertActivity(), org.matsim.withinday.utils.EditPlans.removeActivity(), and org.matsim.withinday.utils.EditPlans.replaceActivity().

|
staticprivate |
Definition at line 253 of file EditPlans.java.
Referenced by org.matsim.withinday.utils.EditPlans.replaceActivity().
|
static |
Definition at line 268 of file EditPlans.java.
References org.matsim.withinday.utils.EditPlans.findIndexOfRealActAfter(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), and org.matsim.api.core.v01.population.Plan.getPlanElements().
Referenced by org.matsim.withinday.utils.EditPlans.insertActivity().

|
static |
Definition at line 273 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.api.core.v01.population.Activity.getType(), and org.matsim.core.router.StageActivityTypeIdentifier.isStageActivity().
Referenced by org.matsim.withinday.utils.EditPlans.findRealActAfter().

|
static |
Definition at line 288 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.api.core.v01.population.Plan.getPlanElements(), org.matsim.api.core.v01.population.Activity.getType(), and org.matsim.core.router.StageActivityTypeIdentifier.isStageActivity().
Referenced by org.matsim.withinday.utils.EditPlans.insertActivity().

| void org.matsim.withinday.utils.EditPlans.rescheduleActivityEnd | ( | MobsimAgent | agent | ) |
Definition at line 314 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.QSim.rescheduleActivityEnd().
Referenced by org.matsim.core.mobsim.qsim.PreplanningEngine.decide(), and org.matsim.core.mobsim.qsim.PreplanningEngine.updateAgentPlan().

| boolean org.matsim.withinday.utils.EditPlans.isAtRealActivity | ( | MobsimAgent | agent | ) |
Definition at line 318 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElement(), and org.matsim.withinday.utils.EditPlans.isRealActivity().
Referenced by org.matsim.withinday.utils.EditPlans.addActivityAtEnd(), and org.matsim.withinday.utils.EditPlans.getModeOfCurrentOrNextTrip().

| boolean org.matsim.withinday.utils.EditPlans.isRealActivity | ( | PlanElement | pe | ) |
Definition at line 326 of file EditPlans.java.
References org.matsim.core.router.StageActivityTypeIdentifier.isStageActivity().
Referenced by org.matsim.withinday.utils.EditPlans.isAtRealActivity().

| String org.matsim.withinday.utils.EditPlans.getModeOfCurrentOrNextTrip | ( | MobsimAgent | agent | ) |
Definition at line 330 of file EditPlans.java.
References org.matsim.withinday.utils.EditTrips.findCurrentTrip(), org.matsim.withinday.utils.EditTrips.findTripAfterActivity(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElement(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), org.matsim.core.router.TripStructureUtils.Trip.getTripElements(), org.matsim.core.router.TripStructureUtils.identifyMainMode(), and org.matsim.withinday.utils.EditPlans.isAtRealActivity().

| void org.matsim.withinday.utils.EditPlans.flushEverythingBeyondCurrent | ( | MobsimAgent | agent | ) |
Definition at line 340 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex(), org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan(), and org.matsim.api.core.v01.population.Plan.getPlanElements().

| void org.matsim.withinday.utils.EditPlans.rescheduleCurrentActivityEndtime | ( | MobsimAgent | agent, |
| double | newEndTime | ||
| ) |
Definition at line 347 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex(), and org.matsim.withinday.utils.EditPlans.rescheduleActivityEndtime().

| Activity org.matsim.withinday.utils.EditPlans.createFinalActivity | ( | String | type, |
| Id< Link > | newLinkId | ||
| ) |
Definition at line 352 of file EditPlans.java.
References org.matsim.api.core.v01.population.PopulationFactory.createActivityFromLinkId(), and org.matsim.api.core.v01.population.Activity.setEndTime().

|
static |
Definition at line 362 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex().

|
static |
Definition at line 366 of file EditPlans.java.
References org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getCurrentPlanElementIndex(), and org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan().
Referenced by org.matsim.core.mobsim.qsim.PreplanningEngine.decide().

|
staticprivate |
Definition at line 45 of file EditPlans.java.
|
private |
Definition at line 47 of file EditPlans.java.
Referenced by org.matsim.withinday.utils.EditPlans.EditPlans().
|
private |
Definition at line 48 of file EditPlans.java.
Referenced by org.matsim.withinday.utils.EditPlans.EditPlans().
|
private |
Definition at line 49 of file EditPlans.java.
Referenced by org.matsim.withinday.utils.EditPlans.replaceActivity().
1.8.13