#include <html.h>

Collaboration diagram for SDFconvertToHTML:

List of all members.

Public Member Functions

 SDFconvertToHTML ()
 ~SDFconvertToHTML ()
TimedSDFgraphgetSDFgraph ()
void setSDFgraph (TimedSDFgraph *g)
PlatformGraphgetPlatformGraph ()
void setPlatformGraph (PlatformGraph *g)
SetOfNoCScheduleProblemsgetSetOfNoCScheduleProblems ()
void setSetOfNoCScheduleProblems (SetOfNoCScheduleProblems *p)
void convert (const CString prefix="")

Private Member Functions

void convertSDFgraph ()
void convertPlatformGraph ()
void convertPlatformMapping ()
void convertPlatformUsage ()
void convertInterconnectGraph ()
void convertInterconnectMapping ()
void convertInterconnectUsage ()
void printStylesheet (ostream &out)
void printHeader (ostream &out, CString pageTitle)
void printFooter (ostream &out)
void outputSDFgraphAsDot (SDFgraph *g, ostream &out)
void outputPlatformGraphAsDot (PlatformGraph *g, ostream &out)
void outputPlatformMappingAsDot (TimedSDFgraph *sdfGraph, PlatformGraph *platformGraph, ostream &out)
void outputInterconnectGraphAsDot (InterconnectGraph *g, ostream &out)
CString convertSDFgraphToPNG (TimedSDFgraph *g, CString filename)
CString convertPlatformGraphToPNG (PlatformGraph *g, CString filename)
CString convertPlatformMappingToPNG (TimedSDFgraph *sdfGraph, PlatformGraph *platformGraph, CString filename)
CString convertInterconnectGraphToPNG (InterconnectGraph *g, CString filename)
CString getFullName (CString filename, CString extension)

Private Attributes

CString fileNamePrefix
TimedSDFgraphsdfGraph
PlatformGraphplatformGraph
SetOfNoCScheduleProblemssetOfNoCScheduleProblems
CString sdfGraphFilename
CString platformGraphFilename
CString platformMappingFilename
CString platformUsageFilename
CString interconnectGraphFilename
CString interconnectMappingFilename
CString interconnectUsageFilename

Constructor & Destructor Documentation

SDFconvertToHTML::~SDFconvertToHTML (  )  [inline]

Member Function Documentation

void SDFconvertToHTML::convert ( const CString  prefix = ""  ) 

convert () Convert the SDF graph and platform graph to HTML format. When mapping or resource usage information is present, this information is also exported to HTML.

References convertInterconnectGraph(), convertInterconnectMapping(), convertInterconnectUsage(), convertPlatformGraph(), convertPlatformMapping(), convertPlatformUsage(), convertSDFgraph(), fileNamePrefix, getPlatformGraph(), getSDFgraph(), and getSetOfNoCScheduleProblems().

Referenced by SDF3Flow::outputMappingAsHTML().

Here is the call graph for this function:

CString SDFconvertToHTML::convertInterconnectGraphToPNG ( InterconnectGraph g,
CString  filename 
) [private]

convertInterconnectGraphToPNG () Convert the graph using dot to a PNG image. The function returns an image map in XHTML format.

References c, outputInterconnectGraphAsDot(), and tempFileName().

Referenced by convertInterconnectGraph(), convertInterconnectMapping(), and convertInterconnectUsage().

Here is the call graph for this function:

CString SDFconvertToHTML::convertPlatformGraphToPNG ( PlatformGraph g,
CString  filename 
) [private]

convertPlatformGraphToPNG () Convert the graph using dot to a PNG image.

References c, outputPlatformGraphAsDot(), and tempFileName().

Referenced by convertPlatformGraph(), and convertPlatformUsage().

Here is the call graph for this function:

CString SDFconvertToHTML::convertPlatformMappingToPNG ( TimedSDFgraph sdfGraph,
PlatformGraph platformGraph,
CString  filename 
) [private]

convertPlatformMappingToPNG () Convert the mapping using dot to a PNG image.

References c, outputPlatformMappingAsDot(), and tempFileName().

Referenced by convertPlatformMapping().

Here is the call graph for this function:

CString SDFconvertToHTML::convertSDFgraphToPNG ( TimedSDFgraph g,
CString  filename 
) [private]

convertSDFgraphToPNG () Convert the graph using dot to a PNG image. The function returns an image map in XHTML format.

References c, outputSDFgraphAsDot(), and tempFileName().

Referenced by convertSDFgraph().

Here is the call graph for this function:

PlatformGraph* SDFconvertToHTML::getPlatformGraph (  )  [inline]
TimedSDFgraph* SDFconvertToHTML::getSDFgraph (  )  [inline]
SetOfNoCScheduleProblems* SDFconvertToHTML::getSetOfNoCScheduleProblems (  )  [inline]
void SDFconvertToHTML::outputInterconnectGraphAsDot ( InterconnectGraph g,
ostream &  out 
) [private]

outputInterconnectGraphAsDot () The function outputs an interconnect graph in DOT format.

References Link::getDstNode(), Link::getName(), Node::getName(), Link::getSrcNode(), Node::getType(), InterconnectGraph::linksBegin(), InterconnectGraph::linksEnd(), InterconnectGraph::nodesBegin(), and InterconnectGraph::nodesEnd().

Referenced by convertInterconnectGraphToPNG().

Here is the call graph for this function:

void SDFconvertToHTML::outputPlatformGraphAsDot ( PlatformGraph g,
ostream &  out 
) [private]

outputPlatformGraphAsDot () The function outputs a platform graph in DOT format.

References c, PlatformGraph::connectionsBegin(), PlatformGraph::connectionsEnd(), Connection::getDstTile(), ArchComponent::getName(), Connection::getSrcTile(), PlatformGraph::tilesBegin(), and PlatformGraph::tilesEnd().

Referenced by convertPlatformGraphToPNG().

Here is the call graph for this function:

void SDFconvertToHTML::outputSDFgraphAsDot ( SDFgraph g,
ostream &  out 
) [private]

outputSDFgraphAsDot () The function outputs an SDF graph in DOT format.

References a, SDFgraph::actorsBegin(), SDFgraph::actorsEnd(), c, SDFgraph::channelsBegin(), SDFgraph::channelsEnd(), SDFport::getActor(), SDFchannel::getDstPort(), SDFchannel::getInitialTokens(), SDFcomponent::getName(), SDFport::getRate(), and SDFchannel::getSrcPort().

Referenced by convertSDFgraphToPNG().

Here is the call graph for this function:

void SDFconvertToHTML::printFooter ( ostream &  out  )  [private]

footerHeader () Write the footer of the HTML file to the supplied output stream.

Referenced by convertInterconnectGraph(), convertInterconnectMapping(), convertInterconnectUsage(), convertPlatformGraph(), convertPlatformMapping(), convertPlatformUsage(), and convertSDFgraph().

void SDFconvertToHTML::printStylesheet ( ostream &  out  )  [private]

printStylesheet () Write the sylesheet to the supplied output stream.

Referenced by printHeader().

void SDFconvertToHTML::setPlatformGraph ( PlatformGraph g  )  [inline]

References platformGraph.

Referenced by SDF3Flow::outputMappingAsHTML().

void SDFconvertToHTML::setSDFgraph ( TimedSDFgraph g  )  [inline]

References sdfGraph.

Referenced by SDF3Flow::outputMappingAsHTML().

void SDFconvertToHTML::setSetOfNoCScheduleProblems ( SetOfNoCScheduleProblems p  )  [inline]

Member Data Documentation


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