|
MATSIM
|
Static Public Member Functions | |
| static VehicleType | createVehicleType (Id< VehicleType > typeId) |
| static VehicleType | createVehicleType (Id< VehicleType > typeId, String networkMode) |
| static VehiclesFactory | getFactory () |
| static Vehicles | createVehiclesContainer () |
| static VehicleType | createDefaultVehicleType () |
| static Id< Vehicle > | createVehicleId (Person person, String mode) |
| static void | copyFromTo (VehicleType in, VehicleType out) |
| static boolean | hasVehicleId (Person person, String mode) |
| static Map< String, Id< Vehicle > > | getVehicleIds (Person person) |
| static Map< String, Id< VehicleType > > | getVehicleTypes (Person person) |
| static Id< Vehicle > | getVehicleId (Person person, String mode) |
| static void | insertVehicleIdsIntoAttributes (Person person, Map< String, Id< Vehicle >> modeToVehicle) |
| static void | insertVehicleIdsIntoPersonAttributes (Person person, Map< String, Id< Vehicle >> modeToVehicle) |
| static void | insertVehicleTypesIntoAttributes (Person person, Map< String, Id< VehicleType >> modeToVehicleType) |
| static void | insertVehicleTypesIntoPersonAttributes (Person person, Map< String, Id< VehicleType >> modeToVehicleType) |
| static VehicleType.DoorOperationMode | getDoorOperationMode (VehicleType vehicleType) |
| static void | setDoorOperationMode (VehicleType vehicleType, VehicleType.DoorOperationMode mode) |
| static double | getEgressTime (VehicleType vehicleType) |
| static void | setEgressTime (VehicleType vehicleType, double egressTime) |
| static double | getAccessTime (VehicleType vehicleType) |
| static void | setAccessTime (VehicleType vehicleType, double accessTime) |
| static Double | getFuelConsumption (VehicleType vehicleType) |
| static void | setFuelConsumption (VehicleType vehicleType, double literPerMeter) |
| static String | getHbefaTechnology (EngineInformation ei) |
| static void | setHbefaTechnology (EngineInformation engineInformation, String hbefaTechnology) |
| static String | getHbefaVehicleCategory (EngineInformation ei) |
| static void | setHbefaVehicleCategory (EngineInformation engineInformation, String hbefaVehicleCategory) |
| static String | getHbefaSizeClass (EngineInformation ei) |
| static void | setHbefaSizeClass (EngineInformation engineInformation, String hbefaSizeClass) |
| static String | getHbefaEmissionsConcept (EngineInformation ei) |
| static void | setHbefaEmissionsConcept (EngineInformation engineInformation, String emissionsConcept) |
| static Double | getEnergyConsumptionKWhPerMeter (EngineInformation engineInformation) |
| static void | setEnergyConsumptionKWhPerMeter (EngineInformation engineInformation, double energyConsumptionKWhPerMeter) |
| static Double | getFuelConsumptionLitersPerMeter (EngineInformation engineInformation) |
| static void | setFuelConsumptionLitersPerMeter (EngineInformation engineInformation, double fuelConsumptionLitersPerMeter) |
| static Double | getEnergyCapacity (EngineInformation engineInformation) |
| static void | setEnergyCapacity (EngineInformation engineInformation, double energyCapacityInKWhOrLiters) |
| static Double | getCostsPerSecondWaiting (CostInformation costInformation) |
| static void | setCostsPerSecondWaiting (CostInformation costInformation, double costsPerSecond) |
| static Double | getCostsPerSecondInService (CostInformation costInformation) |
| static void | setCostsPerSecondInService (CostInformation costInformation, double costsPerSecond) |
| static Vehicle | createVehicle (Id< Vehicle > id, VehicleType type) |
| static Vehicles | getOrCreateAllvehicles (Scenario scenario) |
| static Vehicle | findVehicle (Id< Vehicle > vehicleId, Scenario scenario) |
| static void | writeVehicles (Vehicles vehicles, String filename) |
| static Id< Link > | getInitialLinkId (Vehicle vehicle) |
| static void | setInitialLinkId (Vehicle vehicle, Id< Link > initialLinkId) |
Static Private Attributes | |
| static final Logger | log = LogManager.getLogger( VehicleUtils.class ) |
| static final String | DEFAULT_VEHICLE_TYPE_ID = "defaultVehicleType" |
| static final String | VEHICLE_ATTRIBUTE_KEY = "vehicles" |
| static final String | VEHICLE_TYPES_ATTRIBUTE_KEY = "vehicleTypes" |
| static final String | DOOR_OPERATION_MODE = "doorOperationMode" |
| static final String | EGRESSTIME = "egressTimeInSecondsPerPerson" |
| static final String | ACCESSTIME = "accessTimeInSecondsPerPerson" |
| static final String | FUELCONSUMPTION = "fuelConsumptionLitersPerMeter" |
| static final String | ENERGYCONSUMPTION = "energyConsumptionKWhPerMeter" |
| static final String | ENERGYCAPACITY = "energyCapacityInKWhOrLiters" |
| static final String | HBEFA_VEHICLE_CATEGORY_ = "HbefaVehicleCategory" |
| static final String | HBEFA_TECHNOLOGY = "HbefaTechnology" |
| static final String | HBEFA_SIZE_CLASS = "HbefaSizeClass" |
| static final String | HBEFA_EMISSIONS_CONCEPT = "HbefaEmissionsConcept" |
| static final String | COST_PER_SECOND_WAITING = "costsPerSecondWaiting" |
| static final String | COST_PER_SECOND_INSERVICE = "costsPerSecondInService" |
| static final String | FUEL_TYPE = "fuelType" |
| static final String | INITIAL_LINK_ID = "initialLinkId" |
| static int | tryStdCnt = 5 |
| static int | tryTrnCnt = 5 |
Definition at line 41 of file VehicleUtils.java.
|
static |
Definition at line 64 of file VehicleUtils.java.
|
static |
Definition at line 68 of file VehicleUtils.java.
|
static |
Definition at line 72 of file VehicleUtils.java.
Referenced by org.matsim.vehicles.VehicleUtils.createDefaultVehicleType().
|
static |
Definition at line 76 of file VehicleUtils.java.
|
static |
Definition at line 80 of file VehicleUtils.java.
References org.matsim.api.core.v01.TransportMode.car, org.matsim.api.core.v01.Id< T >.create(), org.matsim.vehicles.VehiclesFactory.createVehicleType(), org.matsim.vehicles.VehicleType.getCapacity(), org.matsim.vehicles.VehicleUtils.getFactory(), org.matsim.vehicles.VehicleType.setNetworkMode(), and org.matsim.vehicles.VehicleCapacity.setSeats().
Referenced by org.matsim.core.controler.PrepareForSimImpl.getVehicleTypesForAllNetworkAndMainModes().

