Jeospace API

org.jeospace.simulation
Class Executive

java.lang.Object
  extended byorg.jeospace.simulation.Executive
All Implemented Interfaces:
AtlasListener, java.util.EventListener, ProfileListener

public class Executive
extends java.lang.Object
implements ProfileListener, AtlasListener

The Executive is the simulation configuration manager.

The primary functions of the Executive are:

The main class handles the creation and manipulation of the core configuration as defined by the 'systemProfile'. This includes the creation of the root SystemNode and the loading of the base set of geometry, etc.

After establishing the base simulation platform, The executive is available to support a user configuration defined by the 'userProfile'. The executive manages the event driven configuration changes to the configuration objects - the user profile and the user profile's collection of atlases.

Subordinates of the Executive, the ChronManager & the SimManager handle the time base of the simulation and the visualization and navigation portions of the simulation respectively.

Version:
$Revision: 1.3 $
Author:
Rex Melton
See Also:
Profile, ChronManager, SimManager

Constructor Summary
Executive(org.web3d.x3d.sai.ExternalBrowser browser, Profile systemProfile, java.net.URL workspace)
          Constructor
 
Method Summary
 void atlasChanged(AtlasEvent ae)
          The Atlas Event Listener
static ChronManager getChronManager()
          Return the reference to the Chronometer Manager
static Executive getInstance()
          Return the reference to the Executive
static SimManager getSimManager()
          Return the reference to the Simulation Manager
 void profileChanged(ProfileEvent pe)
          The Profile Event Listener
 void setActiveProfile(Profile profile)
          Set the active user profile
 void setBrowser(org.web3d.x3d.sai.ExternalBrowser newBrowser)
          Initialize the simulation's visualization capabilities utilizing the argument X3D Browser object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Executive

public Executive(org.web3d.x3d.sai.ExternalBrowser browser,
                 Profile systemProfile,
                 java.net.URL workspace)
Constructor

Parameters:
browser - The X3D Browser object providing the visualization capabilities. A null value means that the simulation will start without visualization.
systemProfile - The base Profile configuration object.
workspace - The URL of the application's working home.
Method Detail

getInstance

public static Executive getInstance()
Return the reference to the Executive

Returns:
the reference to the Executive

getSimManager

public static SimManager getSimManager()
Return the reference to the Simulation Manager

Returns:
the reference to the Simulation Manager

getChronManager

public static ChronManager getChronManager()
Return the reference to the Chronometer Manager

Returns:
the reference to the Chronometer Manager

setBrowser

public void setBrowser(org.web3d.x3d.sai.ExternalBrowser newBrowser)
Initialize the simulation's visualization capabilities utilizing the argument X3D Browser object.

Parameters:
newBrowser - The X3D browser object for displaying the visualization of the simulation. A null value will stop any currently running visualization.

profileChanged

public void profileChanged(ProfileEvent pe)
The Profile Event Listener

Specified by:
profileChanged in interface ProfileListener
Parameters:
pe - The ProfileEvent

atlasChanged

public void atlasChanged(AtlasEvent ae)
The Atlas Event Listener

Specified by:
atlasChanged in interface AtlasListener
Parameters:
ae - The

setActiveProfile

public void setActiveProfile(Profile profile)
Set the active user profile

Parameters:
profile - The new active profile

Jeospace API

Copyright © 2006 - jeospace.org