class CScheduler


Inheritance:


Public Methods

[more] CScheduler(const CScheduler* pSuperBlock, const CDSLibComponent* pContainer = NULL)
Copy-constructor.
[more]virtual ~CScheduler()
Destructor
[more]virtual bool AcceptsContainer(const CDSLibComponent* pContainer)
If the argument is a CDynamicSystem or any descendant class, sets the argument as the container and returns true.
[more]virtual bool AddComponent(CDSLibComponent* pComponent)
If pComponent is a CInput, COutput, or any of their descendants, generates the message CANT_ADD_IO_TO_SCHEDULER_ERROR and returns false.
[more]bool ContainsReader() const
Returns if this scheduler contains CReader components
[more]bool ContainsWriter() const
Returns if this scheduler contains CWriter components
[more]unsigned int CPU() const
Returns the CPU where this scheduler's operations will be executed
[more]virtual bool DescendantOf(const std::string & strClassName) const
Returns if strClassName is "CScheduler" or the name of one of its base classes.
[more]virtual const std::string GlobalIdentifier() const
Redefines GlobalIdentifier() in CBlock so it returns Identifier() here
[more]int Priority() const
Returns the priority of execution for this scheduler
[more]bool SetCPU(unsigned int uiCPU)
Sets the CPU where this scheduler's operations will be executed.
[more]bool SetPriority(int iPriority)
Sets the priority of execution for this scheduler.
[more]virtual std::string Value(const std::string & strValueName) const
Returns a string to be inserted in the generated code instead of a <value > template command.

Public Members

[more] Base class for schedulers, which are superblocks with an associated execution schedule.


Inherited from CSuperBlock:

Public Methods

obool AddInput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
obool AddInputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
obool AddOutput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
obool AddOutputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
ovirtual std::string Class() const
oCSuperBlock* Clone(const CDSLibComponent* pContainer = NULL) const

Public Members

o Block whose operation is defined by its contained blocks

Protected Methods

ovirtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const


Inherited from CBlock:

Public Methods

oCBlockVariable* BlockVariable(const std::string & strIdentifier) const
oCBlockVariable* BlockVariable(unsigned int uIndex) const
oCInput* Input(const std::string & strName) const
oCInput* Input(unsigned int uIndex) const
ovirtual unsigned int NumberOfBlockVariables() const
ovirtual unsigned int NumberOfInputs() const
ovirtual unsigned int NumberOfOutputs() const
oCOutput* Output(const std::string & strName) const
oCOutput* Output(unsigned int uIndex) const
obool SchedulerContainsReader() const
obool SchedulerContainsWriter() const


Inherited from CDSLibComponent:

Public Methods

obool AllArrange()
ovoid AllGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
ovirtual bool AllRepeatedValue(const CDSLibComponent* pCaller, const std::string & strValueName, const std::string & strValue) const
ovoid AllReportMessages(CMessages* pMessagesReport)
oconst CDSLibComponent* Component(const std::string & strIdentifier, const std::string & strClass) const
oconst CDSLibComponentPointers& Components() const
oconst CDSLibComponent* Container( const std::string & strClass = "", unsigned int uSkip = 0) const
ovoid DeleteObjects()
oconst std::string& Identifier() const
oint ComponentIndex() const
oconst CMessages& Messages() const
ovirtual bool RepeatedValue(const std::string &, const std::string &) const
obool SetIdentifier(const std::string & strIdentifier)

Protected Methods

ovirtual void AddMessage(unsigned int uNumber)
ovirtual void Arrange()
oCDSLibComponentPointers& Components()
ovirtual void ComponentsGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
ostd::string LongLongToString(long long llNumber) const
oCMessages& Messages()
obool ParseTemplate(const std::string & strTemplatesPath, const std::string & strTemplate, CCodeSection* pOutputSection) const
ovoid SetContainer(const CDSLibComponent* pContainer)
olong long StringToLongLong(const std::string &strNumber) const
ostd::string DoubleToString(double dNumber) const


Documentation

o Base class for schedulers, which are superblocks with an associated execution schedule.
Base class for schedulers, which are superblocks with an associated execution schedule. Schedulers must be the top-level blocks of any dynamic system, so they define the execution of every block contained by them.

o CScheduler(const CScheduler* pSuperBlock, const CDSLibComponent* pContainer = NULL)
Copy-constructor. Copies all the attributes of CScheduler and calls the copy-constructor of CSuperBlock.
Parameters:
pSuperBlock - Object to copy from.
pContainer - Container for this new object.

ovirtual ~CScheduler()
Destructor

ovirtual bool AcceptsContainer(const CDSLibComponent* pContainer)
If the argument is a CDynamicSystem or any descendant class, sets the argument as the container and returns true. Otherwise, it generates the message NON_SUITABLE_CONTAINER_ERROR and return false.
Parameters:
pContainer - Container for this component.

ovirtual bool AddComponent(CDSLibComponent* pComponent)
If pComponent is a CInput, COutput, or any of their descendants, generates the message CANT_ADD_IO_TO_SCHEDULER_ERROR and returns false. Otherwise, calls AddComponent in CSuperBlock and returns the result.
Parameters:
pComponent - Component for this container.

obool ContainsReader() const
Returns if this scheduler contains CReader components

obool ContainsWriter() const
Returns if this scheduler contains CWriter components

ounsigned int CPU() const
Returns the CPU where this scheduler's operations will be executed

ovirtual bool DescendantOf(const std::string & strClassName) const
Returns if strClassName is "CScheduler" or the name of one of its base classes.
Parameters:
strClassName - Class name.

ovirtual const std::string GlobalIdentifier() const
Redefines GlobalIdentifier() in CBlock so it returns Identifier() here

oint Priority() const
Returns the priority of execution for this scheduler

obool SetCPU(unsigned int uiCPU)
Sets the CPU where this scheduler's operations will be executed.
Parameters:
uiCPU - CPU number.

obool SetPriority(int iPriority)
Sets the priority of execution for this scheduler.
Parameters:
iPriority - Priority.

ovirtual std::string Value(const std::string & strValueName) const
Returns a string to be inserted in the generated code instead of a <value > template command.
Parameters:
strValueName - Value of the "name" parameter of the template command.


Direct child classes:
CPeriodicScheduler
Author:
Ivan Martinez

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.