Interface MobsimVehicle
-
- All Superinterfaces:
Identifiable<Vehicle>
,VisVehicle
- All Known Subinterfaces:
QVehicle
,TransitVehicle
- All Known Implementing Classes:
QVehicleImpl
,TransitQVehicle
public interface MobsimVehicle extends VisVehicle
- Author:
- nagel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addPassenger(PassengerAgent passenger)
Adds a passenger to this vehicle.Link
getCurrentLink()
int
getPassengerCapacity()
Collection<? extends PassengerAgent>
getPassengers()
double
getSizeInEquivalents()
boolean
removePassenger(PassengerAgent passenger)
Removes the passenger from this vehicle.-
Methods inherited from interface org.matsim.api.core.v01.Identifiable
getId
-
Methods inherited from interface org.matsim.vis.snapshotwriters.VisVehicle
getDriver, getVehicle
-
-
-
-
Method Detail
-
getCurrentLink
Link getCurrentLink()
-
getSizeInEquivalents
double getSizeInEquivalents()
- Specified by:
getSizeInEquivalents
in interfaceVisVehicle
-
addPassenger
boolean addPassenger(PassengerAgent passenger)
Adds a passenger to this vehicle.- Returns:
- true when the agent was added as a passenger (as per the general contract of the Collection.add method).
-
removePassenger
boolean removePassenger(PassengerAgent passenger)
Removes the passenger from this vehicle.- Returns:
- true when the agent was removed as a passenger, false if the agent was not a passenger of this vehicle or could not be removed for other reasons
-
getPassengers
Collection<? extends PassengerAgent> getPassengers()
- Returns:
- an immutable Collection of all passengers in this vehicle. Should not include the driver
-
getPassengerCapacity
int getPassengerCapacity()
- Returns:
- number of passengers this vehicle can transport
-
-