Class CarsharingSupplyContainer
- java.lang.Object
-
- org.matsim.contrib.carsharing.manager.supply.CarsharingSupplyContainer
-
- All Implemented Interfaces:
CarsharingSupplyInterface
public class CarsharingSupplyContainer extends Object implements CarsharingSupplyInterface
- Author:
- balac
-
-
Constructor Summary
Constructors Constructor Description CarsharingSupplyContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.matsim.api.core.v01.network.Link
findClosestAvailableParkingSpace(org.matsim.api.core.v01.network.Link destinationLink, String carsharingType, String companyId, double searchDistance)
CSVehicle
findClosestAvailableVehicle(org.matsim.api.core.v01.network.Link startLink, String carsharingType, String typeOfVehicle, String companyId, double searchDistance)
Map<CSVehicle,org.matsim.api.core.v01.network.Link>
getAllVehicleLocations()
Map<String,CSVehicle>
getAllVehicles()
CompanyContainer
getCompany(String companyId)
Map<String,CompanyAgent>
getCompanyAgents()
Set<String>
getCompanyNames()
CSVehicle
getVehicleWithId(String vehicleId)
void
populateSupply()
-
-
-
Constructor Detail
-
CarsharingSupplyContainer
public CarsharingSupplyContainer()
-
-
Method Detail
-
getAllVehicleLocations
public Map<CSVehicle,org.matsim.api.core.v01.network.Link> getAllVehicleLocations()
- Specified by:
getAllVehicleLocations
in interfaceCarsharingSupplyInterface
-
getAllVehicles
public Map<String,CSVehicle> getAllVehicles()
- Specified by:
getAllVehicles
in interfaceCarsharingSupplyInterface
-
getCompany
public CompanyContainer getCompany(String companyId)
- Specified by:
getCompany
in interfaceCarsharingSupplyInterface
-
getVehicleWithId
public CSVehicle getVehicleWithId(String vehicleId)
- Specified by:
getVehicleWithId
in interfaceCarsharingSupplyInterface
-
findClosestAvailableVehicle
public CSVehicle findClosestAvailableVehicle(org.matsim.api.core.v01.network.Link startLink, String carsharingType, String typeOfVehicle, String companyId, double searchDistance)
- Specified by:
findClosestAvailableVehicle
in interfaceCarsharingSupplyInterface
-
findClosestAvailableParkingSpace
public org.matsim.api.core.v01.network.Link findClosestAvailableParkingSpace(org.matsim.api.core.v01.network.Link destinationLink, String carsharingType, String companyId, double searchDistance)
- Specified by:
findClosestAvailableParkingSpace
in interfaceCarsharingSupplyInterface
-
populateSupply
public void populateSupply()
- Specified by:
populateSupply
in interfaceCarsharingSupplyInterface
-
getCompanyNames
public Set<String> getCompanyNames()
- Specified by:
getCompanyNames
in interfaceCarsharingSupplyInterface
-
getCompanyAgents
public Map<String,CompanyAgent> getCompanyAgents()
- Specified by:
getCompanyAgents
in interfaceCarsharingSupplyInterface
-
-