Interface IVisualisation

All Known Implementing Classes:
SimulatorVisualisation, Visualisation, Visualisation2

public interface IVisualisation
Drawing surface contract used by the Controller to push visual events into the supermarket animation. Original methods (kept for backwards compatibility): - clearDisplay(): wipes the canvas (called at simulation start) - newCustomer(): notifies that a new customer entered the system Optional new methods (default no-ops so old code keeps compiling): - customerToCheckout(boolean): customer left shopping, joined a checkout queue - customerLeft(boolean): customer finished checkout and exited the store
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default void
    customerLeft(boolean regular)
    A customer finished service and exited.
    default void
    customerToCheckout(boolean regular)
    A customer reached a checkout queue.
    void
     
    void
    showCustomerStages(int entrance, int shopping, int decision, int regularCheckout, int selfCheckout, int exit)
     
  • Method Details

    • clearDisplay

      void clearDisplay()
    • newCustomer

      void newCustomer()
    • customerToCheckout

      default void customerToCheckout(boolean regular)
      A customer reached a checkout queue. true=regular, false=self.
    • customerLeft

      default void customerLeft(boolean regular)
      A customer finished service and exited. true=regular, false=self.
    • showCustomerStages

      void showCustomerStages(int entrance, int shopping, int decision, int regularCheckout, int selfCheckout, int exit)