|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.comp.Extension
drcl.ruv.TclAction
The component executes a Tcl script upon receipt of an event.
One needs to call init(Interp, Object) to initialize
the component with appropriate Tcl interpreter
and sets up actions (Tcl scripts) to take with
addAction(Object, String) and/or
setUniversalAction(String).
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Constructor Summary | |
TclAction()
|
|
TclAction(java.lang.String id_)
|
|
| Method Summary | |
void |
addAction(java.lang.Object signal_,
java.lang.String action_)
Sets the Tcl script to execute in response to signal_ received. |
java.util.Map |
getActionMap()
Returns the action map. |
java.lang.String |
getUniversalAction()
|
java.lang.String |
info()
Returns information regarding this component. |
void |
init(tcl.lang.Interp interp_,
java.lang.Object lock_)
Initializes the component. |
void |
setActionMap(java.util.Map map_)
Sets the action map that associates the signals with actions. |
void |
setUniversalAction(java.lang.String action_)
Sets the Tcl script to execute in response to any signal received. |
| Methods inherited from class drcl.comp.Extension |
isExtensionEnabled, setExtensionEnabled |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TclAction()
public TclAction(java.lang.String id_)
| Method Detail |
public void init(tcl.lang.Interp interp_,
java.lang.Object lock_)
interp_ - the Jacl interpreter instance.lock_ - to make sure only one thread is accessing interp_ at a time.
public void addAction(java.lang.Object signal_,
java.lang.String action_)
action_ - the Tcl script to execute.public void setUniversalAction(java.lang.String action_)
public java.lang.String getUniversalAction()
public void setActionMap(java.util.Map map_)
public java.util.Map getActionMap()
public java.lang.String info()
Component
info in class Component
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||