venice
Class AppModule
java.lang.Object
|
+--venice.AppModule
- public class AppModule
- extends java.lang.Object
AppModule holds the whole Venice system together. It has instances
of both the ModelStorage
and GUI
.
AppModule can be constructed in two ways. Either in application mode
or in applet mode. When it is constructed in applet mode, it will
resrict its functionality and tell its subsystems do to the same.
Applets most often will not be allowed to access the local file system,
so commands involving that are left out. The applet mode is meant for
viewing models, not editing them.
- Author:
- Petteri Kamppuri
Constructor Summary |
AppModule(boolean inIsApplet)
Sole constructor. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
mGui
private GUI mGui
- Private
GUI
instance.
mModelStorage
private ModelStorage mModelStorage
- Private
ModelStorage
instance.
AppModule
public AppModule(boolean inIsApplet)
- Sole constructor. This constructor instantiates and
initializes GUI and ModelStorage. The produced GUI
will have different functionality depending on whether
AppModule (and GUI) are instantiated as an Applet or not.
- Parameters:
inIsApplet
- whether to initialize this instance as an Applet
getGui
public GUI getGui()
- Returns the current
GUI
instance.
Users should not try to save the returned value,
but should always query it when needed.
- Returns:
- current GUI instance
getModelStorage
public ModelStorage getModelStorage()
- Returns the current
ModelStorage
instance.
Users should not try to save the returned value,
but should always query it when needed.
- Returns:
- current ModelStorage instance