|
static |
Creates a vehicle id based on the person and the mode
If config.qsim().getVehicleSource() is "modeVehicleTypesFromVehiclesData", the returned id is a combination of the person's id and the supplied mode. E.g. "person1_car
| person | The person which owns the vehicle |
| mode | The mode this vehicle is for |
Definition at line 99 of file VehicleUtils.java.
References org.matsim.api.core.v01.Id< T >.createVehicleId().
Referenced by org.matsim.core.controler.PrepareForSimImpl.createVehicleId().

|
static |
Definition at line 103 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.AttributesUtils.copyAttributesFromTo(), org.matsim.vehicles.VehicleType.getCapacity(), org.matsim.vehicles.VehicleType.getCostInformation(), org.matsim.vehicles.CostInformation.getCostsPerMeter(), org.matsim.vehicles.CostInformation.getCostsPerSecond(), org.matsim.vehicles.VehicleType.getDescription(), org.matsim.vehicles.VehicleType.getEngineInformation(), org.matsim.vehicles.CostInformation.getFixedCosts(), org.matsim.vehicles.VehicleType.getFlowEfficiencyFactor(), org.matsim.vehicles.VehicleType.getLength(), org.matsim.vehicles.VehicleType.getMaximumVelocity(), org.matsim.vehicles.VehicleType.getNetworkMode(), org.matsim.vehicles.VehicleType.getPcuEquivalents(), org.matsim.vehicles.VehicleCapacity.getSeats(), org.matsim.vehicles.VehicleCapacity.getStandingRoom(), org.matsim.vehicles.VehicleCapacity.getVolumeInCubicMeters(), org.matsim.vehicles.VehicleCapacity.getWeightInTons(), org.matsim.vehicles.CostInformation.setCostsPerSecond(), org.matsim.vehicles.VehicleType.setDescription(), org.matsim.vehicles.VehicleType.setFlowEfficiencyFactor(), org.matsim.vehicles.VehicleType.setLength(), org.matsim.vehicles.VehicleType.setMaximumVelocity(), org.matsim.vehicles.VehicleType.setNetworkMode(), org.matsim.vehicles.VehicleType.setPcuEquivalents(), org.matsim.vehicles.VehicleCapacity.setWeightInTons(), and org.matsim.vehicles.VehicleType.setWidth().

|
static |
Checks whether a person has a vehicle id for mode - without throwing an exception if not.
| person | the person one wants to check for a vehicle id |
| mode | the mode for the vehicle id to check |
Definition at line 136 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), org.matsim.vehicles.PersonVehicles.getVehicle(), and org.matsim.vehicles.VehicleUtils.VEHICLE_ATTRIBUTE_KEY.

