Package org.matsim.contrib.ev.fleet
Class ImmutableElectricVehicleSpecification
- java.lang.Object
-
- org.matsim.contrib.ev.fleet.ImmutableElectricVehicleSpecification
-
- All Implemented Interfaces:
org.matsim.api.core.v01.Identifiable<ElectricVehicle>
,ElectricVehicleSpecification
public final class ImmutableElectricVehicleSpecification extends Object implements ElectricVehicleSpecification
Immutable implementation of ElectricVehicleSpecification- Author:
- Michal Maciejewski (michalm)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableElectricVehicleSpecification.Builder
-
Field Summary
-
Fields inherited from interface org.matsim.contrib.ev.fleet.ElectricVehicleSpecification
DEFAULT_VEHICLE_TYPE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBatteryCapacity()
com.google.common.collect.ImmutableList<String>
getChargerTypes()
org.matsim.api.core.v01.Id<ElectricVehicle>
getId()
double
getInitialSoc()
String
getVehicleType()
static ImmutableElectricVehicleSpecification.Builder
newBuilder()
static ImmutableElectricVehicleSpecification.Builder
newBuilder(ElectricVehicleSpecification copy)
-
-
-
Method Detail
-
newBuilder
public static ImmutableElectricVehicleSpecification.Builder newBuilder()
-
newBuilder
public static ImmutableElectricVehicleSpecification.Builder newBuilder(ElectricVehicleSpecification copy)
-
getId
public org.matsim.api.core.v01.Id<ElectricVehicle> getId()
- Specified by:
getId
in interfaceorg.matsim.api.core.v01.Identifiable<ElectricVehicle>
-
getVehicleType
public String getVehicleType()
- Specified by:
getVehicleType
in interfaceElectricVehicleSpecification
-
getChargerTypes
public com.google.common.collect.ImmutableList<String> getChargerTypes()
- Specified by:
getChargerTypes
in interfaceElectricVehicleSpecification
-
getInitialSoc
public double getInitialSoc()
- Specified by:
getInitialSoc
in interfaceElectricVehicleSpecification
-
getBatteryCapacity
public double getBatteryCapacity()
- Specified by:
getBatteryCapacity
in interfaceElectricVehicleSpecification
-
-