Class OperatingSystem

java.lang.Object
logic.OperatingSystem

public class OperatingSystem extends Object
Objects of this class will control the running modes of the calculator. And so enable the user to use a single button such as the equals button to act on many kinds of input. e.g calculate,integrate,solve equations,store objects and so on. This class will be involved with the different threads that may be spawned by the software in future.
  • Field Details

  • Constructor Details

    • OperatingSystem

      public OperatingSystem()
  • Method Details

    • getTask

      public Doable getTask()
      Returns:
      the Task object
    • setTask

      public void setTask(Doable task)
      Parameters:
      task - sets the Task object
    • execute

      public void execute(CalcLogic calcLogic, Doable task)
      method responsible for recognizing commands entered into the command line or text field and executing them.
      Parameters:
      task - the command to be executed.