se.optimatika.ampl
Enum Command

java.lang.Object
  extended by java.lang.Enum<Command>
      extended by se.optimatika.ampl.Command
All Implemented Interfaces:
Serializable, Comparable<Command>

public enum Command
extends Enum<Command>


Enum Constant Summary
CLOSE
           
DATA
           
DELETE
           
DISPLAY
           
DROP
           
END
           
EXPAND
           
FIX
           
INCLUDE
           
LET
           
MAXIMIZE
           
MINIMIZE
           
MODEL
           
OBJECTIVE
           
OPTION
           
PRINT
           
PRINTF
           
QUIT
           
READ
           
RESET
           
RESET_DATA
           
RESTORE
           
SHELL
           
SHOW
           
SOLUTION
           
SOLVE
           
SUBJECT_TO
           
UNFIX
           
UPDATE
           
UPDATE_DATA
           
VAR
           
WRITE
           
XREF
           
 
Method Summary
 Message toMessage()
           
 Message toMessage(String anArg)
           
 String toString()
           
static Command valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Command[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MINIMIZE

public static final Command MINIMIZE

MAXIMIZE

public static final Command MAXIMIZE

CLOSE

public static final Command CLOSE

DATA

public static final Command DATA

DELETE

public static final Command DELETE

DISPLAY

public static final Command DISPLAY

DROP

public static final Command DROP

END

public static final Command END

EXPAND

public static final Command EXPAND

FIX

public static final Command FIX

INCLUDE

public static final Command INCLUDE

LET

public static final Command LET

MODEL

public static final Command MODEL

OBJECTIVE

public static final Command OBJECTIVE

OPTION

public static final Command OPTION

PRINT

public static final Command PRINT

PRINTF

public static final Command PRINTF

QUIT

public static final Command QUIT

READ

public static final Command READ

RESET

public static final Command RESET

RESET_DATA

public static final Command RESET_DATA

RESTORE

public static final Command RESTORE

SHELL

public static final Command SHELL

SHOW

public static final Command SHOW

SOLUTION

public static final Command SOLUTION

SOLVE

public static final Command SOLVE

SUBJECT_TO

public static final Command SUBJECT_TO

UNFIX

public static final Command UNFIX

UPDATE

public static final Command UPDATE

UPDATE_DATA

public static final Command UPDATE_DATA

VAR

public static final Command VAR

WRITE

public static final Command WRITE

XREF

public static final Command XREF
Method Detail

values

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

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

valueOf

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

toMessage

public Message toMessage()

toMessage

public Message toMessage(String anArg)

toString

public String toString()
Overrides:
toString in class Enum<Command>