CSDFactor Class Reference
#include <actor.h>
Public Member Functions | |
CSDFactor (CSDFcomponent &c) | |
virtual | ~CSDFactor () |
virtual CSDFactor * | create (CSDFcomponent &c) const |
virtual CSDFactor * | createCopy (CSDFcomponent &c) const |
virtual CSDFactor * | clone (CSDFcomponent &c) const |
void | construct (const CNodePtr actorNode) |
CString | getType () const |
void | setType (const CString &t) |
CSDFport * | getPort (const CId id) |
CSDFport * | getPort (const CString &name) |
CSDFports & | getPorts () |
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 CSDFport * | createPort (CSDFcomponent &c) |
CSDFport * | createPort (const CString &type, const CSDFrate rate) |
uint | sequenceLength () const |
bool | isConnected () const |
CSDFgraph * | getGraph () 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().
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().
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().
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().
CSDFport * CSDFactor::createPort | ( | CSDFcomponent & | c | ) | [virtual] |
createPort () Create a new port on the actor.
References addPort().
Referenced by CSDFgraph::createChannel(), TimedCSDFgraph::createChannel(), and createPort().
createPort () Create a new port on the actor.
References c, createPort(), CSDFcomponent::CSDFcomponent(), nrPorts(), CSDFport::setRate(), and CSDFport::setType().
CSDFgraph* CSDFactor::getGraph | ( | ) | const [inline] |
getPort () The function returns a reference to a port with the given name.
References CSDFcomponent::getName(), and ports.
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().
CSDFports& CSDFactor::getPorts | ( | ) | [inline] |
References ports.
Referenced by TimedCSDFactor::print().
CString CSDFactor::getType | ( | ) | const [inline] |
References type.
Referenced by clone(), createCopy(), TimedCSDFactor::createCopy(), createCSDFnode(), print(), and TimedCSDFactor::print().
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().
uint CSDFactor::nrPorts | ( | ) | const [inline] |
References ports.
Referenced by clone(), TimedCSDFactor::clone(), CSDFgraph::createChannel(), TimedCSDFgraph::createChannel(), and createPort().
CSDFportsIter CSDFactor::portsBegin | ( | ) | [inline] |
References ports.
Referenced by CSDFstateSpaceThroughputAnalysis::TransitionSystem::actorReadyToFire(), CSDFstateSpaceBufferAnalysis::TransitionSystem::actorReadyToFire(), CSDFgraph::calcFractionsConnectedActors(), TimedCSDFactor::clone(), createCSDFnode(), CSDFstateSpaceThroughputAnalysis::TransitionSystem::endActorFiring(), CSDFstateSpaceBufferAnalysis::TransitionSystem::endActorFiring(), CSDFstateSpaceBufferAnalysis::TransitionSystem::findCausalDependencies(), generateCSDFgraph(), getAdjacentActors(), CSDFstateSpaceThroughputAnalysis::TransitionSystem::startActorFiring(), and CSDFstateSpaceBufferAnalysis::TransitionSystem::startActorFiring().
CSDFportsCIter CSDFactor::portsBegin | ( | ) | const [inline] |
References ports.
CSDFportsIter CSDFactor::portsEnd | ( | ) | [inline] |
References ports.
Referenced by CSDFstateSpaceThroughputAnalysis::TransitionSystem::actorReadyToFire(), CSDFstateSpaceBufferAnalysis::TransitionSystem::actorReadyToFire(), CSDFgraph::calcFractionsConnectedActors(), TimedCSDFactor::clone(), createCSDFnode(), CSDFstateSpaceThroughputAnalysis::TransitionSystem::endActorFiring(), CSDFstateSpaceBufferAnalysis::TransitionSystem::endActorFiring(), CSDFstateSpaceBufferAnalysis::TransitionSystem::findCausalDependencies(), generateCSDFgraph(), getAdjacentActors(), CSDFstateSpaceThroughputAnalysis::TransitionSystem::startActorFiring(), and CSDFstateSpaceBufferAnalysis::TransitionSystem::startActorFiring().
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().
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().
void CSDFactor::removePorts | ( | ) |
removePorts () Remove all ports from the actor and destroy their memory space.
References ports.
uint CSDFactor::sequenceLength | ( | ) | const [inline] |
void CSDFactor::setType | ( | const CString & | t | ) | [inline] |
References type.
Referenced by addCSDFactorToGraph(), clone(), construct(), createCopy(), and TimedCSDFactor::createCopy().
Friends And Related Function Documentation
ostream& operator<< | ( | ostream & | out, | |
CSDFactor & | a | |||
) | [friend] |
Member Data Documentation
CSDFports CSDFactor::ports [private] |
Referenced by addPort(), clone(), getPort(), getPorts(), isConnected(), nrPorts(), portsBegin(), portsEnd(), print(), TimedCSDFactor::print(), removePort(), removePorts(), sequenceLength(), and ~CSDFactor().
CString CSDFactor::type [private] |
The documentation for this class was generated from the following files: