|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.hsif.HSIFUtilities
public class 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) |
Constructor Summary | |
---|---|
private |
HSIFUtilities()
Instances of this class cannot be created. |
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 |
Constructor Detail |
---|
private HSIFUtilities()
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.xmlwill read in SwimmingPool.xml and create SwimmingPool_moml.xml
args
- An array of Strings. The first element should
name a HSIF file to read in, the second should name the MoML
file to be generated.
java.lang.Exception
- If the conversion fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |