org.colos.ejs.library.collaborative
Class SimulationCollaborative

java.lang.Object
  extended by org.colos.ejs.library.Animation
      extended by org.colos.ejs.library.Simulation
          extended by org.colos.ejs.library.collaborative.SimulationCollaborative
All Implemented Interfaces:
java.lang.Runnable, LocaleListener

public class SimulationCollaborative
extends Simulation

A base class for a simulation collaborative


Field Summary
 
Fields inherited from class org.colos.ejs.library.Simulation
ejsRes
 
Fields inherited from class org.colos.ejs.library.Animation
MAXIMUM_FPS, MINIMUM_DELAY, MINIMUM_FPS
 
Constructor Summary
SimulationCollaborative()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void apply(java.lang.String _variable)
          apply a single change in the user interface
 void connectControls()
           
 void disconnectControls()
           
 boolean getChalk()
           
 boolean getIsPlaying()
           
 boolean getStudentSim()
           
 java.lang.String getVariables()
           
 void initialize()
          Initialize model using user interface changes
 void pause()
          Stops the animation.
 void reset()
          Resets the simulation to a complete initial state
 void runExperiment(Experiment _experiment)
           
 void runExperimentCol(int i)
           
 void setArgsCol(java.lang.String[] _argsCol)
           
 void setChalk(boolean value)
           
 void setExperimentCol(java.lang.String _exp)
           
 void setIsPlaying(boolean value)
           
 void setIsThereChalk(boolean value)
           
 void setIsThereTeacher(boolean value)
           
 void setParamDialog(java.lang.String paramServerP, java.lang.String paramPortP)
           
 void setStudentSim(boolean value)
           
 void setTeacherSim(boolean value)
           
 void startColMethod()
           
 boolean startConfTeacherTool()
           
 boolean startQuestionStudentTool()
           
 void step()
          step
 void update()
          Updates the simulation
 void updateAfterModelAction()
           
 
Methods inherited from class org.colos.ejs.library.Simulation
addAvailableLocale, addDescriptionPage, addDescriptionPage, addElementMenuEntries, addMenuEntries, createExperiment, createHTMLpage, extractToDirectory, getAvailableLocales, getCodebase, getDescriptionPageURL, getEjsString, getExperiments, getHomeDir, getJarName, getLocale, getLocaleItem, getMainWindow, getParentComponent, getPathToLibrary, getPopupMenu, getPopupMenu, getResourceFile, getStateVariablesList, getTemporaryDir, getTopLevelComponent, getUserDir, getVariable, getVariable, getVariablesXML, getVariablesXML, getWindowsList, initEmersion, isEmersionConnected, isImageFormatSupported, killExperiment, openDescriptionPageInBrowser, openDescriptionPagesInBrowser, openURL, processArguments, readState, readState, readText, readText, readVariables, readVariables, readVariables, runExperiment, saveDefaultStateToJar, saveImage, saveImage, saveImageAs, saveState, saveText, saveText, saveVariables, saveVariables, setCodebase, setLocale, setLocaleItem, setParentComponent, setParentComponent, setPathToLibrary, setStateVariablesList, setStateVariablesList, setVariable, setVariable, setVariables, setVariables, showDescription, showDescription, showDescriptionAtStartUp, toArrayList, translateString, translateString
 
Methods inherited from class org.colos.ejs.library.Animation
apply, applyAll, freeSimulation, getDelay, getModel, getThreadGroup, getTopSimulation, getView, invokeMethodWhenIdle, isPaused, isPlaying, killAllSimulations, killSimulation, onExit, play, run, runSimulation, runSimulation, setAutoplay, setDelay, setFPS, setModel, setStepsPerDisplay, setUpdateView, setView, updateWhenIdle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationCollaborative

public SimulationCollaborative()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)

pause

public void pause()
Description copied from class: Animation
Stops the animation. Sets animationThread to null and waits for a join with the animation thread.

Overrides:
pause in class Animation

reset

public void reset()
Description copied from class: Animation
Resets the simulation to a complete initial state

Overrides:
reset in class Animation

initialize

public void initialize()
Description copied from class: Animation
Initialize model using user interface changes

Overrides:
initialize in class Animation

apply

public void apply(java.lang.String _variable)
Description copied from class: Animation
apply a single change in the user interface

Overrides:
apply in class Animation

update

public void update()
Description copied from class: Animation
Updates the simulation

Overrides:
update in class Animation

step

public void step()
Description copied from class: Animation
step

Overrides:
step in class Animation

updateAfterModelAction

public void updateAfterModelAction()
Overrides:
updateAfterModelAction in class Animation

runExperiment

public void runExperiment(Experiment _experiment)
Overrides:
runExperiment in class Simulation

startColMethod

public void startColMethod()

startConfTeacherTool

public boolean startConfTeacherTool()

runExperimentCol

public void runExperimentCol(int i)

setExperimentCol

public void setExperimentCol(java.lang.String _exp)

startQuestionStudentTool

public boolean startQuestionStudentTool()

disconnectControls

public void disconnectControls()

connectControls

public void connectControls()

setTeacherSim

public void setTeacherSim(boolean value)

setStudentSim

public void setStudentSim(boolean value)

getStudentSim

public boolean getStudentSim()

setIsPlaying

public void setIsPlaying(boolean value)

getIsPlaying

public boolean getIsPlaying()

getChalk

public boolean getChalk()

setChalk

public void setChalk(boolean value)

setIsThereChalk

public void setIsThereChalk(boolean value)

setIsThereTeacher

public void setIsThereTeacher(boolean value)

setArgsCol

public void setArgsCol(java.lang.String[] _argsCol)

setParamDialog

public void setParamDialog(java.lang.String paramServerP,
                           java.lang.String paramPortP)

getVariables

public java.lang.String getVariables()