public class RuNA
extends com.bbn.openmap.graphicLoader.MMLGraphicLoader
Constructor and Description |
---|
RuNA()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
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(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(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(Object obj)
Standard OpenMap interface LightMapHandlerChild method.
|
void |
findAndUndo(Object obj)
Standard OpenMap interface LightMapHandlerChild method.
|
Clock |
getClock()
Return Clock object
|
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
|
Component |
getGUI()
Return Runa Panel
|
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(String label)
Search Map Object by name
|
com.bbn.openmap.omGraphics.OMGraphicList |
getMapObs() |
Object[] |
getMovingNavObs(String[] typs)
Gives an array of mooving Map Objects for the array of their names
|
MultiUser |
getMultiUser() |
Object[] |
getNavObs(String[] typs)
Gives an array of Map Objects for the array of their types.
|
RuMapMouseAdapter |
getRuMapMouseAdapter() |
com.bbn.openmap.plugin.PlugInLayer |
getRuNAPlugInLayer() |
String |
getScenario()
Method that return contains of scenario slot of the first instance
of class RuNA in Protege
|
String |
getTimeScale() |
Collection<MapOb> |
inOMTPolies(MapOb mo)
Search polygons containing Map Object
|
boolean |
isTimerRunning() |
void |
manageGraphics()
Standard OpenMap method
|
void |
mapBackMapObs(Collection<edu.stanford.smi.protege.model.Instance> col)
Write back to Protege changed attributies of Map Objects
into slots of corresponding Instances
|
boolean |
mouseClicked(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(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 |
removeProtegeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
Remove RepeatAction from Instance
return false if RA was not started
|
void |
removeProtegeRepeatActions(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(String prefix,
Properties props)
Standard OpenMap Component method
|
void |
setReflectNavOb(boolean flag) |
void |
setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter) |
void |
setTimerRunning(boolean timerRunning) |
void |
setTimeScale(String timeScale)
Set new time scale
|
boolean |
startProtegeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
Start RepeatAction from Instance
return false if it is already started or of error
|
void |
startProtegeRepeatActions(Collection<?> inss)
Start RepeatActions from the collection of Instances
|
getMouseModeServiceList, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased
actionPerformed, createTimer, getName, getProjection, getProperties, getPropertyInfo, getReceiver, getTimer, getUpdateInterval, setName, setProjection, setReceiver, setTimer, setUpdateInterval
getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
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(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 Protegepublic void clearMapObs(Collection<edu.stanford.smi.protege.model.Instance> col, boolean kbdelete)
col
- - Instances corresponding to Map Objectskbdelete
- - should Instances be deletedpublic void mapBackMapObs(Collection<edu.stanford.smi.protege.model.Instance> col) throws Exception
col
- - Instances corresponding existing in RuNA Map ObjectsException
- -public 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(String timeScale)
timeScale
- - new time scalepublic String getTimeScale()
public void cmdControlObject()
public void cmdMapBackObjects()
public void cmdStartRepeatActions()
public void startProtegeRepeatActions(Collection<?> inss)
inss
- - collection of Instances of class RepeatAction in Protegepublic boolean startProtegeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance of class RepeatAction in Protegepublic void cmdRemoveRepeatActions()
public boolean removeProtegeRepeatAction(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance of class RepeatAction in Protegepublic void removeProtegeRepeatActions(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(String label)
label
- - name of Map Objectpublic Collection<MapOb> inOMTPolies(MapOb mo)
mo
- - Map Objectpublic MapOb getMapOb(edu.stanford.smi.protege.model.Instance instance)
instance
- - Protege Instance corresponding this Map Objectpublic Object[] getNavObs(String[] typs)
typs
- - array of Map Object namespublic Object[] getMovingNavObs(String[] typs)
typs
- - array of Map Object namespublic 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(String prefix, Properties props)
setProperties
in interface com.bbn.openmap.PropertyConsumer
setProperties
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
prefix
- - propery prefixprops
- - OpenMap properties objectpublic String getScenario()
public String getCommand()
public Clock getClock()
public void findAndInit(Object obj)
findAndInit
in interface com.bbn.openmap.LightMapHandlerChild
findAndInit
in class com.bbn.openmap.MapHandlerChild
obj
- - serched objectpublic void findAndUndo(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 Collection<edu.stanford.smi.protege.model.Instance> getKbObs()
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()
public boolean mouseMoved(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 eventMMLGraphicLoader.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(MouseEvent e)
mouseClicked
in interface com.bbn.openmap.event.MapMouseListener
mouseClicked
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
e
- the click eventMMLGraphicLoader.getMouseModeServiceList()
public RuMapMouseAdapter getRuMapMouseAdapter()
public void setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter)