Enum Class PerceivedObject.ObjectType
java.lang.Object
java.lang.Enum<PerceivedObject.ObjectType>
org.opentrafficsim.road.gtu.perception.object.PerceivedObject.ObjectType
- All Implemented Interfaces:
Serializable,Comparable<PerceivedObject.ObjectType>,Constable
- Enclosing interface:
- PerceivedObject
Type of object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBus stop.Intersection conflict.There is no observed object, just a distance.The observed object for headway is a GTU.The observed object for headway is a generic object.Stop line.The observed object for headway is a traffic light. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this object is a bus stop or not.booleanReturns whether this object is a conflict or not.booleanReturns whether no object was observed and only a distance was stored.booleanisGtu()Returns whether this object is a GTU or not.booleanisObject()Returns whether this object is an object or not.booleanReturns whether this object is a stop line or not.booleanReturns whether this object is a GTU or not.static PerceivedObject.ObjectTypeReturns the enum constant of this class with the specified name.static PerceivedObject.ObjectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GTU
The observed object for headway is a GTU. -
TRAFFICLIGHT
The observed object for headway is a traffic light. -
OBJECT
The observed object for headway is a generic object. -
DISTANCEONLY
There is no observed object, just a distance. -
CONFLICT
Intersection conflict. -
STOPLINE
Stop line. -
BUSSTOP
Bus stop.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isGtu
public boolean isGtu()Returns whether this object is a GTU or not.- Returns:
- whether this object is a GTU or not.
-
isTrafficLight
public boolean isTrafficLight()Returns whether this object is a GTU or not.- Returns:
- whether this object is a GTU or not.
-
isObject
public boolean isObject()Returns whether this object is an object or not.- Returns:
- whether this object is an object or not.
-
isDistanceOnly
public boolean isDistanceOnly()Returns whether no object was observed and only a distance was stored.- Returns:
- whether no object was observed and only a distance was stored.
-
isConflict
public boolean isConflict()Returns whether this object is a conflict or not.- Returns:
- whether this object is a conflict or not.
-
isStopLine
public boolean isStopLine()Returns whether this object is a stop line or not.- Returns:
- whether this object is a stop line or not.
-
isBusStop
public boolean isBusStop()Returns whether this object is a bus stop or not.- Returns:
- whether this object is a bus stop or not.
-