|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.meta.JythonScriptWrapper
JythonScriptWrapper - a dummy SimObject used to include Xfig/JavaFIG drawings into HADES designs.
Field Summary | |
(package private) java.lang.String |
scriptname
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
JythonScriptWrapper()
Construct a JythonScriptWrapper object |
Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize the simulation object. |
java.lang.String[] |
getExternalResources()
return a String[] array of length 1 with our Jython script file name |
java.lang.String |
getScriptname()
|
boolean |
initialize(java.lang.String s)
initialize a JythonScriptWrapper from a String. |
boolean |
needsExternalResources()
we use one external resource: the FIG file to initialize us. |
void |
setScriptname(java.lang.String s)
|
java.lang.String |
toString()
toString: generate a text description for this SimObject. |
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, evaluate, getBindkey, getClassLoader, getDebug, getEditor, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.lang.String scriptname
Constructor Detail |
public JythonScriptWrapper()
Method Detail |
public java.lang.String getScriptname()
public void setScriptname(java.lang.String s)
public boolean needsExternalResources()
needsExternalResources
in class SimObject
public java.lang.String[] getExternalResources()
getExternalResources
in class SimObject
public boolean initialize(java.lang.String s)
1002 /hades/examples/tutorial/welcome.py
initialize
in class SimObject
public void write(java.io.PrintWriter ps)
write
in class SimObject
public void configure()
SimObject
configure
in class SimObject
public void elaborate(java.lang.Object arg)
SimObject
elaborate
in interface Simulatable
elaborate
in class SimObject
public java.lang.String toString()
SimObject
toString
in class SimObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |