FSMSADF::OutputHTML Class Reference
#include <html.h>
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
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().
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().
void FSMSADF::OutputHTML::convertPlatformBindingToPNG | ( | Scenario * | s, | |
PlatformBinding * | pb, | |||
CString | filename, | |||
CString & | map | |||
) | [private] |
convertPlatformBindingToPNG() The function converts the supplied platform binding 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::PlatformGraph::getConnections(), getConnectionURL(), FSMSADF::Channel::getDstActor(), FSMSADF::Connection::getDstNetworkInterface(), FSMSADF::Channel::getInitialTokens(), FSMSADF::GraphComponent::getName(), FSMSADF::PlatformBinding::getPlatformGraph(), FSMSADF::TileBinding::getProcessorBindings(), FSMSADF::Scenario::getScenarioGraph(), FSMSADF::Channel::getSrcActor(), FSMSADF::Connection::getSrcNetworkInterface(), FSMSADF::TileBinding::getTile(), FSMSADF::NetworkInterface::getTile(), FSMSADF::PlatformBinding::getTileBindings(), FSMSADF::PlatformGraph::getTiles(), getTileURL(), FSMSADF::ProcessorBinding::hasActorBinding(), and CString::replace().
Referenced by printPlatformBinding().
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().
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().
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().
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().
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().
void FSMSADF::OutputHTML::createOutputFilePlatformBindings | ( | ofstream & | out | ) | [private] |
createOutputFilePlatformBindings() Create a file to output the platform bindings overview.
References createOutputFile(), and getPlatformBindingsURL().
Referenced by printPlatformBindings().
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().
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().
getApplicationGraphURL() Get an URL for the application graph.
References FSMSADF::GraphComponent::getName().
Referenced by createOutputFileApplicationGraph(), getScenarioURL(), printHeader(), and printPlatformBinding().
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().
CString FSMSADF::OutputHTML::getConnectionURL | ( | Connection * | c, | |
bool | onlyName = false | |||
) | [private] |
getConnectionURL() Get an URL for the connection.
References FSMSADF::Connection::getGraph(), FSMSADF::GraphComponent::getName(), and getPlatformGraphURL().
Referenced by convertPlatformBindingToPNG(), convertPlatformGraphToPNG(), printPlatformBinding(), and printPlatformGraph().
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().
getMemoryURL() Get an URL for the memory.
References FSMSADF::GraphComponent::getName(), FSMSADF::Memory::getTile(), and getTileURL().
Referenced by printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().
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().
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().
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().
CString FSMSADF::OutputHTML::getPlatformGraphPicURL | ( | PlatformGraph * | pg | ) | [private] |
getPlatformGraphPicURL() Get an URL for the platform graph picture.
References FSMSADF::GraphComponent::getName().
Referenced by printPlatformGraph().
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().
getProcessorURL() Get an URL for the processor.
References FSMSADF::GraphComponent::getName(), FSMSADF::Processor::getTile(), and getTileURL().
Referenced by printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().
getScenarioGraphPicURL() Get an URL for the scenario graph picture.
References FSMSADF::GraphComponent::getName().
Referenced by printScenario().
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().
getScenarioURL() Get an URL for the scenario.
References getApplicationGraphURL(), FSMSADF::Scenario::getGraph(), and FSMSADF::GraphComponent::getName().
Referenced by convertFSMToPNG(), getActorURL(), getChannelURL(), printApplicationGraph(), and printScenario().
getTileURL() Get an URL for the tile.
References FSMSADF::GraphComponent::getName(), FSMSADF::GraphComponent::getParent(), and getPlatformGraphURL().
Referenced by convertPlatformBindingToPNG(), convertPlatformGraphToPNG(), getMemoryURL(), getNetworkInterfaceURL(), getProcessorURL(), printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().
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().
void FSMSADF::OutputHTML::printApplicationGraph | ( | SDF3Flow * | flow | ) | [private] |
printApplicationGraph() Print application graph.
References createOutputFileApplicationGraph(), FSMSADF::SDF3Flow::getApplicationGraph(), FSMSADF::Graph::getFSM(), FSMSADF::GraphComponent::getName(), FSMSADF::Graph::getScenarios(), getScenarioURL(), printFooter(), printFSM(), printHeader(), and printScenario().
Referenced by outputAsHTML().
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().
void FSMSADF::OutputHTML::printHeader | ( | ostream & | ofile, | |
SDF3Flow * | flow | |||
) | [private] |
printHeader() Print the HTML header to the supplied output stream.
References FSMSADF::SDF3Flow::getApplicationGraph(), getApplicationGraphURL(), getPlatformBindingsURL(), FSMSADF::SDF3Flow::getPlatformGraph(), getPlatformGraphURL(), and printStylesheet().
Referenced by printApplicationGraph(), printPlatformBinding(), printPlatformBindings(), and printPlatformGraph().
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::printPlatformBindings | ( | SDF3Flow * | flow | ) | [private] |
printPlatformBindings() Print all platform bindings.
References FSMSADF::GraphBinding::ParetoQuantities::communicationLoad, FSMSADF::GraphBinding::computeParetoQuantities(), FSMSADF::computeRepetitionVector(), createOutputFilePlatformBindings(), FSMSADF::SDF3Flow::getApplicationGraph(), FSMSADF::Tile::getMemories(), getMemoryURL(), FSMSADF::GraphComponent::getName(), FSMSADF::Tile::getNetworkInterfaces(), getNetworkInterfaceURL(), FSMSADF::GraphBinding::getParetoQuantities(), FSMSADF::SDF3Flow::getPlatformBindings(), getPlatformBindingURL(), FSMSADF::SDF3Flow::getPlatformGraph(), FSMSADF::Tile::getProcessors(), getProcessorURL(), FSMSADF::Scenario::getScenarioGraph(), FSMSADF::Graph::getScenarios(), FSMSADF::PlatformGraph::getTiles(), getTileURL(), FSMSADF::GraphBinding::ParetoQuantities::memoryLoad, printFooter(), printHeader(), printPlatformBinding(), and FSMSADF::GraphBinding::ParetoQuantities::processingLoad.
Referenced by outputAsHTML().
void FSMSADF::OutputHTML::printPlatformGraph | ( | SDF3Flow * | flow | ) | [private] |
printPlatformGraph() Print platform graph.
References c, convertPlatformGraphToPNG(), createOutputFilePlatformGraph(), FSMSADF::Processor::getArbitrationType(), FSMSADF::PlatformGraph::getConnections(), getConnectionURL(), FSMSADF::Processor::getContextSwitchOverhead(), FSMSADF::Connection::getDstNetworkInterface(), FSMSADF::NetworkInterface::getInBandwidth(), FSMSADF::Connection::getLatency(), FSMSADF::NetworkInterface::getMaxNrInConnections(), FSMSADF::NetworkInterface::getMaxNrOutConnections(), FSMSADF::Tile::getMemories(), getMemoryURL(), FSMSADF::GraphComponent::getName(), FSMSADF::Tile::getNetworkInterfaces(), getNetworkInterfaceURL(), FSMSADF::NetworkInterface::getOutBandwidth(), FSMSADF::SDF3Flow::getPlatformGraph(), getPlatformGraphPicURL(), FSMSADF::Tile::getProcessors(), getProcessorURL(), FSMSADF::Memory::getSize(), FSMSADF::Connection::getSrcNetworkInterface(), FSMSADF::NetworkInterface::getTile(), FSMSADF::PlatformGraph::getTiles(), getTileURL(), FSMSADF::Processor::getType(), FSMSADF::Processor::getWheelsize(), FSMSADF::Processor::hasSupportForPreemption(), printFooter(), printHeader(), and CString::replace().
Referenced by outputAsHTML().
void FSMSADF::OutputHTML::printScenario | ( | Scenario * | s, | |
ostream & | ofile | |||
) | [private] |
printScenario() Print the scenario in HTML format to the supplied output stream.
References a, c, convertScenarioGraphToPNG(), FSMSADF::ScenarioGraph::getActors(), getActorURL(), FSMSADF::ScenarioGraph::getChannels(), getChannelURL(), FSMSADF::Actor::getDefaultProcessorType(), FSMSADF::Channel::getDstActor(), FSMSADF::Channel::getDstPort(), FSMSADF::Actor::getExecutionTimeOfScenario(), FSMSADF::Channel::getInitialTokens(), FSMSADF::GraphComponent::getName(), FSMSADF::Actor::getProcessorTypes(), FSMSADF::Port::getRateOfScenario(), FSMSADF::Scenario::getScenarioGraph(), getScenarioGraphPicURL(), getScenarioURL(), FSMSADF::Channel::getSrcActor(), FSMSADF::Channel::getSrcPort(), FSMSADF::Actor::getStateSizeOfScenario(), FSMSADF::Channel::getTokenSizeOfScenario(), and FSMSADF::Actor::ProcessorType::type.
Referenced by printApplicationGraph().
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
CString FSMSADF::OutputHTML::dirname [private] |
Referenced by createOutputDirectory(), getDirname(), OutputHTML(), and setDirname().
The documentation for this class was generated from the following files: