FSMSADF::OutputHTML Class Reference

#include <html.h>

Collaboration diagram for FSMSADF::OutputHTML:

List of all members.

Public Member Functions

 OutputHTML ()
 ~OutputHTML ()
void setDirname (const CString &name)
CString getDirname () const
void outputAsHTML (SDF3Flow *flow)

Private Member Functions

void printApplicationGraph (SDF3Flow *flow)
void printPlatformGraph (SDF3Flow *flow)
void printPlatformBindings (SDF3Flow *flow)
void printPlatformBinding (PlatformBinding *pb, SDF3Flow *flow)
void createOutputDirectory ()
void createOutputFileApplicationGraph (Graph *applicationGraph, ofstream &out)
void createOutputFilePlatformGraph (PlatformGraph *platformGraph, ofstream &out)
void createOutputFilePlatformBinding (PlatformBinding *platformBinding, ofstream &out)
void createOutputFilePlatformBindings (ofstream &out)
void createOutputFile (const CString &name, ofstream &out)
void printHeader (ostream &ofile, SDF3Flow *flow)
void printFooter (ostream &ofile, SDF3Flow *flow)
void printStylesheet (ostream &ofile)
void printScenario (Scenario *s, ostream &ofile)
void printFSM (FSM *fsm, ostream &ofile)
CString getApplicationGraphURL (Graph *applicationGraph)
CString getScenarioURL (Scenario *s, bool onlyName=false)
CString getActorURL (Scenario *s, Actor *a, bool onlyName=false)
CString getChannelURL (Scenario *s, Channel *c, bool onlyName=false)
CString getPlatformGraphURL (PlatformGraph *platformGraph)
CString getPlatformBindingURL (PlatformBinding *platformBinding)
CString getPlatformBindingsURL ()
CString getScenarioGraphPicURL (Scenario *s)
CString getFSMPicURL ()
CString getTileURL (Tile *t, bool onlyName=false)
CString getConnectionURL (Connection *c, bool onlyName=false)
CString getPlatformGraphPicURL (PlatformGraph *pg)
CString getNetworkInterfaceURL (NetworkInterface *n, bool onlyName=false)
CString getProcessorURL (Processor *p, bool onlyName=false)
CString getMemoryURL (Memory *m, bool onlyName=false)
CString getScenarioPlatformBindingURL (Scenario *s, PlatformBinding *pb, bool onlyName=false)
CString getPlatformBindingPicURL (Scenario *s, PlatformBinding *pb)
bool convertGraphToPNG (CString &graph, CString &filename, CString &map)
void convertScenarioGraphToPNG (Scenario *s, ScenarioGraph *sg, CString filename, CString &map)
void convertFSMToPNG (FSM *fsm, CString filename, CString &map)
void convertPlatformGraphToPNG (PlatformGraph *pg, CString filename, CString &map)
void convertPlatformBindingToPNG (Scenario *s, PlatformBinding *pb, CString filename, CString &map)

Private Attributes

CString dirname

Detailed Description

OutputHTML Output FSM-based SADF in HTML format.


Constructor & Destructor Documentation

FSMSADF::OutputHTML::OutputHTML (  ) 

OutputHTML() Constructor.

References dirname.

FSMSADF::OutputHTML::~OutputHTML (  ) 

~OutputHTML() Destructor.


Member Function Documentation

void FSMSADF::OutputHTML::convertFSMToPNG ( FSM fsm,
CString  filename,
CString map 
) [private]

convertFSMToPNG() The function converts the supplied FSM to a PNG image and stores it in the supplied filename. An XHTML image map is returned through the map variable.

References convertGraphToPNG(), FSMSADF::FSMtransition::getDstState(), FSMSADF::FSM::getInitialState(), FSMSADF::GraphComponent::getName(), FSMSADF::FSMstate::getScenario(), getScenarioURL(), FSMSADF::FSM::getStates(), FSMSADF::FSMstate::getTransitions(), and CString::replace().

Referenced by printFSM().

Here is the call graph for this function:

bool FSMSADF::OutputHTML::convertGraphToPNG ( CString graph,
CString filename,
CString map 
) [private]

convertGraphToPNG () Convert the graph using dot to a PNG image. The resulting picture is stored in a file with the supplied filename. The function also creates an image map in XHTML format. This image map is returned through the map variable. The function returns true on success. Otherwise it returns false.

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

