Class SimulationStateChecker

java.lang.Object
jsimgraph.controller.SimulationStateChecker

public class SimulationStateChecker extends Object

Title: SimulationStateChecker

Description: this class is used to check the state of the model

Author:
Francesco D'Aquino Date: 7-nov-2005 Time: 12.22.37
  • Constructor Details

  • Method Details

    • initialize

      public void initialize()
      Initializes the stationMap and classMap variable. It realizes a mapping between the representation of classes and servers at CommonModel level (by a Key) and the representation at engine level
    • getModelState

      public void getModelState()
      Gets the number of residence jobs in each station and fills the serversContent HashMap
    • print

      public void print()
      Used only for test purpose
    • forceDraw

      public void forceDraw() throws Exception
      Calls the draw method to draw queues and utilizations.
      Throws:
      Exception - if the representation cannot be drawn
    • forceRepaint

      public void forceRepaint()
      Forces mediator to repaint the JGraph
    • isInitialized

      public boolean isInitialized()
      Check for the state of SimulationStateChecker
      Returns:
      true if SimulationStateChecker has been initialized
    • getServersContent

      public ModelSnapshot getServersContent()
    • setServersContent

      public void setServersContent(ModelSnapshot serversContent)
    • getServersUtilization

      public ModelSnapshot getServersUtilization()
    • setServersUtilization

      public void setServersUtilization(ModelSnapshot serversUtilization)