de.cau.cs.kieler.kiml.graphviz.dot.transform
Enum NeatoModel

java.lang.Object
  extended by java.lang.Enum<NeatoModel>
      extended by de.cau.cs.kieler.kiml.graphviz.dot.transform.NeatoModel
All Implemented Interfaces:
Comparable<NeatoModel>

public enum NeatoModel
extends Enum<NeatoModel>

Definition of Neato distance computation models.

Rating red

Enum Constant Summary
CIRCUIT
          Use the circuit resistance model.
SHORTPATH
          Use length of the shortest path.
SUBSET
          Use the subset model.
 
Method Summary
 String literal()
          Return the literal value as understood by Graphviz.
static NeatoModel parse(String string)
          Parse the given string into a Neato model, ignoring case.
static NeatoModel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NeatoModel[] 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

SHORTPATH

public static final NeatoModel SHORTPATH
Use length of the shortest path.


CIRCUIT

public static final NeatoModel CIRCUIT
Use the circuit resistance model.


SUBSET

public static final NeatoModel SUBSET
Use the subset model.

Method Detail

values

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

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

valueOf

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

parse

public static NeatoModel parse(String string)
Parse the given string into a Neato model, ignoring case.

Parameters:
string - a string
Returns:
the corresponding model

literal

public String literal()
Return the literal value as understood by Graphviz.

Returns:
the literal value