|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--mil.af.afit.router.Kernel
The Kernel
is the main point of contact between higher level
applications like mapping software and the data storage and routing abilities
of this software. The Kernel
maintains the lists of sites, vehicles
bases, solutions, etc. and allows interested Observer
s to listen
for changes. The Kernel
maintains the points of contact for starting
the solving process.
SiteList
,
VehicleList
,
BaseList
,
RestrictedOperatingZoneList
,
PriorityModelList
,
SolutionList
,
WindList
,
Site
,
Vehicle
,
Base
,
RestrictedOperatingZone
,
PriorityModel
,
Solution
,
Wind
,
Preferences
, Serialized FormConstructor Summary | |
Kernel()
Constructs a Kernel with empty lists and default preferences. |
Method Summary | |
static void |
err(java.lang.Exception e)
Used in debugging. |
BaseList |
getBaseList()
Returns the Base list. |
java.lang.Object |
getClientProperty(java.lang.String key)
Returns the object stored in the kernel's key entry
in its transient hashtable. |
Preferences |
getPrefs()
Returns the preferences |
PriorityModelList |
getPriorityModelList()
Returns the priority model list. |
RequirementsList |
getRequirementsList()
Returns the Requirements list. |
RestrictedOperatingZoneList |
getROZList()
Returns the restricted operating zones list. |
SiteList |
getSiteList()
Returns the site list. |
SolutionList |
getSolutionList()
Returns the Solution list. |
VehicleList |
getVehicleList()
Returns the Vehicle list. |
WindList |
getWindList()
Returns the Wind list. |
boolean |
isRunningAsApplet()
Returns whether or not the kernel is being run in an applet environment. |
boolean |
isRunningAsApplication()
Returns whether or not the kernel is being run in an application environment. |
static void |
out(java.lang.Object obj)
Used in debugging. |
void |
putClientProperty(java.lang.String key,
java.lang.Object thing)
Stores an object in the kernel's transient hashtable. |
void |
replace(Kernel newKernel)
Replaces this kernel with newKernel while maintaining the Observer s registered with all objects. |
void |
setPrefs(Preferences prefs)
Sets the Preferences object being used by the kernel and notifies registered Observer s of the change. |
void |
setRunningAsApplet()
Marks kernel as being run in an applet environment. |
void |
setRunningAsApplication()
Marks kernel as being run in an application environment. |
void |
startSolving()
Starts the kernel solving and immediately returns control. |
void |
startSolving(KernelSolverListener listener)
Starts the kernel solving and immediately registers listener as a KernelSolverListener . |
void |
update(java.util.Observable thing,
java.lang.Object arg)
When notfied, the kernel just passes on the notification to interested Observer s. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Kernel()
Kernel
with empty lists and default preferences.Method Detail |
public final SiteList getSiteList()
SiteList
public final VehicleList getVehicleList()
VehicleList
public final BaseList getBaseList()
BaseList
public final WindList getWindList()
WindList
public final SolutionList getSolutionList()
SolutionList
public final RequirementsList getRequirementsList()
RequirementsList
public final RestrictedOperatingZoneList getROZList()
RestrictedOperatingZoneList
public final Preferences getPrefs()
Preferences
public final PriorityModelList getPriorityModelList()
PriorityModelList
public final java.lang.Object getClientProperty(java.lang.String key)
key
entry
in its transient hashtable.key
- key of object to retrieveHashtable
public final boolean isRunningAsApplet()
public final boolean isRunningAsApplication()
public final void setPrefs(Preferences prefs)
Observer
s of the change.prefs
- new preferences to usePreferences
public final void putClientProperty(java.lang.String key, java.lang.Object thing)
key
- key for object to storeHashtable
public final void setRunningAsApplet()
public final void setRunningAsApplication()
public final void startSolving()
public final void startSolving(KernelSolverListener listener)
KernelSolverListener
.KernelSolverListener
public void replace(Kernel newKernel)
Observer
s registered with all objects.newKernel
- new kernel to usepublic final void update(java.util.Observable thing, java.lang.Object arg)
Observer
s. The Observable
that called update
is passed as the argument to the
kernel's Observer
s.update
in interface java.util.Observer
thing
- thing that changedObserver
,
Observable
public static final void out(java.lang.Object obj)
public static final void err(java.lang.Exception e)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |