org.miv.pherd
Enum ParticleBoxRunner.InputProtocol

java.lang.Object
  extended by java.lang.Enum<ParticleBoxRunner.InputProtocol>
      extended by org.miv.pherd.ParticleBoxRunner.InputProtocol
All Implemented Interfaces:
Serializable, Comparable<ParticleBoxRunner.InputProtocol>
Enclosing class:
ParticleBoxRunner

public static enum ParticleBoxRunner.InputProtocol
extends Enum<ParticleBoxRunner.InputProtocol>

Messages understood by this runner.

Since:
2007
Author:
Antoine Dutot

Enum Constant Summary
ADD_PARTICLE
          The data must contain [5]: this token, an identifier (Object), three coordinates (Float).
DEL_PARTICLE
          The data must contain [2]: this token, an identifier (Object).
EXIT
          The data must contain [1]: this token.
 
Method Summary
static ParticleBoxRunner.InputProtocol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParticleBoxRunner.InputProtocol[] 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

ADD_PARTICLE

public static final ParticleBoxRunner.InputProtocol ADD_PARTICLE
The data must contain [5]: this token, an identifier (Object), three coordinates (Float).


DEL_PARTICLE

public static final ParticleBoxRunner.InputProtocol DEL_PARTICLE
The data must contain [2]: this token, an identifier (Object).


EXIT

public static final ParticleBoxRunner.InputProtocol EXIT
The data must contain [1]: this token.

Method Detail

values

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

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

valueOf

public static ParticleBoxRunner.InputProtocol 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 © 2011. All Rights Reserved.