Class SimulationStateChecker
java.lang.Object
jsimgraph.controller.SimulationStateChecker
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the draw method to draw queues and utilizations.voidForces mediator to repaint the JGraphvoidGets the number of residence jobs in each station and fills the serversContent HashMapvoidInitializes the stationMap and classMap variable.booleanCheck for the state of SimulationStateCheckervoidprint()Used only for test purposevoidsetServersContent(ModelSnapshot serversContent) voidsetServersUtilization(ModelSnapshot serversUtilization)
-
Constructor Details
-
SimulationStateChecker
-
-
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
-
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
-
setServersContent
-
getServersUtilization
-
setServersUtilization
-