com.github.croesch.micro_debug.commons
Enum Settings

java.lang.Object
  extended by java.lang.Enum<Settings>
      extended by com.github.croesch.micro_debug.commons.Settings
All Implemented Interfaces:
Serializable, Comparable<Settings>

public enum Settings
extends Enum<Settings>

An enumeration of some settings that are made in a property-file.

Since:
Date: Jan 14, 2012
Author:
croesch

Enum Constant Summary
MIC1_MEM_MACRO_ADDR_WIDTH
          the width of a formatted address of a macro/ijvm code instruction
MIC1_MEM_MACRO_MAXSIZE
          contains the maximum size of the com.github.croesch.micro_debug.micro_debug.mic1.mem.Memory
MIC1_MEM_MICRO_ADDR_WIDTH
          the width of a formatted address of a micro code instruction
MIC1_MICRO_ADDRESS_IJVM
          the address of micro assembler code that reads the next ijvm instruction
MIC1_REGISTER_CPP_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#CPP
MIC1_REGISTER_H_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#H
MIC1_REGISTER_LV_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#LV
MIC1_REGISTER_MAR_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MAR
MIC1_REGISTER_MBR_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MBR
MIC1_REGISTER_MDR_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MDR
MIC1_REGISTER_OPC_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#OPC
MIC1_REGISTER_PC_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#PC
MIC1_REGISTER_SP_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#SP
MIC1_REGISTER_TOS_DEFVAL
          contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#TOS
STACK_ELEMENTS_TO_HIDE
          the number of elements to hide, when printing the stack to the user
 
Method Summary
 int getValue()
          Returns the value of this setting.
static Settings valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Settings[] 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

STACK_ELEMENTS_TO_HIDE

public static final Settings STACK_ELEMENTS_TO_HIDE
the number of elements to hide, when printing the stack to the user


MIC1_REGISTER_CPP_DEFVAL

public static final Settings MIC1_REGISTER_CPP_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#CPP


MIC1_REGISTER_H_DEFVAL

public static final Settings MIC1_REGISTER_H_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#H


MIC1_REGISTER_LV_DEFVAL

public static final Settings MIC1_REGISTER_LV_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#LV


MIC1_REGISTER_MAR_DEFVAL

public static final Settings MIC1_REGISTER_MAR_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MAR


MIC1_REGISTER_MBR_DEFVAL

public static final Settings MIC1_REGISTER_MBR_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MBR


MIC1_REGISTER_MDR_DEFVAL

public static final Settings MIC1_REGISTER_MDR_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#MDR


MIC1_REGISTER_OPC_DEFVAL

public static final Settings MIC1_REGISTER_OPC_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#OPC


MIC1_REGISTER_PC_DEFVAL

public static final Settings MIC1_REGISTER_PC_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#PC


MIC1_REGISTER_SP_DEFVAL

public static final Settings MIC1_REGISTER_SP_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#SP


MIC1_REGISTER_TOS_DEFVAL

public static final Settings MIC1_REGISTER_TOS_DEFVAL
contains the default value for the com.github.croesch.micro_debug.micro_debug.mic1.register.Register#TOS


MIC1_MEM_MICRO_ADDR_WIDTH

public static final Settings MIC1_MEM_MICRO_ADDR_WIDTH
the width of a formatted address of a micro code instruction


MIC1_MEM_MACRO_ADDR_WIDTH

public static final Settings MIC1_MEM_MACRO_ADDR_WIDTH
the width of a formatted address of a macro/ijvm code instruction


MIC1_MEM_MACRO_MAXSIZE

public static final Settings MIC1_MEM_MACRO_MAXSIZE
contains the maximum size of the com.github.croesch.micro_debug.micro_debug.mic1.mem.Memory


MIC1_MICRO_ADDRESS_IJVM

public static final Settings MIC1_MICRO_ADDRESS_IJVM
the address of micro assembler code that reads the next ijvm instruction

Method Detail

values

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

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

valueOf

public static Settings 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

getValue

public int getValue()
Returns the value of this setting.

Returns:
the value of this setting, read from the properties file.
Since:
Date: Jan 15, 2012


Copyright © 2012. All Rights Reserved.