edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML Class Reference

A file containing an HPCView experiment in XML representation. More...

Inheritance diagram for edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML:
Collaboration graph
[legend]

List of all members.

Public Member Functions

File getFile ()
void setFile (File file)
void parse (InputStream stream, String name, BaseExperiment experiment, boolean need_metrics, IUserData< String, String > userData) throws Exception
 Parses the file and returns the contained experiment subparts.
void parse (File file, BaseExperiment experiment, boolean need_metrics, IUserData< String, String > userData) throws Exception

Private Attributes

File file

Detailed Description

A file containing an HPCView experiment in XML representation.

Definition at line 42 of file ExperimentFileXML.java.


Member Function Documentation

File edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.getFile (  ) 
void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse ( File  file,
BaseExperiment  experiment,
boolean  need_metrics,
IUserData< String, String >  userData 
) throws Exception [virtual]
void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.parse ( InputStream  stream,
String  name,
BaseExperiment  experiment,
boolean  need_metrics,
IUserData< String, String >  userData 
) throws Exception

Parses the file and returns the contained experiment subparts.

The subparts are returned by adding them to given lists.

This version is able to work with the file not being located on physical disk, but rather a reference to an in-memory stream from a socket (potentially compressed).

Note: The GREP code has been moved to the SpaceTimeDataControllerLocal because it is only needed on the local version, and that is the last place where the actual file (as opposed to a stream referring to the file) is available.

Parameters:
name The name of the file. For now, this is hard coded, but it should be obvious from the file chosen in the remote browser UI
experiment Experiment object to own the parsed subparts.
userData I don't know why this is here, since it apparently isn't used. I'm leaving it for maximum compatibility.
Exceptions:
Exception 

Definition at line 86 of file ExperimentFileXML.java.

References edu.rice.cs.hpc.data.experiment.xml.Builder.getParseErrorLineNumber(), edu.rice.cs.hpc.data.experiment.xml.Builder.getParseOK(), edu.rice.cs.hpc.data.experiment.xml.Parser.parse(), and edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.setFile().

Referenced by edu.rice.cs.hpc.data.experiment.RemoteDatabaseRepresentation.open(), and edu.rice.cs.hpc.data.experiment.LocalDatabaseRepresentation.open().

void edu.rice.cs.hpc.data.experiment.xml.ExperimentFileXML.setFile ( File  file  ) 

Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1