Referenced by convertFSMToPNG(), convertPlatformBindingToPNG(), convertPlatformGraphToPNG(), and convertScenarioGraphToPNG().

Here is the call graph for this function:

void FSMSADF::OutputHTML::convertPlatformGraphToPNG ( PlatformGraph pg,
CString  filename,
CString map 
) [private]

convertPlatformGraphToPNG() The function converts the supplied platform graph to a PNG image and store it in the supplied filename. An XHTML image map is returned through the map variable.

References c, convertGraphToPNG(), FSMSADF::PlatformGraph::getConnections(), getConnectionURL(), FSMSADF::Connection::getDstNetworkInterface(), FSMSADF::GraphComponent::getName(), FSMSADF::Connection::getSrcNetworkInterface(), FSMSADF::NetworkInterface::getTile(), FSMSADF::PlatformGraph::getTiles(), getTileURL(), and CString::replace().

Referenced by printPlatformGraph().

Here is the call graph for this function:

void FSMSADF::OutputHTML::convertScenarioGraphToPNG ( Scenario s,
ScenarioGraph sg,
CString  filename,
CString map 
) [private]

convertScenarioGraphToPNG() The function converts the supplied scenario graph to a PNG image and store it in the supplied filename. An XHTML image map is returned through the map variable.

References a, c, convertGraphToPNG(), FSMSADF::ScenarioGraph::getActors(), getActorURL(), FSMSADF::ScenarioGraph::getChannels(), getChannelURL(), FSMSADF::Channel::getDstActor(), FSMSADF::Channel::getInitialTokens(), FSMSADF::GraphComponent::getName(), FSMSADF::Channel::getSrcActor(), and CString::replace().

Referenced by printScenario().

Here is the call graph for this function:

void FSMSADF::OutputHTML::createOutputDirectory (  )  [private]

createOutputDirectory() Create directory for HTML outpu

References dirname.

Referenced by createOutputFile().

void FSMSADF::OutputHTML::createOutputFile ( const CString name,
ofstream &  out 
) [private]

createOutputFile() Create an output file with the supplied name.

References createOutputDirectory(), and getDirname().

Referenced by createOutputFileApplicationGraph(), createOutputFilePlatformBinding(), createOutputFilePlatformBindings(), and createOutputFilePlatformGraph().

Here is the call graph for this function:

void FSMSADF::OutputHTML::createOutputFileApplicationGraph ( Graph applicationGraph,
ofstream &  out 
) [private]

createOutputFileApplicationGraph() Create a file to output the application graph.

References createOutputFile(), and getApplicationGraphURL().

Referenced by printApplicationGraph().

Here is the call graph for this function:

void FSMSADF::OutputHTML::createOutputFilePlatformBinding ( PlatformBinding platformBinding,
ofstream &  out 
) [private]

createOutputFilePlatformBinding() Create a file to output the platform binding.

References createOutputFile(), and getPlatformBindingURL().

Referenced by printPlatformBinding().

Here is the call graph for this function:

void FSMSADF::OutputHTML::createOutputFilePlatformBindings ( ofstream &  out  )  [private]

createOutputFilePlatformBindings() Create a file to output the platform bindings overview.

References createOutputFile(), and getPlatformBindingsURL().

Referenced by printPlatformBindings().

Here is the call graph for this function:

void FSMSADF::OutputHTML::createOutputFilePlatformGraph ( PlatformGraph platformGraph,
ofstream &  out 
) [private]

createOutputFilePlatformGraph() Create a file to output the platform graph.

References createOutputFile(), and getPlatformGraphURL().

Referenced by printPlatformGraph().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getActorURL ( Scenario s,
Actor a,
bool  onlyName = false 
) [private]

getActorURL() Get an URL for the actor.

References FSMSADF::GraphComponent::getName(), and getScenarioURL().

Referenced by convertPlatformBindingToPNG(), convertScenarioGraphToPNG(), printPlatformBinding(), and printScenario().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getApplicationGraphURL ( Graph applicationGraph  )  [private]

getApplicationGraphURL() Get an URL for the application graph.

References FSMSADF::GraphComponent::getName().

