Processor Class Reference

#include <processor.h>

Inheritance diagram for Processor:
Collaboration diagram for Processor:

List of all members.

Public Member Functions

 Processor (ArchComponent &c)
virtual ~Processor ()
CString getType () const
void setType (const CString &t)
CSize getTimewheelSize () const
void setTimewheelSize (const CSize sz)
CSize getOccupiedTimeSlice () const
void setOccupiedTimeSlice (const CSize sz)
CSize getReservedTimeSlice () const
bool reserveTimeSlice (CSize sz)
bool releaseTimeSlice ()
CSize availableTimewheelSize () const
StaticOrderSchedulegetSchedule ()
void setSchedule (StaticOrderSchedule &s)
bool bindActor (TimedSDFactor *a)
bool unbindActor (TimedSDFactor *a)
CompBindingsgetActorBindings ()

Private Attributes

CString type
CSize wheelSize
CSize occupiedTimeSlice
CSize reservedTimeSlice
StaticOrderSchedule schedule
CompBindingsactorBindings

Detailed Description

Processor Container for processor.


Constructor & Destructor Documentation

Processor::Processor ( ArchComponent c  ) 
virtual Processor::~Processor (  )  [inline, virtual]

References actorBindings.


Member Function Documentation

CSize Processor::availableTimewheelSize (  )  const
bool Processor::bindActor ( TimedSDFactor a  ) 

bindActor () The function tries to bind an actor to the processor. On success, it returns true and adss a binding of the actor to the resource. On failure, it returns false and it does not change the bindings to the processor.

References actorBindings, CompBindings::bind(), TimedSDFactor::getProcessor(), and getType().

Referenced by LoadBalanceBinding::allocateResources(), and setMappingProcessor().

Here is the call graph for this function:

CSize Processor::getOccupiedTimeSlice (  )  const

getOccupiedTimeSlice () The function returns the size of the time slice occupied by other reservations (i.e. this part of the wheel is not available).

References occupiedTimeSlice.

Referenced by SDFconvertToHTML::convertPlatformUsage().

bool Processor::releaseTimeSlice (  ) 

releaseTimeSlice () The function removes the time slice reservation.

References reservedTimeSlice.

Referenced by LoadBalanceBinding::changeSlotAllocation(), LoadBalanceBinding::releaseResources(), and LoadBalanceBinding::releaseTimeSlices().

bool Processor::reserveTimeSlice ( CSize  sz  ) 

reserveTimeSlice () The function tries to reserve a timeslice on the timewheel.

References availableTimewheelSize(), getReservedTimeSlice(), and reservedTimeSlice.

Referenced by LoadBalanceBinding::changeSlotAllocation(), LoadBalanceBinding::minimizeTimeSlices(), LoadBalanceBinding::optimizeTimeSlices(), LoadBalanceBinding::reserveTimeSlices(), and setMappingProcessor().

Here is the call graph for this function:

void Processor::setOccupiedTimeSlice ( const CSize  sz  ) 

getOccupiedTimeSlice () The function sets the size of the time slice occupied by other reservations (i.e. this part of the wheel is not available).

References occupiedTimeSlice, and wheelSize.

Referenced by setUsagePlatformGraph().

void Processor::setTimewheelSize ( const CSize  sz  ) 

setTimewheelSize () The function sets the size of the TDMA timewheel. The reserved slice is lost.

References occupiedTimeSlice, reservedTimeSlice, and wheelSize.

Referenced by constructPlatformGraph().

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

References type.

Referenced by constructPlatformGraph().

bool Processor::unbindActor ( TimedSDFactor a  ) 

unbindActor () The function removes the binding of the actor to the processor.

References actorBindings, and CompBindings::unbind().

Referenced by LoadBalanceBinding::releaseResources().

Here is the call graph for this function:


Member Data Documentation

Referenced by getType(), and setType().


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