algorithms
Class UpdateActivityTimes

java.lang.Object
  extended by algorithms.UpdateActivityTimes
All Implemented Interfaces:
ActivityVisitor

public class UpdateActivityTimes
extends java.lang.Object
implements ActivityVisitor

Updates arrival and end times of activities.

Note that this modifies arrTime and endTime of each activity in a route.

Author:
stefan

Constructor Summary
UpdateActivityTimes(ForwardTransportTime transportTime)
          Updates arrival and end times of activities.
 
Method Summary
 void begin(VehicleRoute route)
           
 void finish()
           
 void visit(TourActivity activity)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateActivityTimes

public UpdateActivityTimes(ForwardTransportTime transportTime)
Updates arrival and end times of activities.

Note that this modifies arrTime and endTime of each activity in a route.

ArrTimes and EndTimes can be retrieved by
activity.getArrTime() and activity.getEndTime()

Method Detail

begin

public void begin(VehicleRoute route)
Specified by:
begin in interface ActivityVisitor

visit

public void visit(TourActivity activity)
Specified by:
visit in interface ActivityVisitor

finish

public void finish()
Specified by:
finish in interface ActivityVisitor