Class ResultsPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jmt.framework.gui.wizard.WizardPanel
jmt.jmch.wizard.panels.JMCHWizardPanel
jmt.jmch.wizard.panels.resultsPanel.ResultsPanel
- All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
- Direct Known Subclasses:
ResultsPanelRouting, ResultsPanelScheduling
Panel for showing the results of the simulations.
This main class contains only the different ways of adding new results to the tables.
The *real* tables are inside the subclasses of this class.
- Author:
- Lorenzo Torri Date: 15-jul-2024 Time: 10.53
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected intprotected String[]protected int[]protected HoverHelpprotected double[]protected double[]protected int[]protected double[]protected double[]protected int[]protected String[]protected double[]protected ImageIconprotected JLabelprotected double[]protected String[]Fields inherited from class JMCHWizardPanel
parentFields inherited from class WizardPanel
parentWizardFields inherited from class JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nQueues, double responseTime, double thoughput, double nCustomer) Method called by the MainWizard to update the Result Panel for ROUTINGvoidaddResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nServers, double service, double responseTime, double queueTime, double thoughput, double nCustomer) Method called by the MainWizard to update the Result Panel for SCHEDULINGbooleanvoidString[]String[]int[]double[]getName()int[]int[]double[]double[]double[]String[]double[]double[]String[]voidvoidcalled by the Wizard before when switching to another panelvoidvoidSets the results of previous analysisvoidupdateResult(int generatedJob, double responseTime, double queueTime, double thoughput, double nCustomer) Update the result of the ANIMSimulationMethods inherited from class JMCHWizardPanel
about, decreaseVelocity, exit, increaseVelocity, nextStepAnimation, pauseAnimation, reloadAnimation, startAnimation, stopAnimationMethods inherited from class WizardPanel
canFinish, canGoForward, getParentWizard, gotFocus, help, redraw, setParentWizardMethods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
help
-
statusResults
-
statusResultsLabel
-
typeOfResult
-
generatedJobs
protected int[] generatedJobs -
algorithms
-
arrivalDistibutions
-
lambdas
protected double[] lambdas -
serviceDistributions
-
serversNumber
protected int[] serversNumber -
queuesNumber
protected int[] queuesNumber -
services
protected double[] services -
responseTimes
protected double[] responseTimes -
queueTimes
protected double[] queueTimes -
thoughputs
protected double[] thoughputs -
nCustomers
protected double[] nCustomers -
classOps
-
animRow
protected int animRow
-
-
Constructor Details
-
ResultsPanel
-
-
Method Details
-
getName
- Overrides:
getNamein classJMCHWizardPanel- Returns:
- the panel's name
-
addResult
public void addResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nServers, double service, double responseTime, double queueTime, double thoughput, double nCustomer) Method called by the MainWizard to update the Result Panel for SCHEDULING- Parameters:
typeOfResult- if the result is the one from JSIM or from the AnimationgeneratedJob- the number of jobs used for this resultalgorithm- queue algorithm of the animationarrivalDistr- arrival time distributionlambda- the inter arrival timeserviceDistr- service time distributionnServers- number of servers in the stationservice- service timeresponseTime- response timequeueTime- queue timethoughput- thoughputnCustomer- customer numbers
-
addResult
public void addResult(String typeOfResult, int generatedJob, String algorithm, String arrivalDistr, double lambda, String serviceDistr, int nQueues, double responseTime, double thoughput, double nCustomer) Method called by the MainWizard to update the Result Panel for ROUTING- Parameters:
typeOfResult- if the result is the one from JSIM or from the AnimationgeneratedJob- the number of jobs used for this resultalgorithm- routing algorithm of the animationarrivalDistr- arrival time distributionlambda- the inter arrival timeserviceDistr- service time distributionnQueues- number of queues reachableresponseTime- response time of the systemthoughput- thoughput of the systemnCustomer- customer numbers of the system
-
updateResult
public void updateResult(int generatedJob, double responseTime, double queueTime, double thoughput, double nCustomer) Update the result of the ANIMSimulation- Parameters:
responseTime-queueTime-thoughput-nCustomer-
-
loadingResult
public void loadingResult() -
endResult
public void endResult() -
setResults
Sets the results of previous analysis -
canGoBack
public boolean canGoBack()- Overrides:
canGoBackin classWizardPanel- Returns:
- true if it is ok for the wizard to go back. It is ok for the queried panel to pop up a message box explaining why it cannot go back.
-
setLastPanel
public void setLastPanel()- Overrides:
setLastPanelin classJMCHWizardPanel
-
lostFocus
public void lostFocus()Description copied from class:WizardPanelcalled by the Wizard before when switching to another panel- Overrides:
lostFocusin classWizardPanel
-
getTypeOfResult
-
getGeneratedJobs
public int[] getGeneratedJobs() -
getAlgorithms
-
getArrivalDistirbutions
-
getLambdas
public double[] getLambdas() -
getServiceDistributions
-
getNservers
public int[] getNservers() -
getNQueues
public int[] getNQueues() -
getServiceTimes
public double[] getServiceTimes() -
getResponseTimes
public double[] getResponseTimes() -
getThroughputs
public double[] getThroughputs() -
getQueueTimes
public double[] getQueueTimes() -
getNumberOfCustomers
public double[] getNumberOfCustomers()
-