watch
Class TimeplotTransformation

java.lang.Object
  extended by watch.Transformation
      extended by watch.TimeplotTransformation

 class TimeplotTransformation
extends Transformation

Timeplot transformation. Creates graphs using the timpeplot library. This transformation creates en HTML doc and copies the timeplot resources next to it.


Field Summary
 
Fields inherited from class watch.Transformation
HTML, IDENTITY, SHORT, TEXT, TIMEPLOT
 
Constructor Summary
TimeplotTransformation()
          Constructor.
 
Method Summary
 boolean apply(org.w3c.dom.Document XML_Input, java.lang.String J_OutputFileName)
          Post-computation transformation handler.
static boolean copyResourcesWith(java.lang.String J_OutputFileName)
          Copy timeplot resources next to the output file.
 
Methods inherited from class watch.Transformation
applyXsl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeplotTransformation

public TimeplotTransformation()
Constructor.

Method Detail

apply

public boolean apply(org.w3c.dom.Document XML_Input,
                     java.lang.String J_OutputFileName)
Post-computation transformation handler. Launches two XSl transformation: one for the HTML page creation, and another one for the data creation. Then copies the resources next to the output file.

Specified by:
apply in class Transformation
Parameters:
XML_Input - XML result of the watch computation.
J_OutputFileName - Name of the file resulting of the transformation.
Returns:
true if success, false otherwise.

copyResourcesWith

public static final boolean copyResourcesWith(java.lang.String J_OutputFileName)
Copy timeplot resources next to the output file.

Parameters:
J_OutputFileName - Output file to copy the resources next to.
Returns:
true if success, false otherwise.