|
static |
Retrieves vehicleIds of all vehicles that are assigned to the person.
| person | the person one wants to retrieve vehicles for |
| RuntimeException | In case no vehicleIds were set |
Definition at line 148 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), and org.matsim.vehicles.VehicleUtils.VEHICLE_ATTRIBUTE_KEY.
Referenced by org.matsim.vehicles.VehicleUtils.getVehicleId().

|
static |
Retrieve the optional vehicle types per mode that might be assigned to a person. Returns null if this is not defined.
Definition at line 163 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), and org.matsim.vehicles.VehicleUtils.VEHICLE_TYPES_ATTRIBUTE_KEY.
Referenced by org.matsim.core.controler.PrepareForSimImpl.createAndAddVehiclesForEveryNetworkMode().

|
static |
Retrieves a vehicleId from the person's attributes.
| RuntimeException | In case no vehicleIds were set or in case no vehicleId was set for the specified mode |
Definition at line 174 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleUtils.getVehicleIds().
Referenced by org.matsim.core.mobsim.qsim.agents.PopulationAgentSource.insertVehicles(), and org.matsim.core.router.NetworkRoutingInclAccessEgressModule.toString().

|
static |
Attaches vehicle ids to a person, so that the router knows which vehicle to use for which mode and person.
| modeToVehicle | mode string mapped to vehicle ids. The provided map is copied and stored as unmodifiable map. If a mode key already exists in the persons's attributes it is overridden. Otherwise, existing and provided values are merged into one map We use PersonVehicle Class in order to have a dedicated PersonVehicleAttributeConverter to/from XML |
Definition at line 197 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleUtils.insertVehicleIdsIntoPersonAttributes().
Referenced by org.matsim.core.controler.PrepareForSimImpl.createAndAddVehiclesForEveryNetworkMode().

|
static |
Attaches vehicle ids to a person, so that the router knows which vehicle to use for which mode and person.
| modeToVehicle | mode string mapped to vehicle ids. The provided map is copied and stored as unmodifiable map. If a mode key already exists in the persons's attributes it is overridden. Otherwise, existing and provided values are merged into one map We use PersonVehicle Class in order to have a dedicated PersonVehicleAttributeConverter to/from XML |
Definition at line 208 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleUtils.insertVehicleIdsIntoAttributes(), org.matsim.core.population.PersonUtils.insertVehicleIdsIntoPersonAttributes(), and org.matsim.core.population.PopulationUtils.insertVehicleIdsIntoPersonAttributes().

|
static |
Attaches vehicle types to a person, so that the router knows which vehicle to use for which mode and person.
| modeToVehicleType | mode string mapped to vehicle type ids. The provided map is copied and stored as unmodifiable map. |
Definition at line 228 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleUtils.insertVehicleTypesIntoPersonAttributes().

|
static |
Attaches vehicle types to a person, so that the router knows which vehicle to use for which mode and person.
| modeToVehicleType | mode string mapped to vehicle type ids. The provided map is copied and stored as unmodifiable map. |
Definition at line 235 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleUtils.insertVehicleTypesIntoAttributes(), org.matsim.core.population.PersonUtils.insertVehicleTypesIntoPersonAttributes(), and org.matsim.core.population.PopulationUtils.insertVehicleTypesIntoPersonAttributes().

