|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.simulation.Profile
The primary configuration object for the simulation environment, Profile
is analogous to the Unix user configuration profile. It contains user preferences
and references to the working set(s) of components for the simulation. The
Profile is backed by an xml file that describes initial values and
states for Profile objects.
URL,
Locale,
TimeZone,
Chronometer,
Atlas,
Document,
Element| Constructor Summary | |
Profile(org.w3c.dom.Document document,
java.net.URL codeBase)
Construct a Profile initialized from the argument
xml Document |
|
Profile(java.lang.String name,
java.net.URL codeBase)
Construct a Profile |
|
Profile(java.net.URL codeBase)
Construct a Profile |
|
| Method Summary | |
void |
addProfileListener(ProfileListener listener)
Add a listener to this profile |
void |
closeAtlas(java.net.URL url)
Remove the Atlas that cooresponds to the URL
from the profile's working set. |
protected void |
fireProfileEvent(int id,
java.lang.Object arg)
Deliver events to the listeners |
org.w3c.dom.Element |
getActiveViewpoint()
Return the Element that describes the current active viewpoint |
Atlas |
getAtlas(java.net.URL url)
Return the Atlas that matches the url key string |
Atlas |
getAtlas(java.net.URL url,
boolean createIfNull)
Return the Atlas that matches the url key string |
java.util.List |
getAtlasList()
Return the List of the profile's atlases. |
java.util.Map |
getAtlasMap()
Return the Map of the profile's atlases. |
Chronometer |
getChronometer()
Return the Chronometer |
java.net.URL |
getCodeBase()
Return the base URL |
org.w3c.dom.Document |
getDocument()
Return the xml Document that describes the state and references
of the profile's objects. |
org.w3c.dom.Element |
getHomeViewpoint()
Return the Element that describes the home viewpoint |
java.util.Locale |
getLocale()
Return the Locale |
java.lang.String |
getName()
Return the name of the profile |
java.util.TimeZone |
getTimeZone()
Return the TimeZone |
boolean |
isDefaultLocale()
Return a flag indicating that the profile's locale is also the system default locale. |
boolean |
isDefaultTimeZone()
Return a flag indicating that the profile's timezone is also the system default timezone. |
void |
openAtlas(java.net.URL url,
Atlas atlas)
Add the argument Atlas to the profile's working set. |
void |
removeProfileListener(ProfileListener listener)
Remove a listener from this profile |
void |
setActiveViewpoint(java.net.URL atlasURL,
org.w3c.dom.Element viewpoint)
Set the Element that describes the current active viewpoint |
void |
setDefaultLocale()
Set the profile's locale to the system default locale. |
void |
setDefaultTimeZone()
Set the profile's timezone to the system default timezone. |
void |
setHomeViewpoint(java.net.URL atlasURL,
org.w3c.dom.Element viewpoint)
Set the Element that describes the home viewpoint |
void |
setLocale(java.util.Locale locale)
Set the Locale |
void |
setName(java.lang.String name)
Set the name of the profile |
void |
setTimeZone(java.util.TimeZone timezone)
Set the TimeZone |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Profile(java.net.URL codeBase)
Profile
codeBase - the URL that functions as the base from which
the configuration and simulation components can be loaded.
public Profile(java.lang.String name,
java.net.URL codeBase)
Profile
name - the name of the profile.codeBase - the URL that functions as the base from which
the configuration and simulation components can be loaded.
public Profile(org.w3c.dom.Document document,
java.net.URL codeBase)
Profile initialized from the argument
xml Document
document - the xml Document containing the initial
states and references.codeBase - the URL that functions as the base from which
the configuration and simulation components can be loaded.| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the profilepublic java.net.URL getCodeBase()
URL
URLpublic Chronometer getChronometer()
Chronometer
Chronometerpublic java.util.Locale getLocale()
Locale
Localepublic void setLocale(java.util.Locale locale)
Locale
locale - the Localepublic boolean isDefaultLocale()
true if the profile's locale is also
the system default locale, falsepublic void setDefaultLocale()
public java.util.TimeZone getTimeZone()
TimeZone
TimeZonepublic void setTimeZone(java.util.TimeZone timezone)
TimeZone
timezone - the TimeZonepublic boolean isDefaultTimeZone()
true if the profile's timezone is also
the system default timezone, falsepublic void setDefaultTimeZone()
public org.w3c.dom.Element getHomeViewpoint()
Element that describes the home viewpoint
Element that describes the home viewpoint
public void setHomeViewpoint(java.net.URL atlasURL,
org.w3c.dom.Element viewpoint)
Element that describes the home viewpoint
atlasURL - the URL of the Atlas that contains
the home viewpointviewpoint - the viewpoint Elementpublic org.w3c.dom.Element getActiveViewpoint()
Element that describes the current active viewpoint
Element that describes the current active viewpoint
public void setActiveViewpoint(java.net.URL atlasURL,
org.w3c.dom.Element viewpoint)
Element that describes the current active viewpoint
atlasURL - the URL of the Atlas that contains
the current active viewpointviewpoint - the viewpoint Elementpublic java.util.Map getAtlasMap()
Map of the profile's atlases. The atlases in
the map are keyed by URL.
Map of the profile's atlasespublic java.util.List getAtlasList()
List of the profile's atlases.
List of the profile's atlasespublic Atlas getAtlas(java.net.URL url)
Atlas that matches the url key string
url - the URL that describes the atlas's source
Atlas that matches the url key string or
null if a match is not found.
public Atlas getAtlas(java.net.URL url,
boolean createIfNull)
Atlas that matches the url key string
url - the URL that describes the atlas's sourcecreateIfNull - flag indicating that a new empty atlas should be created and
returned if one does not already exist. Otherwise, null will be returned.
Atlas that matches the url key string
public void openAtlas(java.net.URL url,
Atlas atlas)
Atlas to the profile's working set.
url - the URL that describes the atlas's sourceatlas - the atlas.public void closeAtlas(java.net.URL url)
Atlas that cooresponds to the URL
from the profile's working set.
url - the URL that describes the atlas's sourcepublic org.w3c.dom.Document getDocument()
Document that describes the state and references
of the profile's objects.
public void addProfileListener(ProfileListener listener)
listener - the listener to addpublic void removeProfileListener(ProfileListener listener)
listener - the listener to remove
protected void fireProfileEvent(int id,
java.lang.Object arg)
id - the event IDarg - the ProfileEvent argument Object
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||