Enum Class CommandOutcome

java.lang.Object
java.lang.Enum<CommandOutcome>
it.univr.di.cstnu.gui.CommandOutcome
All Implemented Interfaces:
Serializable, Comparable<CommandOutcome>, Constable

public enum CommandOutcome extends Enum<CommandOutcome>
Result category of an EditorCommand execution.
Author:
posenato
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The user cancelled the running command before it completed.
    The command raised an exception while running.
    The command cannot run with the current settings (e.g. a CSTN algorithm/semantics combination for which there is no checker).
    The command determined that the network is not consistent.
    The command determined that the network is not (dynamically) controllable.
    The command completed successfully; this also covers commands (init, dispatchability transformations, one-step commands not yet finished, ...) that have no consistency/ controllability verdict of their own.
    The command did not complete within the configured check timeout.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • OK

      public static final CommandOutcome OK
      The command completed successfully; this also covers commands (init, dispatchability transformations, one-step commands not yet finished, ...) that have no consistency/ controllability verdict of their own.
    • NOT_CONSISTENT

      public static final CommandOutcome NOT_CONSISTENT
      The command determined that the network is not consistent.
    • NOT_CONTROLLABLE

      public static final CommandOutcome NOT_CONTROLLABLE
      The command determined that the network is not (dynamically) controllable.
    • TIMEOUT

      public static final CommandOutcome TIMEOUT
      The command did not complete within the configured check timeout.
    • CANCELLED

      public static final CommandOutcome CANCELLED
      The user cancelled the running command before it completed.
    • ERROR

      public static final CommandOutcome ERROR
      The command raised an exception while running.
    • NOT_APPLICABLE

      public static final CommandOutcome NOT_APPLICABLE
      The command cannot run with the current settings (e.g. a CSTN algorithm/semantics combination for which there is no checker).
  • Method Details

    • values

      public static CommandOutcome[] 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

      public static CommandOutcome valueOf(String name)
      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 name
      NullPointerException - if the argument is null