FSMSADF::ChannelBindingConstraints Class Reference
#include <constraint.h>
Public Member Functions | |
ChannelBindingConstraints (const Channel *c) | |
~ChannelBindingConstraints () | |
ChannelBindingConstraints * | clone (Channel *c) |
void | constructFromXML (const CNodePtr channelConstraintsNode) |
void | convertToXML (const CNodePtr channelConstraintsNode) |
const Channel * | getChannel () const |
BufferSize | getBufferSize () const |
void | setBufferSize (const BufferSize sz) |
bool | hasBufferSizeConstraint () const |
Time | getDelay () const |
void | setDelay (const Time t) |
bool | hasDelayConstraint () const |
Bandwidth | getBandwidth () const |
void | setBandwidth (const Bandwidth b) |
bool | hasBandwidthConstraint () const |
Private Attributes | |
const Channel * | channel |
BufferSize | bufferSize |
bool | bufferSizeConstraint |
Bandwidth | bandwidth |
bool | bandwidthConstraint |
Time | delay |
bool | delayConstraint |
Detailed Description
ChannelBindingConstraints Container for channel binding constraints.
Constructor & Destructor Documentation
FSMSADF::ChannelBindingConstraints::ChannelBindingConstraints | ( | const Channel * | c | ) |
ChannelBindingConstraints() Constructor.
Referenced by clone().
FSMSADF::ChannelBindingConstraints::~ChannelBindingConstraints | ( | ) |
~ChannelBindingConstraints() Destructor.
Member Function Documentation
ChannelBindingConstraints * FSMSADF::ChannelBindingConstraints::clone | ( | Channel * | c | ) |
clone() Create a cloned copy of this channel binding constraints object. The channel relation and all associated scenarios are automatically updated to the supplied channel.
References ChannelBindingConstraints(), getBandwidth(), getBufferSize(), getDelay(), hasBandwidthConstraint(), hasBufferSizeConstraint(), hasDelayConstraint(), setBandwidth(), setBufferSize(), and setDelay().
void FSMSADF::ChannelBindingConstraints::constructFromXML | ( | const CNodePtr | channelConstraintsNode | ) |
constructFromXML() Construct channel binding constraints for scenario s from XML data.
References CGetAttribute(), CGetChildNode(), CHasAttribute(), CHasChildNode(), setBandwidth(), setBufferSize(), and setDelay().
Referenced by FSMSADF::ScenarioBindingConstraints::constructFromXML().
void FSMSADF::ChannelBindingConstraints::convertToXML | ( | const CNodePtr | channelConstraintsNode | ) |
convertToXML() Convert channel bindings constraints of scenario s to XML data.
References CAddAttribute(), CAddNode(), FSMSADF::BufferSize::Dst, getBandwidth(), getBufferSize(), getChannel(), getDelay(), hasBandwidthConstraint(), hasBufferSizeConstraint(), hasDelayConstraint(), FSMSADF::BufferSize::Mem, and FSMSADF::BufferSize::Src.
Bandwidth FSMSADF::ChannelBindingConstraints::getBandwidth | ( | ) | const |
getBandwidth () The function returns the bandwidth of this channel. When no bandwidth has been specified, an exception is thrown.
References bandwidth, getChannel(), and hasBandwidthConstraint().
Referenced by clone(), convertToXML(), FSMSADF::BindingAwareGraph::createMappedChannelToConnectionNSoC(), FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthInConnections(), FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthOutConnections(), FSMSADF::NetworkInterfaceBinding::hasResourcesInChannelBinding(), and FSMSADF::NetworkInterfaceBinding::hasResourcesOutChannelBinding().
BufferSize FSMSADF::ChannelBindingConstraints::getBufferSize | ( | ) | const |
getBufferSize () The function returns the buffer size of this channel. When no buffer size is specified, the an exception is thrown.
References bufferSize, getChannel(), and hasBufferSizeConstraint().
Referenced by clone(), convertToXML(), FSMSADF::BindingAwareGraph::createMappedChannelToConnectionNSoC(), FSMSADF::BindingAwareGraph::createMappedChannelToTileNSoC(), FSMSADF::MemoryBinding::getAllocatedMemorySize(), and FSMSADF::MemoryBinding::hasResourcesChannelBinding().
const Channel* FSMSADF::ChannelBindingConstraints::getChannel | ( | ) | const [inline] |
References channel.
Referenced by convertToXML(), getBandwidth(), getBufferSize(), and getDelay().
Time FSMSADF::ChannelBindingConstraints::getDelay | ( | ) | const |
getDelay () The function returns the delay of this channel. When no delay has been specified, an exception is thrown.
References delay, getChannel(), and hasDelayConstraint().
Referenced by clone(), convertToXML(), and FSMSADF::BindingAwareGraph::createMappedChannelToConnectionNSoC().
bool FSMSADF::ChannelBindingConstraints::hasBandwidthConstraint | ( | ) | const |
hasBandwidthConstraint () The function returns true when a bandwidth has been specified. Otherwise the function returns false.
References bandwidthConstraint.
Referenced by clone(), convertToXML(), and getBandwidth().
bool FSMSADF::ChannelBindingConstraints::hasBufferSizeConstraint | ( | ) | const |
hasBufferSizeConstraint () The function returns true when a buffer size has been specified. Otherwise the function returns false.
References bufferSizeConstraint.
Referenced by clone(), convertToXML(), and getBufferSize().
bool FSMSADF::ChannelBindingConstraints::hasDelayConstraint | ( | ) | const |
hasDelayConstraint () The function returns true when a delay has been specified. Otherwise the function returns false.
References delayConstraint.
Referenced by clone(), convertToXML(), and getDelay().
void FSMSADF::ChannelBindingConstraints::setBandwidth | ( | const Bandwidth | b | ) |
setBandwidth () Set the bandwidth of this channel.
References bandwidth, and bandwidthConstraint.
Referenced by clone(), and constructFromXML().
void FSMSADF::ChannelBindingConstraints::setBufferSize | ( | const BufferSize | sz | ) |
setBufferSize () Set the buffer size of this channel.
References bufferSize, and bufferSizeConstraint.
Referenced by clone(), constructFromXML(), and FSMSADF::MemoryDimAlgo::estimateStorageDist().
void FSMSADF::ChannelBindingConstraints::setDelay | ( | const Time | t | ) |
setDelay () Set the delay of this channel.
References delay, and delayConstraint.
Referenced by clone(), and constructFromXML().
Member Data Documentation
Referenced by getBandwidth(), and setBandwidth().
bool FSMSADF::ChannelBindingConstraints::bandwidthConstraint [private] |
Referenced by hasBandwidthConstraint(), and setBandwidth().
Referenced by getBufferSize(), and setBufferSize().
bool FSMSADF::ChannelBindingConstraints::bufferSizeConstraint [private] |
Referenced by hasBufferSizeConstraint(), and setBufferSize().
const Channel* FSMSADF::ChannelBindingConstraints::channel [private] |
Referenced by getChannel().
Referenced by getDelay(), and setDelay().
bool FSMSADF::ChannelBindingConstraints::delayConstraint [private] |
Referenced by hasDelayConstraint(), and setDelay().
The documentation for this class was generated from the following files: