+ "style=\"font-size:20; font-family:SansSerif; fill:white\">"
+ "PtinyOS</text></svg>");
// Set the code generation output directory to the current
// working directory.
destinationDirectory = new FileParameter(this,
"destinationDirectory");
new Parameter(destinationDirectory, "allowFiles",
BooleanToken.FALSE);
new Parameter(destinationDirectory, "allowDirectories",
BooleanToken.TRUE);
destinationDirectory.setExpression("$CWD");
// Set so that user must confirm each file that will be
// overwritten.
// Note: Default to overwrite w/o asking.
confirmOverwrite = new Parameter(this, "confirmOverwrite",
BooleanToken.FALSE);
confirmOverwrite.setTypeEquals(BaseType.BOOLEAN);
// Set path to tinyos-1.x directory.
tosRoot = new FileParameter(this, "TOSROOT");
new Parameter(tosRoot, "allowFiles", BooleanToken.FALSE);
new Parameter(tosRoot, "allowDirectories", BooleanToken.TRUE);
String tosRootProperty = StringUtilities
.getProperty("ptolemy.ptII.tosroot");
if (tosRootProperty != null) {
tosRoot.setExpression(tosRootProperty);
} else {
tosRoot.setExpression("$PTII/vendors/ptinyos/tinyos-1.x");
}
// Set path to tinyos-1.x/tos directory.
tosDir = new FileParameter(this, "TOSDIR");
new Parameter(tosDir, "allowFiles", BooleanToken.FALSE);
new Parameter(tosDir, "allowDirectories", BooleanToken.TRUE);
String tosDirProperty = StringUtilities
.getProperty("ptolemy.ptII.tosdir");
if (tosDirProperty != null) {