cz.cuni.amis.pogamut.usar2004.samples.AirScanner
Enum RiskLevel
java.lang.Object
java.lang.Enum<RiskLevel>
cz.cuni.amis.pogamut.usar2004.samples.AirScanner.RiskLevel
- All Implemented Interfaces:
- Serializable, Comparable<RiskLevel>
public enum RiskLevel
- extends Enum<RiskLevel>
List risk levels. By the risk level robot determines its reactive behaviour
when facing some obstacles.
- Author:
- vejmanm
HIGHRISK
public static final RiskLevel HIGHRISK
LOWRISK
public static final RiskLevel LOWRISK
NORISK
public static final RiskLevel NORISK
values
public static RiskLevel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RiskLevel c : RiskLevel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RiskLevel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
getGreaterRisk
public static RiskLevel getGreaterRisk(RiskLevel lvlA,
RiskLevel lvlB)
isGreaterRisk
public boolean isGreaterRisk(RiskLevel than)
isGreaterOrEqualRisk
public boolean isGreaterOrEqualRisk(RiskLevel than)
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.