Package io.matita08
Class Main
java.lang.Object
io.matita08.Main
Main entry point for the CPU Simulator application.
This class initializes the application by processing command-line arguments,
setting up exception handling, and launching the graphical user interface.
The Main class coordinates the complete application startup sequence:
- Initializes debug logging streams for troubleshooting
- Processes command-line configuration options through
Constants.init(String[]) - Launches the GUI on the Swing Event Dispatch Thread
- Configures global exception handling for unhandled errors
The application supports various command-line options for configuring the simulator's behavior, including memory size, instruction set selection, address size, and display radix. If invalid arguments are provided or help is requested, the application will display usage information and exit.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
Main entry point for the CPU Simulator application. Processes command-line arguments, initializes configuration, and launches the graphical user interface.Startup sequence:
- Outputs debug information about stream configurations
- Processes command-line arguments via
Constants.init(String[]) - If argument parsing requests help or fails, exits early
- Launches GUI on Swing EDT using
SwingUtilities.invokeLater(Runnable) - Sets up global exception handler for background threads
Debug output includes information about standard output, error, and log file streams to aid in troubleshooting startup issues.
- Parameters:
args- command-line arguments for configuring the simulator (seeConstants.init(String[])for supported options)- See Also:
-