Enum CPU.RunState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CPU.RunState>
    Enclosing interface:
    CPU

    public static enum CPU.RunState
    extends java.lang.Enum<CPU.RunState>
    The run state of the CPU.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static CPU.RunState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static CPU.RunState[] 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, valueOf
      • Methods inherited from class java.lang.Object

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

      • STATE_STOPPED_NORMAL

        public static final CPU.RunState STATE_STOPPED_NORMAL
        CPU is stopped (naturally or by user) and should not be run until it is reset.
      • STATE_STOPPED_BREAK

        public static final CPU.RunState STATE_STOPPED_BREAK
        CPU is in breakpoint state (paused).
      • STATE_STOPPED_ADDR_FALLOUT

        public static final CPU.RunState STATE_STOPPED_ADDR_FALLOUT
        CPU is stopped because of address fallout error. It should not be run until it is reset.
      • STATE_STOPPED_BAD_INSTR

        public static final CPU.RunState STATE_STOPPED_BAD_INSTR
        CPU is stopped because of instruction fallout (unknown instruction) error. It should not be run until it is reset.
      • STATE_RUNNING

        public static final CPU.RunState STATE_RUNNING
        CPU is running.
    • Method Detail

      • values

        public static CPU.RunState[] 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 (CPU.RunState c : CPU.RunState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CPU.RunState valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<CPU.RunState>