Package org.evoludo.simulator
Enum Class Network.Status
- All Implemented Interfaces:
Serializable
,Comparable<Network.Status>
,Constable
- Enclosing class:
Network
Status of the layout process of networks:
HAS_LAYOUT
- network layout complete.
NEEDS_LAYOUT
- network does not have a layout.
ADJUST_LAYOUT
- network has layout but adjustments requested.
LAYOUT_IN_PROGRESS
- layout of network in progress.
NO_LAYOUT
- no layout needed (e.g. lattices have predetermined structure).
HAS_MESSAGE
- no layout needed; instead of the network a message is displayed (e.g. if no layout available or too many links or nodes).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionlayout adjustments/improvements requestedlayout completedmessage displayed instead of networklayout in progresslayout pending, process not startedno layout needed (e.g. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if network requires layout.static Network.Status
Returns the enum constant of this class with the specified name.static Network.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HAS_LAYOUT
layout completed -
NEEDS_LAYOUT
layout pending, process not started -
ADJUST_LAYOUT
layout adjustments/improvements requested -
LAYOUT_IN_PROGRESS
layout in progress -
NO_LAYOUT
no layout needed (e.g. lattices) -
HAS_MESSAGE
message displayed instead of network
-
-
Constructor Details
-
Status
private Status()
-
-
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
-
requiresLayout
public boolean requiresLayout()Checks if network requires layout.- Returns:
true
if layout is required
-