public class ReloadAccessors
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.reflect.Method |
_accessorReloader
The
org.terraswarm.accessor.JSAccessor.reloadAllAccesors(CompositeEntity)
method.
|
Constructor and Description |
---|
ReloadAccessors() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Reload the accessors in the command line arguments and save
the updated models.
|
static void |
reloadAccessors(java.lang.String modelFileName)
Reload the accessors in a file and save the updated model.
|
protected static final java.lang.reflect.Method _accessorReloader
public static void main(java.lang.String[] args)
To run this class, use $PTII/bin/ptinvoke, which sets the classpath properly:
$PTII/bin/ptinvoke ptolemy.vergil.basic.imprt.accessor.ReloadAccessors $PTII/org/terraswarm/accessor/demo/Audio/Audio.xml
To reload all the accessors, use
$PTII/bin/reloadAllAccessors
.
args
- The file names of the Ptolemy models.public static void reloadAccessors(java.lang.String modelFileName) throws java.lang.Throwable
modelFileName
- The file name of the model.java.lang.Throwable
- If the model cannot be opened, accessors
cannot be reloaded or the model saved.