graphics2.panel.client
Class ClientPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--graphics2.panel.client.ClientPanel
All Implemented Interfaces:
javax.accessibility.Accessible, ClientInfo, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ClientPanel
extends javax.swing.JPanel
implements ClientInfo

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 ModelsListPanel modelsListPanel
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ClientPanel(GestionTest gestionTest)
          A ClientPanel is associated to GestionTest
 
Method Summary
 void displayScenario(java.lang.String scname)
           
 void freezeInfo(boolean b)
           
 java.lang.String getCodecName()
           
 java.lang.String[] getCodecParam()
          Returns codec parameters
 short getDuration()
          Returns test duration specified in the GUI in minutes
 GestionTest getGestionTest()
           
 ConfigurationXMLFile getListScenario()
           
 java.util.Hashtable getListVideo()
           
 ModelPanel getModelPanel()
           
 java.lang.String[] getModelParam()
           
 GenericAggregatedModel getModelTest()
           
 java.lang.String getModelTestName()
           
 int getParameterNb()
           
static void main(java.lang.String[] args)
          Methode main destinee a tester la methode
 void makeLists()
           
 void reset()
           
 void setCodecName(java.lang.String codec)
           
 void setCodecParam(java.lang.String[] params)
          Method setCodecParam
 void setDuration(short duration)
           
 void setModelParam(java.lang.String[] params)
          Method setModelParam.
 void setModelTest(java.lang.String modelName)
           
 void setModelTestName(java.lang.String modelName)
           
 void updateResultMinutes()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modelsListPanel

public ModelsListPanel modelsListPanel
Constructor Detail

ClientPanel

public ClientPanel(GestionTest gestionTest)
A ClientPanel is associated to GestionTest

Method Detail

makeLists

public void makeLists()

getListScenario

public ConfigurationXMLFile getListScenario()

getModelPanel

public ModelPanel getModelPanel()

getGestionTest

public GestionTest getGestionTest()

setModelTest

public void setModelTest(java.lang.String modelName)

setModelTestName

public void setModelTestName(java.lang.String modelName)
Specified by:
setModelTestName in interface ClientInfo

getModelTest

public GenericAggregatedModel getModelTest()

setCodecName

public void setCodecName(java.lang.String codec)
                  throws java.lang.IllegalArgumentException
Specified by:
setCodecName in interface ClientInfo
java.lang.IllegalArgumentException

getCodecName

public java.lang.String getCodecName()
Specified by:
getCodecName in interface ClientInfo

setDuration

public void setDuration(short duration)
                 throws java.lang.NumberFormatException
Specified by:
setDuration in interface ClientInfo
java.lang.NumberFormatException

getDuration

public short getDuration()
                  throws java.lang.NumberFormatException
Returns test duration specified in the GUI in minutes

Specified by:
getDuration in interface ClientInfo
java.lang.NumberFormatException
See Also:
graphics.ClientInfo#getDuration()

getModelTestName

public java.lang.String getModelTestName()
Specified by:
getModelTestName in interface ClientInfo
See Also:
graphics.ClientInfo#getModelTestName()

getModelParam

public java.lang.String[] getModelParam()
Specified by:
getModelParam in interface ClientInfo
Returns:
a table of String with each parameter
See Also:
-MMPP2: start-state alpha beta lambda1 lambda2 -MMPPN: start-state states-number alpha beta lambda -MGInf: function name b lambda distribName1: amount of data distribName2: data distrib distribName3: packet size distrib parameter(s) distrib1 parameter(s) distrib2 parameter(s) distrib3 -MGInfComplex: mixed function? functions weightfunction(s) name parameter(s) b lambda mixed distribution1?,2?,3? distrib 1,2,3 weight distribName(s)1: amount of data,2: data distrib,3: packet size distrib parameter(s) distrib(s)1,2,3) -OnOff: start-statedistribName1: talkspurt length distribName2: idle period parameter(s) distrib1 parameter(s) distrib2 -OnOffOnOffHeterogeneousAggregatedFlow: flow type number and for each flow: sources number OnOff model parameters | -MGInfComplexAggregatedFlow: flow type number and for each flow: a video definition

setModelParam

public void setModelParam(java.lang.String[] params)
                   throws java.lang.IllegalArgumentException
Method setModelParam.

Specified by:
setModelParam in interface ClientInfo
Parameters:
params - -MMPP2: start-state alpha beta lambda1 lambda2 -MMPPN: start-state states-number alpha beta lambda -MGInf: function name b lambda distribName1: amount of data distribName2: data distrib distribName3: packet size distrib parameter(s) distrib1 parameter(s) distrib2 parameter(s) distrib3 -MGInfComplex: mixed function? functions weightfunction(s) name parameter(s) b lambda mixed distribution1?,2?,3? distrib 1,2,3 weight distribName(s)1: amount of data,2: data distrib,3: packet size distrib parameter(s) distrib(s)1,2,3) -OnOff: start-statedistribName1: talkspurt length distribName2: idle period parameter(s) distrib1 parameter(s) distrib2 -OnOffOnOffHeterogeneousAggregate: flows number and for each flow: sources number OnOff model parameters -MGInfComplexAggregatedFlow: flow type number and for each flow: a video definition
java.lang.IllegalArgumentException

setCodecParam

public void setCodecParam(java.lang.String[] params)
                   throws java.lang.IllegalArgumentException
Method setCodecParam

Specified by:
setCodecParam in interface ClientInfo
java.lang.IllegalArgumentException
See Also:
graphics.ClientInfo#setCodecParam(String[])

getCodecParam

public java.lang.String[] getCodecParam()
Returns codec parameters

Specified by:
getCodecParam in interface ClientInfo
See Also:
graphics.ClientInfo#getCodecParam()

getParameterNb

public int getParameterNb()

getListVideo

public java.util.Hashtable getListVideo()

displayScenario

public void displayScenario(java.lang.String scname)

freezeInfo

public void freezeInfo(boolean b)
Specified by:
freezeInfo in interface ClientInfo

reset

public void reset()
Specified by:
reset in interface ClientInfo

updateResultMinutes

public void updateResultMinutes()

main

public static void main(java.lang.String[] args)
Methode main destinee a tester la methode