Class SingleQueueNetAnimation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Animation

public class SingleQueueNetAnimation extends AnimationClass
Class with all the JComponents for the Animation of a Scheduling Policy
Author:
Lorenzo Torri Date: 25-mar-2024 Time: 10.46
See Also:
  • Constructor Details

  • Method Details

    • initGUI

      public void initGUI(JPanel container)
      Description copied from interface: Animation
      Paint for the first time the model
      Specified by:
      initGUI in interface Animation
      Overrides:
      initGUI in class AnimationClass
    • paint

      public void paint(Graphics g)
      This is the most important method for repainting. This one is the only one paint that needs to be called when repaint is invoked. Do not call repaint in other classes related to Animation, otherwise it will not work, since in paint, there is a call to the paint methods of all the classes related to QNA
      Specified by:
      paint in interface Animation
      Overrides:
      paint in class AnimationClass
      Parameters:
      g -
    • updateSingle

      public void updateSingle(Simulation sim, int nservers, DistributionJMCH service, DistributionJMCH interA, int maxJobs, boolean isGraphicalAnimation)
      Description copied from class: AnimationClass
      Method for updating the SingleQueue
      Overrides:
      updateSingle in class AnimationClass
      Parameters:
      sim - new info about the simulation
      nservers - number of servers
      service - distribution of the service time
      interA - distribution of the inter-arrival time
      maxJobs - max number of generated jobs
      isGraphicalAnimation - if the edge between the source and the station is there or not