cz.cuni.amis.pogamut.usar2004.samples.AirScanner
Enum RiskLevel

Package class diagram package RiskLevel
java.lang.Object
  extended by java.lang.Enum<RiskLevel>
      extended by 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

Enum Constant Summary
HIGHRISK
           
LOWRISK
           
NORISK
           
 
Method Summary
static RiskLevel getGreaterRisk(RiskLevel lvlA, RiskLevel lvlB)
           
 boolean isGreaterOrEqualRisk(RiskLevel than)
           
 boolean isGreaterRisk(RiskLevel than)
           
static RiskLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RiskLevel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HIGHRISK

public static final RiskLevel HIGHRISK

LOWRISK

public static final RiskLevel LOWRISK

NORISK

public static final RiskLevel NORISK
Method Detail

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.