public abstract class SimuApplet extends java.applet.Applet implements java.awt.event.ActionListener, java.awt.event.ItemListener, SimuParams
Modifier and Type | Class and Description |
---|---|
(package private) class |
SimuApplet.InfoWindow |
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
affichages
liste des possibilités d'affichage (Vector of Affichage)
|
(package private) java.util.Vector |
champs |
(package private) java.awt.Choice |
chxens |
protected ListeValeurs |
ensembles
liste des ensembles de valeurs par défaut
|
protected java.util.Vector |
inparams
liste des paramètres d'entrée (Vector of ParamIn)
|
(package private) int |
noaff |
(package private) java.lang.String |
nomFichierXML |
protected java.util.Vector |
outparams
liste des paramètres de sortie (Vector of ParamOut)
|
(package private) SimuParams |
params |
(package private) java.awt.ScrollPane |
scrollp |
(package private) java.lang.String |
selens |
protected java.lang.String |
titreEnsembles
titre des ensembles de valeurs
|
(package private) xml.XMLTree |
xmlDoc |
(package private) TypeAffichage |
za |
Constructor and Description |
---|
SimuApplet() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Traitement des actions de l'utilisateur
|
void |
addAffichage(Affichage p)
ajoute une option d'affichage à la liste
|
void |
addEnsemble(java.lang.String nom,
ListeValeurs l)
ajoute un ensemble de valeurs
|
void |
addParamIn(ParamIn p)
ajoute un paramètre d'entrée à la liste
|
void |
addParamOut(ParamOut p)
ajoute un paramètre de sortie à la liste
|
void |
aideParam(int nop)
Affiche l'aide pour le paramètre indiqué à partir du fichier XML.
|
void |
appletDoc(java.lang.String nomFichier)
Spécifie le fichier XML avec la définition des paramètres et des affichages.
|
ListeValeurs |
calcul(ListeValeurs in)
Calcul complet.
|
ListeValeurs |
calculLive()
Calcul du temps t au temps t+1.
|
void |
changerValeurs(ListeValeurs l) |
TypeAffichage |
creationTypeAffichage(Affichage aff,
boolean sousaff) |
void |
dormir(long nms)
pour bloquer le programme pendant nms millisecondes
|
java.util.Vector |
getAffichage()
renvoit la liste des possibilités d'affichage (Vector of Affichage)
|
Affichage |
getAffichage(java.lang.String label)
renvoit l'affichage avec le label donné
|
Affichage |
getAffichageChoisi()
renvoit l'affichage choisi par l'utilisateur
|
static double |
getDouble(java.lang.String sd)
renvoit le double correspondant au String
|
java.util.Vector |
getInParams()
renvoit la liste des paramètres d'entrée (Vector of ParamIn)
|
java.util.Vector |
getOutParams()
renvoit la liste des paramètres de sortie (Vector of ParamOut)
|
void |
handleException(SimuException ex)
Traitement d'une erreur
|
void |
init()
Initialisation de l'applet
|
void |
initCalculLive(ListeValeurs in)
Initialisation du calcul en temps réel.
|
void |
initParams()
Affichage de la fenêtre et appel la lecture du fichier de configuration
|
void |
itemStateChanged(java.awt.event.ItemEvent e) |
Affichage |
lireAffichage(xml.XMLTree noeud_affichage)
Parcours récursif des paramètres d'affichages
|
protected java.lang.String |
lireAideParam(ParamIn param)
Renvoit l'aide pour le paramètre indiqué à partir du fichier XML,
ou null s'il n'y a pas d'aide pour ce paramètre
|
ListeValeurs |
lireChamps()
Lecture des champs des paramètres d'entrée
|
void |
lireListeRefParams(xml.XMLTree noeud_affichage,
Affichage affichage) |
void |
lireParametres()
Lit les paramètres spécifiés dans le fichier XML
|
void |
lireXML() |
java.awt.Panel |
makeInputPanel(ListeValeurs in)
Création de la zone avec les paramètres d'entrée
|
void |
parcourirParametreAffichage(xml.XMLTree noeud_affichage,
Affichage affichage)
Sert à lire les attributs d'un paramètre d'affichage
|
void |
setParams()
Cette méthode défini la sous-classe de SimuParams contenant l'algorithme de
la simulation.
|
void |
setTitreEnsembles(java.lang.String titre)
Définit le titre des ensembles de valeurs
|
void |
startSimu(boolean init)
Lancement de la simulation
|
static java.lang.String[] |
titresAxes(Affichage aff,
java.util.Vector outp)
titres des axes
|
protected boolean |
verifExistenceAide(ParamIn param)
Vérifie l'existence de l'aide dans le ficher de configuration XML
|
protected void |
verifParametres(Affichage aff,
java.util.Vector outp)
vérification que les paramètres de l'affichage sont tous déclarés comme ParamOut
|
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
SimuParams params
java.util.Vector champs
int noaff
TypeAffichage za
java.awt.Choice chxens
java.lang.String selens
java.lang.String nomFichierXML
xml.XMLTree xmlDoc
java.awt.ScrollPane scrollp
protected java.util.Vector inparams
protected java.util.Vector outparams
protected java.util.Vector affichages
protected ListeValeurs ensembles
protected java.lang.String titreEnsembles
public void setParams()
public void init()
init
in class java.applet.Applet
public java.awt.Panel makeInputPanel(ListeValeurs in)
public void initParams()
public void lireParametres()
public Affichage lireAffichage(xml.XMLTree noeud_affichage)
public void lireListeRefParams(xml.XMLTree noeud_affichage, Affichage affichage)
public void parcourirParametreAffichage(xml.XMLTree noeud_affichage, Affichage affichage)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void changerValeurs(ListeValeurs l) throws SimuException
SimuException
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void handleException(SimuException ex)
public ListeValeurs lireChamps() throws SimuException
SimuException
protected void verifParametres(Affichage aff, java.util.Vector outp)
public void startSimu(boolean init)
public TypeAffichage creationTypeAffichage(Affichage aff, boolean sousaff) throws SimuException
SimuException
public static java.lang.String[] titresAxes(Affichage aff, java.util.Vector outp)
protected java.lang.String lireAideParam(ParamIn param)
public void aideParam(int nop)
protected boolean verifExistenceAide(ParamIn param)
public static double getDouble(java.lang.String sd)
public void dormir(long nms)
public java.util.Vector getInParams()
getInParams
in interface SimuParams
public java.util.Vector getOutParams()
getOutParams
in interface SimuParams
public java.util.Vector getAffichage()
getAffichage
in interface SimuParams
public Affichage getAffichage(java.lang.String label)
getAffichage
in interface SimuParams
public Affichage getAffichageChoisi()
public void addParamIn(ParamIn p)
addParamIn
in interface SimuParams
public void addParamOut(ParamOut p)
addParamOut
in interface SimuParams
public void addAffichage(Affichage p)
public void addEnsemble(java.lang.String nom, ListeValeurs l)
addEnsemble
in interface SimuParams
public void setTitreEnsembles(java.lang.String titre)
setTitreEnsembles
in interface SimuParams
public void appletDoc(java.lang.String nomFichier)
appletDoc
in interface SimuParams
public void lireXML()
public void initCalculLive(ListeValeurs in) throws SimuException
SimuParams
initCalculLive
in interface SimuParams
SimuException
public ListeValeurs calculLive() throws SimuException
SimuParams
calculLive
in interface SimuParams
SimuException
public ListeValeurs calcul(ListeValeurs in) throws SimuException
SimuParams
calcul
in interface SimuParams
SimuException