|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ohf.stem.ui.ge.GEInterface
public class GEInterface
Constructor Summary | |
---|---|
GEInterface(GEView geView)
Constructor. |
Method Summary | |
---|---|
boolean |
displayArea(java.lang.String adminFile,
java.lang.String search,
boolean clear)
called by GEView to display the current map for a specific admin area. |
boolean |
displayMap(ISimulation simulation)
called by GEView to display the current map This version sets a switch to cause a display on the next cycle if simulation or now if paused. |
void |
displayStatus()
display status. |
void |
dispose()
Called by GEView.dispose() |
Aspect |
getAspectToDisplay(ISimulation sim)
Get the SEIR value to be displayed from user. |
int |
getCycle(ISimulation sim)
|
Aspect |
getDefaultAspect()
|
java.lang.String |
getErrorMessage()
|
static java.lang.String |
getSimulationId(ISimulation simulation)
Get the ID to use for getting the GESimEntry instance |
boolean |
init()
called by GEView to do any initialization after we have setup the GUI environment It will startup the servlet web server if possible |
boolean |
isActive(ISimulation sim)
Check if the specified simulation is actively being listened to. |
boolean |
isActiveView(ISimulation sim)
Check if the specified simulation is the simulation being viewed by GoogleEarth |
boolean |
restartGE()
called by GEView when the GoogleEarth application is being restarted. |
boolean |
runGE(java.lang.String folder)
called by GEView to display the KML files on GE via the Servlet API |
boolean |
setActive(ISimulation sim,
boolean active)
Set the logging for the specified simulation. |
void |
setAspectToDisplay(ISimulation sim,
Aspect aspect)
Set the SEIR value that wwe want displayed. |
void |
setDefaultAspect(Aspect defaultAspect)
|
void |
setErrorMessage(java.lang.String msg)
Set an error message to display |
void |
simulationChanged(SimulationEvent event)
Listener for events that happen in a specific Simulation. |
void |
simulationsChanged(SimulationManagerEvent event)
We get here because we are listening for SimulationsChanged events from the Simulation Manager and one occured. |
boolean |
startGE()
called by GEView to start the GoogleEarth application if not already started |
boolean |
stopGE()
called by GEView to stop the current display the KML files on GE via the Servlet API |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GEInterface(GEView geView)
geView
- GUI class that is invoking us.Method Detail |
---|
public boolean init()
public void simulationsChanged(SimulationManagerEvent event)
simulationsChanged
in interface ISimulationManagerListener
event
- the event that records what happened to the manager.public void dispose()
public void simulationChanged(SimulationEvent event)
This gets called for the following event states
SimulationState: RUNNING
COMPLETED_CYCLE
PAUSED
We are interested in Completed_Cycle
- Specified by:
simulationChanged
in interface ISimulationListener
- Parameters:
event
- the event that records what happened to the manager.
public boolean displayArea(java.lang.String adminFile, java.lang.String search, boolean clear)
adminFile
- File that contains desired datasearch
- String that is matched against area idclear
- If true then clear the existing map
public boolean displayMap(ISimulation simulation)
simulation
- The currently selected Simulation
public boolean runGE(java.lang.String folder)
folder
-
public boolean startGE()
public boolean restartGE()
public boolean stopGE()
public boolean isActive(ISimulation sim)
sim
-
public boolean isActiveView(ISimulation sim)
sim
-
public boolean setActive(ISimulation sim, boolean active)
sim
- Simulation instance being activated
(or deactivated)active
- set true to write file,
set false to bypass write
public void setAspectToDisplay(ISimulation sim, Aspect aspect)
sim
- Simulation instanceaspect
- the sEIRValue to setpublic Aspect getAspectToDisplay(ISimulation sim)
sim
- Simulation instance
public void displayStatus()
public static java.lang.String getSimulationId(ISimulation simulation)
simulation
-
public Aspect getDefaultAspect()
public void setDefaultAspect(Aspect defaultAspect)
defaultAspect
- the defaultAspect to setpublic void setErrorMessage(java.lang.String msg)
msg
- public java.lang.String getErrorMessage()
public int getCycle(ISimulation sim)
sim
- Simulation that is being processed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |