|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmars.Globals
public class Globals
Collection of globally-available data structures.
Field Summary | |
---|---|
static String |
ASCII_NON_PRINT
Placeholder for non-printable ASCII codes |
static String[] |
ASCII_TABLE
Array of strings to display for ASCII codes in ASCII display of data segment. |
static String |
copyrightHolders
MARS copyright holders |
static String |
copyrightYears
MARS copyright years |
static boolean |
debug
Flag to determine whether or not to produce internal debugging information. |
static int |
exitCode
MARS exit code -- useful with SYSCALL 17 when running from command line (not GUI) |
static ArrayList |
fileExtensions
List of accepted file extensions for MIPS assembly source files. |
static String |
helpPath
Path to folder that contains help text |
static String |
imagesPath
Path to folder that contains images |
static InstructionSet |
instructionSet
The set of implemented MIPS instructions. |
static int |
maximumBacksteps
Maximum number of back-step operations to buffer |
static int |
maximumErrorMessages
Maximum number of assembler errors produced by one assemble operation |
static int |
maximumMessageCharacters
Maximum length of scrolled message window (MARS Messages and Run I/O) |
static Memory |
memory
Simulated MIPS memory component. |
static Object |
memoryAndRegistersLock
Lock variable used at head of synchronized block to guard MIPS memory and registers |
static MIPSprogram |
program
the program currently being worked with. |
static boolean |
runSpeedPanelExists
|
static SymbolTable |
symbolTable
Symbol table for file currently being assembled. |
static String |
userInputAlert
String to GUI's RunI/O text area when echoing user input from pop-up dialog. |
static String |
version
The current MARS version number. |
Constructor Summary | |
---|---|
Globals()
|
Method Summary | |
---|---|
static String |
getAsciiNonPrint()
|
static String[] |
getAsciiStrings()
|
static ArrayList |
getExternalTools()
Get list of MarsTools that reside outside the MARS distribution. |
static VenusUI |
getGui()
|
static String |
getPropertyEntry(String propertiesFile,
String propertyName)
Read and return property file value (if any) for requested property. |
static Settings |
getSettings()
|
ArrayList |
getSyscallOverrides()
Read any syscall number assignment overrides from config file. |
static void |
initialize(boolean gui)
Method called once upon system initialization to create the global data structures. |
static void |
setGui(VenusUI g)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static InstructionSet instructionSet
public static MIPSprogram program
public static SymbolTable symbolTable
public static Memory memory
public static Object memoryAndRegistersLock
public static boolean debug
public static String userInputAlert
public static final String imagesPath
public static final String helpPath
public static final String version
public static final ArrayList fileExtensions
public static final int maximumMessageCharacters
public static final int maximumErrorMessages
public static final int maximumBacksteps
public static final String copyrightYears
public static final String copyrightHolders
public static final String ASCII_NON_PRINT
public static final String[] ASCII_TABLE
public static int exitCode
public static boolean runSpeedPanelExists
Constructor Detail |
---|
public Globals()
Method Detail |
---|
public static void setGui(VenusUI g)
public static VenusUI getGui()
public static Settings getSettings()
public static void initialize(boolean gui)
public static String getAsciiNonPrint()
public static String[] getAsciiStrings()
public static ArrayList getExternalTools()
public static String getPropertyEntry(String propertiesFile, String propertyName)
propertiesFile
- name of properties file (do NOT include filename extension,
which is assumed to be ".properties")propertyName
- String containing desired property name
public ArrayList getSyscallOverrides()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |