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 Modifier Constructor Description protected
PhysicalModeFeaturesImpl()
Default constructorprotected
PhysicalModeFeaturesImpl(PhysicalModeFeaturesImpl other)
Copy constructorprotected
PhysicalModeFeaturesImpl(VehicularModeType vehicularType, MotorisationModeType motorisationType, TrackModeType trackType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MotorisationModeType
getMotorisationType()
collect the motorisation type of this modeTrackModeType
getTrackType()
collect the track type of this modeVehicularModeType
getVehicularType()
collect the vehicular type of this modeprotected void
setMotorisationType(MotorisationModeType motorisationType)
set the motorisation typeprotected void
setTrackType(TrackModeType trackType)
set the track type to useprotected void
setVehicularType(VehicularModeType vehicularType)
set the vehicular type
-
-
-
Constructor Detail
-
PhysicalModeFeaturesImpl
protected PhysicalModeFeaturesImpl()
Default constructor
-
PhysicalModeFeaturesImpl
protected PhysicalModeFeaturesImpl(VehicularModeType vehicularType, MotorisationModeType motorisationType, TrackModeType trackType)
- Parameters:
vehicularType
- to usemotorisationType
- to usetrackType
- to use
-
PhysicalModeFeaturesImpl
protected PhysicalModeFeaturesImpl(PhysicalModeFeaturesImpl other)
Copy constructor- Parameters:
other
- to copy
-
-
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:PhysicalModeFeatures
collect the vehicular type of this mode- Specified by:
getVehicularType
in interfacePhysicalModeFeatures
- Returns:
- vehicular type
-
getMotorisationType
public MotorisationModeType getMotorisationType()
Description copied from interface:PhysicalModeFeatures
collect the motorisation type of this mode- Specified by:
getMotorisationType
in interfacePhysicalModeFeatures
- Returns:
- motorisation type
-
getTrackType
public TrackModeType getTrackType()
Description copied from interface:PhysicalModeFeatures
collect the track type of this mode- Specified by:
getTrackType
in interfacePhysicalModeFeatures
- Returns:
- track type
-
-