|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocopomo.visualization.ModelVisualizer
public class ModelVisualizer
Constructor Summary | |
---|---|
ModelVisualizer(java.lang.String dataFolder,
java.lang.String dataFilename,
java.lang.String outputFolder,
java.lang.String outputFileName)
|
Method Summary | |
---|---|
static void |
copy(java.lang.String fromFileName,
java.lang.String toFileName,
boolean promptOverwrite)
|
static void |
copyFromLib(java.lang.String fromFileName,
java.lang.String toFileName,
boolean promptOverwrite)
Copy |
org.w3c.dom.Document |
exportResult(double tick,
java.util.ArrayList<? extends org.ocopomo.drams.modelling.Agent> researchCentreList,
org.ocopomo.drams.data.FactBase factBase)
Load the default XML file (at location TEST_DATA_FOLDER + TEST_DATA_FILENAME) and update it with the data of the last simulated year |
org.w3c.dom.Document |
exportResult(java.lang.String path,
java.lang.String filename,
double tick,
java.util.ArrayList<? extends org.ocopomo.drams.modelling.Agent> researchCentreList,
org.ocopomo.drams.data.FactBase factBase)
Load a XML file and update it with the data of the last simulated year |
void |
getHTMLPresentation()
Produce a basic HTML representation of a XML file describing test results. |
void |
getHTMLPresentation(java.lang.String xmlFile,
java.lang.String xsltFile,
java.lang.String htmlFolder,
java.lang.String htmlFile)
Produce a basic HTML representation of a XML file describing test results. |
static void |
printDOMToFile(org.w3c.dom.Document xmlDoc,
java.lang.String fileName)
Store a DOM Document in a XML file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelVisualizer(java.lang.String dataFolder, java.lang.String dataFilename, java.lang.String outputFolder, java.lang.String outputFileName)
Method Detail |
---|
public org.w3c.dom.Document exportResult(double tick, java.util.ArrayList<? extends org.ocopomo.drams.modelling.Agent> researchCentreList, org.ocopomo.drams.data.FactBase factBase)
tick
- Time informationresearchCentreList
- A list containing the research centres with the data to be
extractedfactBase
- The fact base containing the data to be extracted
public org.w3c.dom.Document exportResult(java.lang.String path, java.lang.String filename, double tick, java.util.ArrayList<? extends org.ocopomo.drams.modelling.Agent> researchCentreList, org.ocopomo.drams.data.FactBase factBase)
path
- The path of the XML file to updatefilename
- The name of the XML file to updatetick
- Time informationresearchCentreList
- A list containing the research centres with the data to be
extractedfactBase
- The fact base containing the data to be extracted
public static void printDOMToFile(org.w3c.dom.Document xmlDoc, java.lang.String fileName)
xmlDoc
- The input DOM Document to be storedfileName
- The file name in which to store the resultspublic void getHTMLPresentation()
xmlFile
- The XML file with the collected dataxsltFile
- The XSLT transormation that produces the intended HTML
representationhtmlFile
- The file in which the results will be storedpublic void getHTMLPresentation(java.lang.String xmlFile, java.lang.String xsltFile, java.lang.String htmlFolder, java.lang.String htmlFile)
xmlFile
- The XML file with the collected dataxsltFile
- The XSLT transormation that produces the intended HTML
representationhtmlFile
- The file in which the results will be storedpublic static void copyFromLib(java.lang.String fromFileName, java.lang.String toFileName, boolean promptOverwrite) throws java.io.IOException
fromFileName
- toFileName
-
java.io.IOException
public static void copy(java.lang.String fromFileName, java.lang.String toFileName, boolean promptOverwrite) throws java.io.IOException
fromFileName
- toFileName
- promptOverwrite
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |