Package mars.venus

Class ToolManager

java.lang.Object
mars.venus.ToolManager

public class ToolManager extends Object
This class provides functionality to bring external MARS tools into the MARS system by adding them to its Tools menu. This permits anyone with knowledge of the MARS public interfaces, in particular of the Memory and Register classes, to write applications which can interact with a MIPS program executing under MARS. The execution is of course simulated. The private method for loading tool classes is adapted from Bret Barker's GameServer class from the book "Developing Games In Java".
Version:
August 2005
Author:
Pete Sanderson with help from Bret Barker
  • Method Details

    • getToolActions

      public static List<ToolAction> getToolActions()
      Get the list of actions to fill the Tools menu, which may be empty. The loader searches for all classes in the mars.tools package that implement MarsTool.
      Returns:
      An array of actions, one for each MarsTool discovered.