Package mars.tools

Class MarsBot

java.lang.Object
mars.tools.MarsBot
All Implemented Interfaces:
Observer, MarsTool

public class MarsBot extends Object implements Observer, MarsTool
Simple Demo of Mars tool capability
  • Constructor Details

    • MarsBot

      public MarsBot()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: MarsTool
      Return a name you have chosen for this tool. It will appear as the menu item.
      Specified by:
      getName in interface MarsTool
    • action

      public void action()
      Description copied from interface: MarsTool
      Performs tool functions. It will be invoked when the tool is selected from the Tools menu.
      Specified by:
      action in interface MarsTool
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer