cz.cuni.amis.pogamut.defcon.example
Enum MixedFleetAI.State

Package class diagram package MixedFleetAI.State
java.lang.Object
  extended by java.lang.Enum<MixedFleetAI.State>
      extended by cz.cuni.amis.pogamut.defcon.example.MixedFleetAI.State
All Implemented Interfaces:
Serializable, Comparable<MixedFleetAI.State>
Enclosing class:
MixedFleetAI

protected static enum MixedFleetAI.State
extends Enum<MixedFleetAI.State>


Enum Constant Summary
GOTO_ATTACK_POSITION
           
HUNT
           
LAUNCH_NUKES
           
PRE_DEFCON4
           
WAIT_FOR_DEFCON1
           
 
Method Summary
static MixedFleetAI.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MixedFleetAI.State[] 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

PRE_DEFCON4

public static final MixedFleetAI.State PRE_DEFCON4

GOTO_ATTACK_POSITION

public static final MixedFleetAI.State GOTO_ATTACK_POSITION

WAIT_FOR_DEFCON1

public static final MixedFleetAI.State WAIT_FOR_DEFCON1

LAUNCH_NUKES

public static final MixedFleetAI.State LAUNCH_NUKES

HUNT

public static final MixedFleetAI.State HUNT
Method Detail

values

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

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

valueOf

public static MixedFleetAI.State 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


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