CSDFactor Class Reference

#include <actor.h>

Inheritance diagram for CSDFactor:
Collaboration diagram for CSDFactor:

List of all members.

Public Member Functions

 CSDFactor (CSDFcomponent &c)
virtual ~CSDFactor ()
virtual CSDFactorcreate (CSDFcomponent &c) const
virtual CSDFactorcreateCopy (CSDFcomponent &c) const
virtual CSDFactorclone (CSDFcomponent &c) const
void construct (const CNodePtr actorNode)
CString getType () const
void setType (const CString &t)
CSDFportgetPort (const CId id)
CSDFportgetPort (const CString &name)
CSDFportsgetPorts ()
uint nrPorts () const
CSDFportsIter portsBegin ()
CSDFportsIter portsEnd ()
CSDFportsCIter portsBegin () const
CSDFportsCIter portsEnd () const
void addPort (CSDFport *p)
void removePort (const CString &name)
void removePorts ()
virtual CSDFportcreatePort (CSDFcomponent &c)
CSDFportcreatePort (const CString &type, const CSDFrate rate)
uint sequenceLength () const
bool isConnected () const
CSDFgraphgetGraph () const
ostream & print (ostream &out)

Private Attributes

CString type
CSDFports ports

Friends

ostream & operator<< (ostream &out, CSDFactor &a)

Detailed Description

CSDFactor Actor in CSDF graph


Constructor & Destructor Documentation

CSDFactor::CSDFactor ( CSDFcomponent c  ) 

SDFactor () Constructor.

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

CSDFactor::~CSDFactor (  )  [virtual]

~CSDFactor () Destructor.

References ports.


Member Function Documentation

void CSDFactor::addPort ( CSDFport p  ) 

addPort () Add a port to an actor.

References ports.

Referenced by clone(), TimedCSDFactor::clone(), constructCSDFgraph(), constructTimedCSDFgraphStructure(), and createPort().

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

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

Reimplemented in TimedCSDFactor.

References a, addPort(), CSDFport::clone(), component, CSDFactor(), CSDFcomponent::CSDFcomponent(), CSDFcomponent::getName(), getType(), nrPorts(), ports, CSDFcomponent::setName(), and setType().

Here is the call graph for this function:

void CSDFactor::construct ( const CNodePtr  actorNode  ) 

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

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

Referenced by constructCSDFgraph(), and constructTimedCSDFgraphStructure().

Here is the call graph for this function:

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

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

Reimplemented in TimedCSDFactor.

References CSDFactor().

Here is the call graph for this function:

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

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

Reimplemented in TimedCSDFactor.

References a, CSDFactor(), CSDFcomponent::getName(), getType(), CSDFcomponent::setName(), and setType().

Here is the call graph for this function:

CSDFport * CSDFactor::createPort ( CSDFcomponent c  )  [virtual]

createPort () Create a new port on the actor.

References addPort().

Referenced by CSDFgraph::createChannel(), TimedCSDFgraph::createChannel(), and createPort().

Here is the call graph for this function:

CSDFport * CSDFactor::createPort ( const CString type,
const CSDFrate  rate 
)

createPort () Create a new port on the actor.

References c, createPort(), CSDFcomponent::CSDFcomponent(), nrPorts(), CSDFport::setRate(), and CSDFport::setType().

Here is the call graph for this function:

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

References CSDFcomponent::getParent().

Here is the call graph for this function:

CSDFport * CSDFactor::getPort ( const CString name  ) 

getPort () The function returns a reference to a port with the given name.

References CSDFcomponent::getName(), and ports.

Here is the call graph for this function:

CSDFport * CSDFactor::getPort ( const CId  id  ) 

getPort () The function returns a reference to a port with the given id.

References CSDFcomponent::getId(), CSDFcomponent::getName(), and ports.

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

Here is the call graph for this function:

CSDFports& CSDFactor::getPorts (  )  [inline]

References ports.

Referenced by TimedCSDFactor::print().

CString CSDFactor::getType (  )  const [inline]
bool CSDFactor::isConnected (  )  const

isConnected () The function returns true if all ports are connected to a channel, else it returns false.

References CSDFport::isConnected(), and ports.

Referenced by CSDFgraph::isConnected().

Here is the call graph for this function:

uint CSDFactor::nrPorts (  )  const [inline]
CSDFportsCIter CSDFactor::portsBegin (  )  const [inline]

References ports.

CSDFportsCIter CSDFactor::portsEnd (  )  const [inline]

References ports.

ostream & CSDFactor::print ( ostream &  out  ) 

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

Reimplemented in TimedCSDFactor.

References CSDFcomponent::getId(), CSDFcomponent::getName(), getType(), ports, and CSDFport::print().

Referenced by CSDFgraph::print().

Here is the call graph for this function:

void CSDFactor::removePort ( const CString name  ) 

removePort () Remove a port from an actor and destory its memory space.

References CSDFcomponent::getName(), and ports.

Referenced by componentToCSDFgraph().

Here is the call graph for this function:

void CSDFactor::removePorts (  ) 

removePorts () Remove all ports from the actor and destroy their memory space.

References ports.

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

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
CSDFactor a 
) [friend]

Member Data Documentation

Referenced by getType(), and setType().


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