Package org.goplanit.mode
Class PhysicalModeFeaturesImpl
- java.lang.Object
-
- org.goplanit.mode.PhysicalModeFeaturesImpl
-
- All Implemented Interfaces:
PhysicalModeFeatures
public class PhysicalModeFeaturesImpl extends Object implements PhysicalModeFeatures
the physical features of a mode are listed by this class. Inspired by the categorisation as offered in open street maps as per https://wiki.openstreetmap.org/wiki/Key:access#Transport_mode_restrictions- Author:
- markr
-
-
Field Summary
-
Fields inherited from interface org.goplanit.utils.mode.PhysicalModeFeatures
DEFAULT_MOTORISATION_TYPE, DEFAULT_TRACK_TYPE, DEFAULT_VEHICULAR_TYPE
-
-
Constructor Summary
Constructors Constructor Description PhysicalModeFeaturesImpl()Default constructorPhysicalModeFeaturesImpl(VehicularModeType vehicularType, MotorisationModeType motorisationType, TrackModeType trackType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MotorisationModeTypegetMotorisationType()collect the motorisation type of this modeTrackModeTypegetTrackType()collect the track type of this modeVehicularModeTypegetVehicularType()collect the vehicular type of this modeprotected voidsetMotorisationType(MotorisationModeType motorisationType)set the motorisation typeprotected voidsetTrackType(TrackModeType trackType)set the track type to useprotected voidsetVehicularType(VehicularModeType vehicularType)set the vehicular type
-
-
-
Constructor Detail
-
PhysicalModeFeaturesImpl
public PhysicalModeFeaturesImpl()
Default constructor
-
PhysicalModeFeaturesImpl
public PhysicalModeFeaturesImpl(VehicularModeType vehicularType, MotorisationModeType motorisationType, TrackModeType trackType)
- Parameters:
vehicularType- to usemotorisationType- to usetrackType- to use
-
-
Method Detail
-
setVehicularType
protected void setVehicularType(VehicularModeType vehicularType)
set the vehicular type- Parameters:
vehicularType- to use
-
setMotorisationType
protected void setMotorisationType(MotorisationModeType motorisationType)
set the motorisation type- Parameters:
motorisationType- to use
-
setTrackType
protected void setTrackType(TrackModeType trackType)
set the track type to use- Parameters:
trackType- to use
-
getVehicularType
public VehicularModeType getVehicularType()
Description copied from interface:PhysicalModeFeaturescollect the vehicular type of this mode- Specified by:
getVehicularTypein interfacePhysicalModeFeatures- Returns:
- vehicular type
-
getMotorisationType
public MotorisationModeType getMotorisationType()
Description copied from interface:PhysicalModeFeaturescollect the motorisation type of this mode- Specified by:
getMotorisationTypein interfacePhysicalModeFeatures- Returns:
- motorisation type
-
getTrackType
public TrackModeType getTrackType()
Description copied from interface:PhysicalModeFeaturescollect the track type of this mode- Specified by:
getTrackTypein interfacePhysicalModeFeatures- Returns:
- track type
-
-