FSMSADF::ChannelBindingConstraints Class Reference

#include <constraint.h>

Collaboration diagram for FSMSADF::ChannelBindingConstraints:

List of all members.

Public Member Functions

 ChannelBindingConstraints (const Channel *c)
 ~ChannelBindingConstraints ()
ChannelBindingConstraintsclone (Channel *c)
void constructFromXML (const CNodePtr channelConstraintsNode)
void convertToXML (const CNodePtr channelConstraintsNode)
const ChannelgetChannel () 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 Channelchannel
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 (  ) 

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void FSMSADF::ChannelBindingConstraints::convertToXML ( const CNodePtr  channelConstraintsNode  ) 
Bandwidth FSMSADF::ChannelBindingConstraints::getBandwidth (  )  const
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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


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