|
static |
Definition at line 251 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.vehicles.VehicleType.getAttributes(), org.matsim.vehicles.VehicleType.getId(), org.matsim.vehicles.VehicleType.DoorOperationMode.parallel, and org.matsim.vehicles.VehicleType.DoorOperationMode.serial.
Referenced by org.matsim.vehicles.VehicleType.getDoorOperationMode(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

|
static |
Definition at line 272 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleType.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleType.setDoorOperationMode().

|
static |
Definition at line 276 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.VehicleType.getAttributes().
Referenced by org.matsim.vehicles.VehicleType.getEgressTime(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

|
static |
Definition at line 285 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleType.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleType.setEgressTime().

|
static |
Definition at line 289 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.VehicleType.getAttributes().
Referenced by org.matsim.vehicles.VehicleType.getAccessTime(), and org.matsim.vehicles.VehicleWriterV1.writeVehicleTypes().

|
static |
Definition at line 298 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleType.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleType.setAccessTime().

|
static |
Definition at line 306 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleType.getEngineInformation(), and org.matsim.vehicles.VehicleUtils.getFuelConsumptionLitersPerMeter().
Referenced by org.matsim.vehicles.VehicleUtils.createVehicle(), org.matsim.vehicles.EngineInformation.getFuelConsumption(), and org.matsim.vehicles.VehicleWriterV1.writeEngineInformation().

|
static |
Definition at line 314 of file VehicleUtils.java.
References org.matsim.vehicles.VehicleType.getEngineInformation(), and org.matsim.vehicles.VehicleUtils.setFuelConsumptionLitersPerMeter().
Referenced by org.matsim.vehicles.VehicleUtils.createVehicle(), and org.matsim.vehicles.EngineInformation.setFuelConsumption().

|
static |
Definition at line 320 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 323 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 327 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 330 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 334 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 337 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 341 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 344 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 348 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 352 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 356 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().
Referenced by org.matsim.vehicles.VehicleUtils.getFuelConsumption().

|
static |
Definition at line 360 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().
Referenced by org.matsim.vehicles.VehicleUtils.setFuelConsumption().

|
static |
Definition at line 364 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.EngineInformation.getAttributes().

|
static |
Definition at line 368 of file VehicleUtils.java.
References org.matsim.vehicles.EngineInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 373 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.CostInformation.getAttributes().

|
static |
Definition at line 378 of file VehicleUtils.java.
References org.matsim.vehicles.CostInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 383 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.vehicles.CostInformation.getAttributes().

|
static |
Definition at line 388 of file VehicleUtils.java.
References org.matsim.vehicles.CostInformation.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
static |
Definition at line 392 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), org.matsim.vehicles.EngineInformation.getAttributes(), org.matsim.vehicles.VehicleUtils.getFuelConsumption(), org.matsim.utils.objectattributes.attributable.Attributes.putAttribute(), and org.matsim.vehicles.VehicleUtils.setFuelConsumption().

Definition at line 428 of file VehicleUtils.java.
References org.matsim.api.core.v01.Scenario.addScenarioElement(), and org.matsim.api.core.v01.Scenario.getScenarioElement().
Referenced by org.matsim.vehicles.VehicleUtils.findVehicle().

|
static |
Definition at line 439 of file VehicleUtils.java.
References org.matsim.core.gbl.Gbl.FUTURE_SUPPRESSED, org.matsim.vehicles.VehicleUtils.getOrCreateAllvehicles(), org.matsim.api.core.v01.Scenario.getTransitVehicles(), org.matsim.vehicles.Vehicles.getVehicles(), and org.matsim.api.core.v01.Scenario.getVehicles().

|
static |
Definition at line 466 of file VehicleUtils.java.
References org.matsim.vehicles.MatsimVehicleWriter.writeFile().

Definition at line 471 of file VehicleUtils.java.
References org.matsim.api.core.v01.Id< T >.createLinkId(), org.matsim.utils.objectattributes.attributable.Attributes.getAttribute(), and org.matsim.utils.objectattributes.attributable.Attributable.getAttributes().
Referenced by org.matsim.core.mobsim.qsim.agents.PopulationAgentSource.findVehicleLink().

|
static |
Definition at line 476 of file VehicleUtils.java.
References org.matsim.utils.objectattributes.attributable.Attributable.getAttributes(), and org.matsim.utils.objectattributes.attributable.Attributes.putAttribute().

|
staticprivate |
Definition at line 42 of file VehicleUtils.java.
|
staticprivate |
Definition at line 44 of file VehicleUtils.java.
|
staticprivate |
Definition at line 45 of file VehicleUtils.java.
Referenced by org.matsim.vehicles.VehicleUtils.getVehicleIds(), and org.matsim.vehicles.VehicleUtils.hasVehicleId().
|
staticprivate |
Definition at line 46 of file VehicleUtils.java.
Referenced by org.matsim.vehicles.VehicleUtils.getVehicleTypes().
|
staticprivate |
Definition at line 49 of file VehicleUtils.java.
|
staticprivate |
Definition at line 50 of file VehicleUtils.java.
|
staticprivate |
Definition at line 51 of file VehicleUtils.java.
|
staticprivate |
Definition at line 52 of file VehicleUtils.java.
|
staticprivate |
Definition at line 53 of file VehicleUtils.java.
|
staticprivate |
Definition at line 54 of file VehicleUtils.java.
|
staticprivate |
Definition at line 55 of file VehicleUtils.java.
|
staticprivate |
Definition at line 56 of file VehicleUtils.java.
|
staticprivate |
Definition at line 57 of file VehicleUtils.java.
|
staticprivate |
Definition at line 58 of file VehicleUtils.java.
|
staticprivate |
Definition at line 59 of file VehicleUtils.java.
|
staticprivate |
Definition at line 60 of file VehicleUtils.java.
|
staticprivate |
Definition at line 61 of file VehicleUtils.java.
|
staticprivate |
Definition at line 62 of file VehicleUtils.java.
|
staticprivate |
Definition at line 437 of file VehicleUtils.java.
|
staticprivate |
Definition at line 438 of file VehicleUtils.java.
1.8.13