|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsoot.Transformer
soot.SceneTransformer
ptolemy.copernicus.applet.AppletWriter
public class AppletWriter
A transformer that writes an applet version of a model. For a model called Foo, we generate Foo/makefile, Foo/Foo.xml, Foo/Foo.htm Foo/FooVergil.htm in the directory named by the outDir parameter.
Potential future enhancements
| Red (cxh) |
| Red (cxh) |
| Method Summary | |
|---|---|
java.lang.String |
getDeclaredOptions()
Return the declared options. |
java.lang.String |
getDefaultOptions()
Return the default options. |
java.lang.String |
getPhaseName()
Return the phase name. |
protected void |
internalTransform(java.lang.String phaseName,
java.util.Map options)
Save the model as an applet. |
static AppletWriter |
v(CompositeActor model)
Return an instance of this transformer that will operate on the given model. |
| Methods inherited from class soot.SceneTransformer |
|---|
transform, transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AppletWriter v(CompositeActor model)
model - The model that this class will operate on.
public java.lang.String getDefaultOptions()
templateDirectory: ptolemy/copernicus/applet/
getDefaultOptions in interface soot.HasPhaseOptionspublic java.lang.String getDeclaredOptions()
targetPackage modelPath outDir templateDirectory
getDeclaredOptions in interface soot.HasPhaseOptionspublic java.lang.String getPhaseName()
getPhaseName in interface soot.HasPhaseOptions
protected void internalTransform(java.lang.String phaseName,
java.util.Map options)
For example, if the model is called MyModel, and this phase is called with:
-p wjtp.appletWriter targetPackage:foo.bar
Then we will create the directory $PTII/foo/bar/MyModel and
place MyModel.xml, MyModel.htm, MyModelVergil.htm in that
directory.
internalTransform in class soot.SceneTransformerphaseName - The name of the phase, for example
wjtp.appletWriter.options - The options Map. This method uses the
targetPackage option to specify package
to generate code in.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||