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 UseOfModeType
useOfType
the use of the type-
Fields inherited from interface org.goplanit.utils.mode.UsabilityModeFeatures
DEFAULT_USEOF_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UsabilityModeFeaturesImpl()
Default constructorprotected
UsabilityModeFeaturesImpl(UsabilityModeFeaturesImpl other)
Copy constructorprotected
UsabilityModeFeaturesImpl(UseOfModeType useOfType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UsabilityModeFeatures
deepClone()
deep copyUseOfModeType
getUseOfType()
collect how this mode is used via this type, e.g.protected void
setUseOfType(UseOfModeType useOfType)
set the use of typeUsabilityModeFeatures
shallowClone()
Shallow copy
-
-
-
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
-
UsabilityModeFeaturesImpl
protected UsabilityModeFeaturesImpl(UsabilityModeFeaturesImpl other)
Copy constructor- Parameters:
other
- to copy
-
-
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:
getUseOfType
in interfaceUsabilityModeFeatures
- Returns:
- use of this type
-
shallowClone
public UsabilityModeFeatures shallowClone()
Shallow copy- Specified by:
shallowClone
in interfaceUsabilityModeFeatures
- Returns:
- shallow copy of instance
-
deepClone
public UsabilityModeFeatures deepClone()
deep copy- Specified by:
deepClone
in interfaceUsabilityModeFeatures
- Returns:
- shallow copy of instance
-
-