Package io.matita08

Class Main

java.lang.Object
io.matita08.Main

public class Main extends Object
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 Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
      Main entry point for the CPU Simulator application. Processes command-line arguments, initializes configuration, and launches the graphical user interface.

      Startup sequence:

      1. Outputs debug information about stream configurations
      2. Processes command-line arguments via Constants.init(String[])
      3. If argument parsing requests help or fails, exits early
      4. Launches GUI on Swing EDT using SwingUtilities.invokeLater(Runnable)
      5. 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 (see Constants.init(String[]) for supported options)
      See Also: