CSDFchannel Class Reference

#include <channel.h>

Inheritance diagram for CSDFchannel:
Collaboration diagram for CSDFchannel:

List of all members.

Public Member Functions

 CSDFchannel (CSDFcomponent &c)
virtual ~CSDFchannel ()
virtual CSDFchannelcreate (CSDFcomponent &c) const
virtual CSDFchannelcreateCopy (CSDFcomponent &c) const
virtual CSDFchannelclone (CSDFcomponent &c) const
void construct (const CNodePtr channelNode)
CSDFportgetSrcPort () const
CSDFportgetDstPort () const
CSDFactorgetSrcActor () const
CSDFactorgetDstActor () const
void connectSrc (CSDFport *p)
void connectDst (CSDFport *p)
CSDFportoppositePort (CSDFport *p) const
uint getInitialTokens () const
void setInitialTokens (const uint t)
bool isConnected () const
CSDFgraphgetGraph () const
ostream & print (ostream &out)

Private Attributes

CSDFportsrc
CSDFportdst
uint initialTokens

Friends

ostream & operator<< (ostream &out, CSDFchannel &c)

Detailed Description

CSDFchannel CSDF channel.


Constructor & Destructor Documentation

CSDFchannel::CSDFchannel ( CSDFcomponent c  ) 

CSDFchannel () Constructor.

Referenced by clone(), create(), and createCopy().

CSDFchannel::~CSDFchannel (  )  [virtual]

~CSDFchannel () Destructor.


Member Function Documentation

CSDFchannel * CSDFchannel::clone ( CSDFcomponent c  )  const [virtual]

clone () The function returns a pointer to a newly allocated CSDF channel object. All properties and the connection of the channel are cloned.

Reimplemented in TimedCSDFchannel.

References connectDst(), connectSrc(), CSDFchannel(), CSDFgraph::getActor(), getDstActor(), getDstPort(), getGraph(), getInitialTokens(), CSDFcomponent::getName(), CSDFactor::getPort(), getSrcActor(), getSrcPort(), setInitialTokens(), and CSDFcomponent::setName().

Here is the call graph for this function:

void CSDFchannel::connectDst ( CSDFport p  ) 

connectDst () The function connects the channel to a destination port and port to channel.

References CSDFport::connectToChannel(), dst, getDstPort(), CSDFcomponent::getName(), and CSDFport::getType().

Referenced by clone(), TimedCSDFchannel::clone(), construct(), CSDFgraph::createChannel(), and TimedCSDFgraph::createChannel().

Here is the call graph for this function:

void CSDFchannel::connectSrc ( CSDFport p  ) 

connectSrc () The function connects the channel to a source port and port to channel.

References CSDFport::connectToChannel(), CSDFcomponent::getName(), getSrcPort(), CSDFport::getType(), and src.

Referenced by clone(), TimedCSDFchannel::clone(), construct(), CSDFgraph::createChannel(), and TimedCSDFgraph::createChannel().

Here is the call graph for this function:

void CSDFchannel::construct ( const CNodePtr  channelNode  ) 

construct () The function initializes all channel properties based on the XML data.

References c, CGetAttribute(), CHasAttribute(), connectDst(), connectSrc(), g, CSDFgraph::getActor(), getGraph(), CSDFactor::getPort(), setInitialTokens(), and CSDFcomponent::setName().

Referenced by constructCSDFgraph(), and constructTimedCSDFgraphStructure().

Here is the call graph for this function:

CSDFchannel * CSDFchannel::create ( CSDFcomponent c  )  const [virtual]

create () The function returns a pointer to a newly allocated CSDF channel object.

Reimplemented in TimedCSDFchannel.

References CSDFchannel().

Here is the call graph for this function:

CSDFchannel * CSDFchannel::createCopy ( CSDFcomponent c  )  const [virtual]

createCopy () The function returns a pointer to a newly allocated CSDF channel object. All properties of the channel are copied.

Reimplemented in TimedCSDFchannel.

References CSDFchannel(), CSDFcomponent::getName(), and CSDFcomponent::setName().

Here is the call graph for this function:

CSDFgraph* CSDFchannel::getGraph (  )  const [inline]

References CSDFcomponent::getParent().

Referenced by clone(), TimedCSDFchannel::clone(), and construct().

Here is the call graph for this function:

bool CSDFchannel::isConnected (  )  const

isConnected () The function returns true if the channel is connected to a source and destination port.

References getDstPort(), and getSrcPort().

Referenced by CSDFgraph::isConnected(), print(), and TimedCSDFchannel::print().

Here is the call graph for this function:

CSDFport* CSDFchannel::oppositePort ( CSDFport p  )  const [inline]

References dst, and src.

Referenced by CSDFgraph::calcFractionsConnectedActors().

ostream & CSDFchannel::print ( ostream &  out  ) 

print () Print the channel to the supplied output stream.

Reimplemented in TimedCSDFchannel.

References getDstActor(), getDstPort(), CSDFcomponent::getId(), getInitialTokens(), CSDFcomponent::getName(), getSrcActor(), getSrcPort(), and isConnected().

Referenced by CSDFgraph::print().

Here is the call graph for this function:

void CSDFchannel::setInitialTokens ( const uint  t  )  [inline]

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
CSDFchannel c 
) [friend]

Member Data Documentation


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