com.kuka.graph.alg
Enum Dijkstra.GoalMode

java.lang.Object
  extended by java.lang.Enum<Dijkstra.GoalMode>
      extended by com.kuka.graph.alg.Dijkstra.GoalMode
All Implemented Interfaces:
Serializable, Comparable<Dijkstra.GoalMode>
Enclosing class:
Dijkstra<N,E extends Edge<N>>

public static enum Dijkstra.GoalMode
extends Enum<Dijkstra.GoalMode>

Specifies the termination of the algorithm.


Enum Constant Summary
ALL
          The algorithm terminates when all specified goals are found.
ALL_INVERSE
          The algorithms terminates when all nodes other than the specified goals are found.
ONE
          The algorithms terminates when one of the specified goals was found.
ONE_INVERSE
          The algorithms terminates when a node other than the specified goals is found.
 
Method Summary
static Dijkstra.GoalMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Dijkstra.GoalMode[] 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

ONE

public static final Dijkstra.GoalMode ONE
The algorithms terminates when one of the specified goals was found.


ONE_INVERSE

public static final Dijkstra.GoalMode ONE_INVERSE
The algorithms terminates when a node other than the specified goals is found.


ALL

public static final Dijkstra.GoalMode ALL
The algorithm terminates when all specified goals are found.


ALL_INVERSE

public static final Dijkstra.GoalMode ALL_INVERSE
The algorithms terminates when all nodes other than the specified goals are found.

Method Detail

values

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

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

valueOf

public static Dijkstra.GoalMode 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 © 2019. All rights reserved.