|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.graphicLoader.AbstractGraphicLoader
com.bbn.openmap.graphicLoader.MMLGraphicLoader
ru.igis.omtab.RuNA
public class RuNA
Class supporting simulation
Field Summary |
---|
Fields inherited from class com.bbn.openmap.graphicLoader.AbstractGraphicLoader |
---|
NameProperty, TimerCmd |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
RuNA()
Default constructor |
Method Summary | |
---|---|
void |
addHourAction(RepeatAction ra)
Register new Repeat Action for executing every hour |
MapOb |
addMapOb(edu.stanford.smi.protege.model.Instance inst)
Create from Instance and add to RuNA Map Object |
void |
addMapOb(MapOb mo)
Add to RuNA new Map Object. |
void |
addMapObs()
Add Map Obs with picking Instances by user Dialog |
void |
addMapObs(java.util.Collection<?> inss)
Add Map obs from the collection of Instances |
void |
addMinuteAction(RepeatAction ra)
Register new Repeat Action for executing every minute |
void |
addSecondAction(RepeatAction ra)
Register new Repeat Action for executing every second |
void |
addTaskExecutor(TaskExecutor ta)
Registering new Task Executor |
void |
clearHourActions()
Remove at once all existing Repeat Actions for every hour |
void |
clearMapObs(java.util.Collection<edu.stanford.smi.protege.model.Instance> col,
boolean kbdelete)
Delete from RuNA Map Objects corresponding to Instances from Collection. |
void |
clearMinuteActions()
Remove at once all existing Repeat Actions for every minute |
void |
clearSecondActions()
Remove at once all existing Repeat Actions for every second |
void |
clearTaskExecutors()
Remove all registered Task Executors atonce |
void |
cmdAddObsToMap()
Handler of button AddObsToMap click |
void |
cmdControlObject()
Handler of button Control Object |
void |
cmdMapBackObjects()
Handler of button MapBackObjects |
void |
cmdRemObsFromMap()
Handler of button RemObsFromMap click |
void |
cmdRemoveRepeatActions()
Handler of Menu Item Remove Repeat Actions click |
void |
cmdStartRepeatActions()
Handler of Menu Item Start Repeat Actions click |
void |
controlObject(edu.stanford.smi.protege.model.Instance inst)
Search for the Navigating Object corresponding to this Instance and call method control on it |
void |
findAndInit(java.lang.Object obj)
Standard OpenMap interface LightMapHandlerChild method. |
void |
findAndUndo(java.lang.Object obj)
Standard OpenMap interface LightMapHandlerChild method. |
Clock |
getClock()
Return Clock object |
java.lang.String |
getCommand()
Return contains of slot scenario of picked by user Instanse of class Command or its subclass that is a value of slot commandSubclass of first instance of class RuNA in Protege |
java.awt.Component |
getGUI()
Return Runa Panel |
java.util.Collection<edu.stanford.smi.protege.model.Instance> |
getKbObs()
|
com.bbn.openmap.event.MapMouseListener |
getMapMouseListener()
|
MapOb |
getMapOb(edu.stanford.smi.protege.model.Instance instance)
Search Map Object for Instance |
MapOb |
getMapOb(java.lang.String label)
Search Map Object by name |
com.bbn.openmap.omGraphics.OMGraphicList |
getMapObs()
|
java.lang.Object[] |
getMovingNavObs(java.lang.String[] typs)
Gives an array of mooving Map Objects for the array of their names |
MultiUser |
getMultiUser()
|
java.lang.Object[] |
getNavObs(java.lang.String[] typs)
Gives an array of Map Objects for the array of their types. |
RuMapMouseAdapter |
getRuMapMouseAdapter()
|
com.bbn.openmap.plugin.PlugInLayer |
getRuNAPlugInLayer()
|
java.lang.String |
getScenario()
Method that return contains of scenario slot of the first instance of class RuNA in Protege |
java.lang.String |
getTimeScale()
|
java.util.Collection<MapOb> |
inOMTPolies(MapOb mo)
Search polygons containing Map Object |
boolean |
isTimerRunning()
|
void |
manageGraphics()
Standard OpenMap method |
void |
mapBackMapObs(java.util.Collection<edu.stanford.smi.protege.model.Instance> col)
Write back to Protege changed attributies of Map Objects into slots of corresponding Instances |
boolean |
mouseClicked(java.awt.event.MouseEvent e)
Called whenever the mouse is clicked by the user and one of the requested mouse modes is active. |
void |
mouseMoved()
Called whenever the mouse is moved on this layer and one of the requested mouse modes is active, and the gesture is consumed by another active layer. |
boolean |
mouseMoved(java.awt.event.MouseEvent e)
Called whenever the mouse is moved on this layer and one of the requested mouse modes is active. |
void |
removeHourAction(RepeatAction ra)
Remove existing Repeat Action calling every second |
void |
removeMapOb(MapOb mo,
boolean kbdelete)
Remove from RuNA existing Map Object |
void |
removeMinuteAction(RepeatAction ra)
Remove existing Repeat Action calling every second |
boolean |
removeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
Remove RepeatAction from Instance return false if RA was not started |
void |
removeRepeatActions(java.util.Collection<edu.stanford.smi.protege.model.Instance> inss)
Remove RepeatActions from the collection of Instances |
void |
removeSecondAction(RepeatAction ra)
Remove existing Repeat Action calling every second |
void |
removeTaskExecutor(TaskExecutor ta)
Remove existing Task Executor |
void |
setMultiUser(MultiUser multiUser)
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Standard OpenMap Component method |
void |
setReflectNavOb(boolean flag)
|
void |
setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter)
|
void |
setTimerRunning(boolean timerRunning)
|
void |
setTimeScale(java.lang.String timeScale)
Set new time scale |
boolean |
startRepeatAction(edu.stanford.smi.protege.model.Instance inst)
Start RepeatAction from Instance return false if it is already started or of error |
void |
startRepeatActions(java.util.Collection<?> inss)
Start RepeatActions from the collection of Instances |
Methods inherited from class com.bbn.openmap.graphicLoader.MMLGraphicLoader |
---|
getMouseModeServiceList, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class com.bbn.openmap.graphicLoader.AbstractGraphicLoader |
---|
actionPerformed, createTimer, getName, getProjection, getProperties, getPropertyInfo, getReceiver, getTimer, getUpdateInterval, setName, setProjection, setReceiver, setTimer, setUpdateInterval |
Methods inherited from class com.bbn.openmap.OMComponent |
---|
getPropertyPrefix, setProperties, setPropertyPrefix |
Methods inherited from class com.bbn.openmap.MapHandlerChild |
---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuNA()
Method Detail |
---|
public com.bbn.openmap.plugin.PlugInLayer getRuNAPlugInLayer()
public void manageGraphics()
manageGraphics
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
public void addTaskExecutor(TaskExecutor ta)
ta
- - program called on button Task on NavOb Form clickpublic void removeTaskExecutor(TaskExecutor ta)
ta
- - program called on button Task on NavOb Form clickpublic void clearTaskExecutors()
public void addSecondAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void addMinuteAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void addHourAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void removeSecondAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void removeMinuteAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void removeHourAction(RepeatAction ra)
ra
- - class incapsulating the program called periodicallypublic void clearSecondActions()
public void clearMinuteActions()
public void clearHourActions()
public void addMapObs()
public void addMapObs(java.util.Collection<?> inss)
inss
- - collection of Instances representing Map Obs in Protegepublic MapOb addMapOb(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance representing Map Object in Protege
public void clearMapObs(java.util.Collection<edu.stanford.smi.protege.model.Instance> col, boolean kbdelete)
col
- - Instances corresponding to Map Objectskbdelete
- - should Instances be deletedpublic void mapBackMapObs(java.util.Collection<edu.stanford.smi.protege.model.Instance> col) throws java.lang.Exception
col
- - Instances corresponding existing in RuNA Map Objects
java.lang.Exception
- -public java.awt.Component getGUI()
getGUI
in interface com.bbn.openmap.graphicLoader.GraphicLoader
getGUI
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
public void cmdAddObsToMap()
public void cmdRemObsFromMap()
public void setTimeScale(java.lang.String timeScale)
timeScale
- - new time scalepublic java.lang.String getTimeScale()
public void cmdControlObject()
public void cmdMapBackObjects()
public void cmdStartRepeatActions()
public void startRepeatActions(java.util.Collection<?> inss)
inss
- - collection of Instances of class RepeatAction in Protegepublic boolean startRepeatAction(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance of class RepeatAction in Protegepublic void cmdRemoveRepeatActions()
public boolean removeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance of class RepeatAction in Protegepublic void removeRepeatActions(java.util.Collection<edu.stanford.smi.protege.model.Instance> inss)
inss
- - collection of Instances of class RepeatAction in Protegepublic void controlObject(edu.stanford.smi.protege.model.Instance inst)
inst
- - Instance corresponding to Navigating Objectpublic MapOb getMapOb(java.lang.String label)
label
- - name of Map Object
public java.util.Collection<MapOb> inOMTPolies(MapOb mo)
mo
- - Map Object
public MapOb getMapOb(edu.stanford.smi.protege.model.Instance instance)
instance
- - Protege Instance corresponding this Map Object
public java.lang.Object[] getNavObs(java.lang.String[] typs)
typs
- - array of Map Object names
public java.lang.Object[] getMovingNavObs(java.lang.String[] typs)
typs
- - array of Map Object names
public void addMapOb(MapOb mo)
mo
- - new Map Objectpublic void removeMapOb(MapOb mo, boolean kbdelete)
mo
- - Map Object to removekbdelete
- Should corresponding Protege Instance be removed toopublic void setProperties(java.lang.String prefix, java.util.Properties props)
setProperties
in interface com.bbn.openmap.PropertyConsumer
setProperties
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
prefix
- - propery prefixprops
- - OpenMap properties objectpublic java.lang.String getScenario()
public java.lang.String getCommand()
public Clock getClock()
public void findAndInit(java.lang.Object obj)
findAndInit
in interface com.bbn.openmap.LightMapHandlerChild
findAndInit
in class com.bbn.openmap.MapHandlerChild
obj
- - serched objectpublic void findAndUndo(java.lang.Object obj)
findAndUndo
in interface com.bbn.openmap.LightMapHandlerChild
findAndUndo
in class com.bbn.openmap.MapHandlerChild
obj
- - searched objectpublic void setReflectNavOb(boolean flag)
public com.bbn.openmap.omGraphics.OMGraphicList getMapObs()
public boolean isTimerRunning()
public void setTimerRunning(boolean timerRunning)
timerRunning
- The timerRunning to set.public MultiUser getMultiUser()
public void setMultiUser(MultiUser multiUser)
multiUser
- The multiUser to set.public java.util.Collection<edu.stanford.smi.protege.model.Instance> getKbObs()
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()
public boolean mouseMoved(java.awt.event.MouseEvent e)
Tries to locate a graphic near the mouse, and if it is found, it selected.
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
mouseMoved
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
e
- the move event
MMLGraphicLoader.getMouseModeServiceList()
public void mouseMoved()
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
mouseMoved
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
MMLGraphicLoader.getMouseModeServiceList()
public boolean mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface com.bbn.openmap.event.MapMouseListener
mouseClicked
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
e
- the click event
MMLGraphicLoader.getMouseModeServiceList()
public RuMapMouseAdapter getRuMapMouseAdapter()
public void setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |