|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.hsif.HSIFUtilities
Utilities methods for operating on HSIF files. These methods are in a separate non-graphical class so that we can test them as part of the nightly build, or provide non-graphical tools that use these methods
| Red (cxh) |
| Red (eal) |
| Method Summary | |
static void |
HSIFToMoML(java.lang.String input,
java.io.FileWriter fileWriter)
Read in an HSIF file, transform it into MoML and write the output to a FileWriter. |
static void |
HSIFToMoML(java.lang.String input,
java.lang.String output)
Read in an HSIF file, transform it into MoML and generate an output file. |
static void |
main(java.lang.String[] args)
Convert the first argument from a HSIF file into a MoML file named by the second argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void HSIFToMoML(java.lang.String input,
java.io.FileWriter fileWriter)
throws java.lang.Exception
input - HSIF file to be read in.fileWriter - A FileWriter that will write to the MoML
file.
java.lang.Exception - If there is a problem with the transformation.
public static void HSIFToMoML(java.lang.String input,
java.lang.String output)
throws java.lang.Exception
input - HSIF file to be read inoutput - The MoMLFile to be generated.
java.lang.Exception - If there is a problem with the transformation.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java -classpath $PTII ptolemy.hsif.HSIFUtilities \
$PTII/ptolemy/hsif/demo/SwimmingPool/SwimmingPool.xml \
/tmp/SwimmingPool_moml.xml
will read in SwimmingPool.xml and create SwimmingPool_moml.xml
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||