|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.simulator.SimulationControl
public class SimulationControl
Permit to communicate with user interface from simulation thread. Created: Fri Oct 6 2000
| Field Summary | |
|---|---|
protected boolean |
autoSaveState
Control save mecanism each time a property is changed (default to false). |
protected Date |
date
|
protected java.lang.String |
id
|
protected boolean |
inUpdateFromProperties
|
protected java.beans.PropertyChangeSupport |
listeners
|
protected long |
progress
|
protected long |
progressMax
|
protected boolean |
running
|
protected SimulationStorage |
simulation
|
protected boolean |
started
|
protected boolean |
stop
|
protected java.lang.String |
text
|
| Constructor Summary | |
|---|---|
SimulationControl(java.lang.String id)
Init simulation control with simulation id. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
addPropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener l)
|
Date |
getDate()
Method getDate donne la date utiliser par la simulation. |
java.lang.String |
getId()
Method getId donne id de la simulation. |
long |
getProgress()
Get current progress. |
long |
getProgressMax()
|
java.util.Properties |
getProperties()
Met dans un Properties tous les champs |
SimulationStorage |
getSimulation()
Retourne la simulation associe a ce control |
java.lang.String |
getText()
|
boolean |
isAutoSaveState()
Get current auto save state. |
boolean |
isRunning()
Method running. |
boolean |
isStarted()
|
boolean |
isStopSimulationRequest()
Is stop request been asked. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
removePropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener l)
|
void |
reset()
Reset control values for job restart. |
void |
setAutoSaveState(boolean autoSaveState)
Change auto save state on property change. |
void |
setDate(Date d)
Modifie la date de la simulation. |
void |
setProgress(long progress)
Set current progress. |
void |
setProgressMax(long progressMax)
Set max progress. |
void |
setStarted(boolean started)
Appelee juste avant de reellement demarrer le thread de simulation indique que cette simulation est en cours et qu'il ne faut plus la lancer |
void |
setStopSimulationRequest(boolean val)
Demande l'arret de la simulation. |
void |
setText(java.lang.String text)
|
void |
startSimulation()
Appele lors du debut de la simulation. |
void |
stopSimulation()
Appele lors de la fin reelle de la simulation. |
void |
updateFromProperties(java.util.Properties props)
update current object from Properties representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.beans.PropertyChangeSupport listeners
protected boolean inUpdateFromProperties
protected transient SimulationStorage simulation
protected java.lang.String id
protected boolean started
protected boolean running
protected boolean stop
protected Date date
protected long progressMax
protected long progress
protected java.lang.String text
protected transient boolean autoSaveState
| Constructor Detail |
|---|
public SimulationControl(java.lang.String id)
id - simulation id| Method Detail |
|---|
public void setAutoSaveState(boolean autoSaveState)
autoSaveState - new statepublic boolean isAutoSaveState()
public void reset()
public SimulationStorage getSimulation()
public void addPropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener l)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.lang.String propName,
java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public boolean isStarted()
public void setStarted(boolean started)
started - The running to set.public boolean isRunning()
public void startSimulation()
public void stopSimulation()
public java.lang.String getText()
public void setText(java.lang.String text)
text - The text to set.public long getProgressMax()
public void setProgressMax(long progressMax)
progressMax - progressMax to set.public long getProgress()
public void setProgress(long progress)
progress - progress to set.public void setStopSimulationRequest(boolean val)
val - true to stoppublic boolean isStopSimulationRequest()
public java.lang.String getId()
public Date getDate()
public void setDate(Date d)
d - la nouvelle datepublic java.util.Properties getProperties()
public void updateFromProperties(java.util.Properties props)
props - new properties to update frompublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||