Package org.goplanit.mode
Class UsabilityModeFeaturesImpl
- java.lang.Object
-
- org.goplanit.mode.UsabilityModeFeaturesImpl
-
- All Implemented Interfaces:
UsabilityModeFeatures
public class UsabilityModeFeaturesImpl extends Object implements UsabilityModeFeatures
Class to highlight the use of a particular mode, i.e., is it a public or private mode, ride-share, etc. 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 Modifier and Type Field Description protected UseOfModeTypeuseOfTypethe use of the type-
Fields inherited from interface org.goplanit.utils.mode.UsabilityModeFeatures
DEFAULT_USEOF_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUsabilityModeFeaturesImpl()Default constructorprotectedUsabilityModeFeaturesImpl(UseOfModeType useOfType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UseOfModeTypegetUseOfType()collect how this mode is used via this type, e.g.protected voidsetUseOfType(UseOfModeType useOfType)set the use of type
-
-
-
Field Detail
-
useOfType
protected UseOfModeType useOfType
the use of the type
-
-
Constructor Detail
-
UsabilityModeFeaturesImpl
protected UsabilityModeFeaturesImpl()
Default constructor
-
UsabilityModeFeaturesImpl
protected UsabilityModeFeaturesImpl(UseOfModeType useOfType)
Constructor- Parameters:
useOfType- to use
-
-
Method Detail
-
setUseOfType
protected void setUseOfType(UseOfModeType useOfType)
set the use of type- Parameters:
useOfType- to use
-
getUseOfType
public UseOfModeType getUseOfType()
collect how this mode is used via this type, e.g. public, private, etc.- Specified by:
getUseOfTypein interfaceUsabilityModeFeatures- Returns:
- use of this type
-
-