Class OneWayCarsharingStation
- java.lang.Object
-
- org.matsim.contrib.carsharing.stations.OneWayCarsharingStation
-
- All Implemented Interfaces:
CarsharingStation
public class OneWayCarsharingStation extends Object implements CarsharingStation
- Author:
- balac
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCar(String type, CSVehicle vehicle)
void
freeParkingSpot()
int
getAvaialbleParkingSpots()
org.matsim.api.core.v01.network.Link
getLink()
int
getNumberOfVehicles(String type)
String
getStationId()
ArrayList<CSVehicle>
getVehicles(String type)
Map<String,ArrayList<CSVehicle>>
getVehiclesPerType()
void
removeCar(String type, CSVehicle vehicle)
void
removeCar(CSVehicle vehicle)
void
reserveParkingSpot()
-
-
-
Method Detail
-
getNumberOfVehicles
public int getNumberOfVehicles(String type)
-
getVehicles
public ArrayList<CSVehicle> getVehicles(String type)
-
getStationId
public String getStationId()
- Specified by:
getStationId
in interfaceCarsharingStation
-
reserveParkingSpot
public void reserveParkingSpot()
-
freeParkingSpot
public void freeParkingSpot()
-
getAvaialbleParkingSpots
public int getAvaialbleParkingSpots()
-
getLink
public org.matsim.api.core.v01.network.Link getLink()
- Specified by:
getLink
in interfaceCarsharingStation
-
getVehiclesPerType
public Map<String,ArrayList<CSVehicle>> getVehiclesPerType()
-
-