Referenced by createOutputFileApplicationGraph(), getScenarioURL(), printHeader(), and printPlatformBinding().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getChannelURL ( Scenario s,
Channel c,
bool  onlyName = false 
) [private]

getChannelURL() Get an URL for the channel.

References FSMSADF::GraphComponent::getName(), and getScenarioURL().

Referenced by convertPlatformBindingToPNG(), convertScenarioGraphToPNG(), printPlatformBinding(), and printScenario().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getConnectionURL ( Connection c,
bool  onlyName = false 
) [private]
CString FSMSADF::OutputHTML::getDirname (  )  const [inline]

References dirname.

Referenced by convertGraphToPNG(), and createOutputFile().

CString FSMSADF::OutputHTML::getFSMPicURL (  )  [private]

getFSMPicURL() Get an URL for the FSM picture.

Referenced by printFSM().

CString FSMSADF::OutputHTML::getMemoryURL ( Memory m,
bool  onlyName = false 
) [private]

getMemoryURL() Get an URL for the memory.

References FSMSADF::GraphComponent::getName(), FSMSADF::Memory::getTile(), and getTileURL().

Referenced by printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getNetworkInterfaceURL ( NetworkInterface n,
bool  onlyName = false 
) [private]

getNetworkInterfaceURL() Get an URL for the network interface.

References FSMSADF::GraphComponent::getName(), FSMSADF::NetworkInterface::getTile(), and getTileURL().

Referenced by printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getPlatformBindingPicURL ( Scenario s,
PlatformBinding pb 
) [private]

getPlatformBindingPicURL() Get an URL for the platform binding picture.

References FSMSADF::GraphComponent::getName().

Referenced by printPlatformBinding().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getPlatformBindingsURL (  )  [private]

getPlatformBindingsURL() Get an URL for the platform bindings.

Referenced by createOutputFilePlatformBindings(), and printHeader().

CString FSMSADF::OutputHTML::getPlatformBindingURL ( PlatformBinding platformBinding  )  [private]

getPlatformBindingURL() Get an URL for the platform binding.

References FSMSADF::GraphComponent::getName().

Referenced by createOutputFilePlatformBinding(), getScenarioPlatformBindingURL(), and printPlatformBindings().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getPlatformGraphPicURL ( PlatformGraph pg  )  [private]

getPlatformGraphPicURL() Get an URL for the platform graph picture.

References FSMSADF::GraphComponent::getName().

Referenced by printPlatformGraph().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getPlatformGraphURL ( PlatformGraph platformGraph  )  [private]

getPlatformGraphURL() Get an URL for the platform graph.

References FSMSADF::GraphComponent::getName().

Referenced by createOutputFilePlatformGraph(), getConnectionURL(), getTileURL(), printHeader(), and printPlatformBinding().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getProcessorURL ( Processor p,
bool  onlyName = false 
) [private]

getProcessorURL() Get an URL for the processor.

References FSMSADF::GraphComponent::getName(), FSMSADF::Processor::getTile(), and getTileURL().

Referenced by printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getScenarioGraphPicURL ( Scenario s  )  [private]

getScenarioGraphPicURL() Get an URL for the scenario graph picture.

References FSMSADF::GraphComponent::getName().

Referenced by printScenario().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getScenarioPlatformBindingURL ( Scenario s,
PlatformBinding pb,
bool  onlyName = false 
) [private]

getScenarioPlatformBindingURL() Get an URL for the platform binding of scenario s.

References FSMSADF::GraphComponent::getName(), and getPlatformBindingURL().

Referenced by printPlatformBinding().

Here is the call graph for this function:

CString FSMSADF::OutputHTML::getScenarioURL ( Scenario s,
bool  onlyName = false 
) [private]
CString FSMSADF::OutputHTML::getTileURL ( Tile t,
bool  onlyName = false 
) [private]
void FSMSADF::OutputHTML::outputAsHTML ( SDF3Flow flow  ) 

outputAsHTML() Output the flow as a set of HTML files.

References printApplicationGraph(), printPlatformBindings(), and printPlatformGraph().

Referenced by FSMSADF::SDF3Flow::convertToHTML().

Here is the call graph for this function:

void FSMSADF::OutputHTML::printApplicationGraph ( SDF3Flow flow  )  [private]
void FSMSADF::OutputHTML::printFooter ( ostream &  ofile,
SDF3Flow flow 
) [private]

