Class OneTaxiRequest
- java.lang.Object
-
- org.matsim.contrib.dvrp.examples.onetaxi.OneTaxiRequest
-
- All Implemented Interfaces:
org.matsim.api.core.v01.Identifiable<Request>
,Request
,PassengerRequest
public final class OneTaxiRequest extends Object implements PassengerRequest
- Author:
- michalm
-
-
Constructor Summary
Constructors Constructor Description OneTaxiRequest(org.matsim.api.core.v01.Id<Request> id, org.matsim.api.core.v01.Id<org.matsim.api.core.v01.population.Person> passengerId, String mode, org.matsim.api.core.v01.network.Link fromLink, org.matsim.api.core.v01.network.Link toLink, double departureTime, double submissionTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getEarliestStartTime()
org.matsim.api.core.v01.network.Link
getFromLink()
org.matsim.api.core.v01.Id<Request>
getId()
String
getMode()
org.matsim.api.core.v01.Id<org.matsim.api.core.v01.population.Person>
getPassengerId()
double
getSubmissionTime()
org.matsim.api.core.v01.network.Link
getToLink()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.matsim.contrib.dvrp.passenger.PassengerRequest
getLatestStartTime
-
-
-
-
Constructor Detail
-
OneTaxiRequest
public OneTaxiRequest(org.matsim.api.core.v01.Id<Request> id, org.matsim.api.core.v01.Id<org.matsim.api.core.v01.population.Person> passengerId, String mode, org.matsim.api.core.v01.network.Link fromLink, org.matsim.api.core.v01.network.Link toLink, double departureTime, double submissionTime)
-
-
Method Detail
-
getId
public org.matsim.api.core.v01.Id<Request> getId()
- Specified by:
getId
in interfaceorg.matsim.api.core.v01.Identifiable<Request>
-
getSubmissionTime
public double getSubmissionTime()
- Specified by:
getSubmissionTime
in interfaceRequest
- Returns:
- time at which the request was submitted
-
getEarliestStartTime
public double getEarliestStartTime()
- Specified by:
getEarliestStartTime
in interfacePassengerRequest
- Returns:
- beginning of the time window (inclusive) - earliest time when the passenger can be picked up
-
getFromLink
public org.matsim.api.core.v01.network.Link getFromLink()
- Specified by:
getFromLink
in interfacePassengerRequest
-
getToLink
public org.matsim.api.core.v01.network.Link getToLink()
- Specified by:
getToLink
in interfacePassengerRequest
-
getPassengerId
public org.matsim.api.core.v01.Id<org.matsim.api.core.v01.population.Person> getPassengerId()
- Specified by:
getPassengerId
in interfacePassengerRequest
-
getMode
public String getMode()
- Specified by:
getMode
in interfacePassengerRequest
-
-