#include <port.h>

Inheritance diagram for CSDFport:
Collaboration diagram for CSDFport:

List of all members.

Public Types

enum  CSDFportType { In, Out }

Public Member Functions

 CSDFport (CSDFcomponent &c)
virtual ~CSDFport ()
virtual CSDFportcreate (CSDFcomponent &c) const
virtual CSDFportcreateCopy (CSDFcomponent &c) const
virtual CSDFportclone (CSDFcomponent &c) const
void construct (const CNodePtr portNode)
CSDFportType getType () const
CString getTypeAsString () const
void setType (const CSDFportType t)
void setType (const CString &t)
CSDFrategetRate ()
void setRate (const CSDFrate &r)
CSDFchannelgetChannel () const
void connectToChannel (CSDFchannel *c)
CSDFactorgetActor () const
bool isConnected () const
ostream & print (ostream &out)

Private Attributes

CSDFportType type
CSDFrate rate
CSDFchannelchannel

Friends

ostream & operator<< (ostream &out, CSDFport &p)

Detailed Description

CSDFport Port on an CSDF actor.


Member Enumeration Documentation

Enumerator:
In 
Out 

Constructor & Destructor Documentation

CSDFport::CSDFport ( CSDFcomponent c  ) 

CSDFport () Constructor.

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

CSDFport::~CSDFport (  )  [virtual]

~CSDFport () Destructor.


Member Function Documentation

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

clone () The function returns a pointer to a newly allocated CSDF port object. The properties of the port are also cloned. Note: the connection to the channel is lost. Cloning the channel restores this connection.

References CSDFport(), CSDFcomponent::getName(), getType(), rate, CSDFcomponent::setName(), setRate(), and setType().

Referenced by CSDFactor::clone(), and TimedCSDFactor::clone().

Here is the call graph for this function:

void CSDFport::connectToChannel ( CSDFchannel c  ) 

connectToChannel () The function connects the port to a channel. A connection can only be made if the port is not yet connected.

References channel, CSDFcomponent::getName(), CSDFcomponent::getParent(), and isConnected().

Referenced by CSDFchannel::connectDst(), and CSDFchannel::connectSrc().

Here is the call graph for this function:

void CSDFport::construct ( const CNodePtr  portNode  ) 

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

References CGetAttribute(), CHasAttribute(), CSDFcomponent::setName(), setRate(), and setType().

Referenced by constructCSDFgraph(), and constructTimedCSDFgraphStructure().

Here is the call graph for this function:

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

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

References CSDFport().

Here is the call graph for this function:

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

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

References CSDFport(), CSDFcomponent::getName(), getType(), rate, CSDFcomponent::setName(), setRate(), and setType().

Here is the call graph for this function:

CSDFactor* CSDFport::getActor (  )  const [inline]

References CSDFcomponent::getParent().

Referenced by CSDFgraph::calcFractionsConnectedActors().

Here is the call graph for this function:

CString CSDFport::getTypeAsString (  )  const [inline]

References In, and type.

Referenced by createCSDFnode(), and print().

bool CSDFport::isConnected (  )  const

isConnected () The function return true if the port is connected to a channel, else it returns false.

References getChannel().

Referenced by connectToChannel(), CSDFactor::isConnected(), and print().

Here is the call graph for this function:

ostream & CSDFport::print ( ostream &  out  ) 

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

References CSDFcomponent::getId(), CSDFcomponent::getName(), getRate(), getTypeAsString(), and isConnected().

Referenced by CSDFactor::print(), and TimedCSDFactor::print().

Here is the call graph for this function:

void CSDFport::setRate ( const CSDFrate r  )  [inline]
void CSDFport::setType ( const CSDFportType  t  )  [inline]

References type.

Referenced by clone(), construct(), createCopy(), and CSDFactor::createPort().

void CSDFport::setType ( const CString t  )  [inline]

References type.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
CSDFport p 
) [friend]

Member Data Documentation


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