printFooter() Print the HTML footer to the supplied output stream.

Referenced by printApplicationGraph(), printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().

void FSMSADF::OutputHTML::printFSM ( FSM fsm,
ostream &  ofile 
) [private]

printFSM() Print the FSM to the supplied stream.

References convertFSMToPNG(), and getFSMPicURL().

Referenced by printApplicationGraph().

Here is the call graph for this function:

void FSMSADF::OutputHTML::printHeader ( ostream &  ofile,
SDF3Flow flow 
) [private]
void FSMSADF::OutputHTML::printPlatformBinding ( PlatformBinding pb,
SDF3Flow flow 
) [private]

printPlatformBinding() Print platform binding.

References a, c, convertPlatformBindingToPNG(), createOutputFilePlatformBinding(), FSMSADF::ScenarioGraph::getActors(), getActorURL(), FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthInConnections(), FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthOutConnections(), FSMSADF::MemoryBinding::getAllocatedMemorySize(), FSMSADF::NetworkInterfaceBinding::getAllocatedNrInConnections(), FSMSADF::NetworkInterfaceBinding::getAllocatedNrOutConnections(), FSMSADF::ProcessorBinding::getAllocatedWheelsize(), FSMSADF::PlatformBinding::getApplicationGraph(), getApplicationGraphURL(), FSMSADF::ScenarioGraph::getChannels(), getChannelURL(), FSMSADF::ConnectionBinding::getConnection(), FSMSADF::PlatformBinding::getConnectionBindings(), getConnectionURL(), FSMSADF::NetworkInterface::getInBandwidth(), FSMSADF::NetworkInterfaceBinding::getInBandwidthUsedForGraph(), FSMSADF::NetworkInterface::getMaxNrInConnections(), FSMSADF::NetworkInterface::getMaxNrOutConnections(), FSMSADF::MemoryBinding::getMemory(), FSMSADF::TileBinding::getMemoryBindings(), FSMSADF::MemoryBinding::getMemorySizeUsedForGraph(), getMemoryURL(), FSMSADF::GraphComponent::getName(), FSMSADF::NetworkInterfaceBinding::getNetworkInterface(), FSMSADF::TileBinding::getNetworkInterfaceBindings(), getNetworkInterfaceURL(), FSMSADF::NetworkInterfaceBinding::getNrInConnectionsUsedForGraph(), FSMSADF::NetworkInterfaceBinding::getNrOutConnectionsUsedForGraph(), FSMSADF::NetworkInterface::getOutBandwidth(), FSMSADF::NetworkInterfaceBinding::getOutBandwidthUsedForGraph(), getPlatformBindingPicURL(), FSMSADF::PlatformBinding::getPlatformGraph(), getPlatformGraphURL(), FSMSADF::ProcessorBinding::getProcessor(), FSMSADF::TileBinding::getProcessorBindings(), getProcessorURL(), FSMSADF::Scenario::getScenarioGraph(), getScenarioPlatformBindingURL(), FSMSADF::Graph::getScenarios(), FSMSADF::Memory::getSize(), FSMSADF::StaticOrderSchedule::getStartPeriodicSchedule(), FSMSADF::ProcessorBinding::getStaticOrderSchedule(), FSMSADF::TileBinding::getTile(), FSMSADF::PlatformBinding::getTileBindings(), getTileURL(), FSMSADF::Processor::getWheelsize(), FSMSADF::ProcessorBinding::getWheelsizeUsedForGraph(), FSMSADF::MemoryBinding::hasActorBinding(), FSMSADF::ConnectionBinding::hasChannelBinding(), FSMSADF::MemoryBinding::hasChannelBinding(), FSMSADF::NetworkInterfaceBinding::hasInChannelBinding(), FSMSADF::NetworkInterfaceBinding::hasOutChannelBinding(), FSMSADF::ProcessorBinding::hasStaticOrderSchedule(), printFooter(), printHeader(), and CString::replace().

Referenced by printPlatformBindings().

void FSMSADF::OutputHTML::printStylesheet ( ostream &  ofile  )  [private]

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

Referenced by printHeader().

void FSMSADF::OutputHTML::setDirname ( const CString name  )  [inline]

References dirname.

Referenced by FSMSADF::SDF3Flow::convertToHTML().


Member Data Documentation


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