Package microsim.space.turtle
Enum AbstractTurtle.MoveMode
- java.lang.Object
-
- java.lang.Enum<AbstractTurtle.MoveMode>
-
- microsim.space.turtle.AbstractTurtle.MoveMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AbstractTurtle.MoveMode>
- Enclosing class:
- AbstractTurtle
public static enum AbstractTurtle.MoveMode extends java.lang.Enum<AbstractTurtle.MoveMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractTurtle.MoveMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AbstractTurtle.MoveMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Torus
public static final AbstractTurtle.MoveMode Torus
-
Bounded
public static final AbstractTurtle.MoveMode Bounded
Turtle moves on a toroidal grid.
-
Bounce
public static final AbstractTurtle.MoveMode Bounce
Turtle moves on a bounded grid.
-
-
Method Detail
-
values
public static AbstractTurtle.MoveMode[] 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 (AbstractTurtle.MoveMode c : AbstractTurtle.MoveMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractTurtle.MoveMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-