Package mars.venus
Class ToolManager
java.lang.Object
mars.venus.ToolManager
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 Summary
Modifier and TypeMethodDescriptionstatic List<ToolAction>
Get the list of actions to fill the Tools menu, which may be empty.
-
Method Details
-
getToolActions
Get the list of actions to fill the Tools menu, which may be empty. The loader searches for all classes in themars.tools
package that implementMarsTool
.- Returns:
- An array of actions, one for each
MarsTool
discovered.
-