nl.tudelft.goal.ut2004.messages
Enum FireMode

Package class diagram package FireMode
java.lang.Object
  extended by java.lang.Enum<FireMode>
      extended by nl.tudelft.goal.ut2004.messages.FireMode
All Implemented Interfaces:
Serializable, Comparable<FireMode>

public enum FireMode
extends Enum<FireMode>


Enum Constant Summary
NONE
           
PRIMARY
           
SECONDARY
           
 
Method Summary
 int id()
           
 boolean isPrimary()
           
static Object valueOf(Boolean primaryShooting, Boolean secondaryShooting)
           
static Object valueOf(int mode)
           
static FireMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FireMode valueOfIgnoreCase(String firemode)
           
static FireMode[] 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

PRIMARY

public static final FireMode PRIMARY

SECONDARY

public static final FireMode SECONDARY

NONE

public static final FireMode NONE
Method Detail

values

public static FireMode[] 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 (FireMode c : FireMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FireMode 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

isPrimary

public boolean isPrimary()

id

public int id()

valueOfIgnoreCase

public static FireMode valueOfIgnoreCase(String firemode)

valueOf

public static Object valueOf(Boolean primaryShooting,
                             Boolean secondaryShooting)

valueOf

public static Object valueOf(int mode)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.