Package com.powsybl.math.graph
Enum Class TraverseResult
- All Implemented Interfaces:
Serializable
,Comparable<TraverseResult>
,Constable
Result of graph traversal step, used to decide whether to pursue or not current traversal.
CONTINUE
indicates that the traversal should go on,TERMINATE_PATH
indicates that the current traversal path should stop,TERMINATE_TRAVERSER
indicates that all the traversal paths should stop.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that traversal should continueIndicates that traversal should terminate on current pathIndicates that traversal should break, i.e., terminate on all paths -
Method Summary
Modifier and TypeMethodDescriptionstatic TraverseResult
Returns the enum constant of this class with the specified name.static TraverseResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
Indicates that traversal should continue -
TERMINATE_PATH
Indicates that traversal should terminate on current path -
TERMINATE_TRAVERSER
Indicates that traversal should break, i.e., terminate on all paths
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-