Inheritance:
Public Methods
-
CPeriodicScheduler(const CPeriodicScheduler* pSuperBlock, const CDSLibComponent* pContainer = NULL)
- Copy-constructor.
-
~CPeriodicScheduler()
- Destructor
-
virtual std::string Class() const
- Returns "CPeriodicScheduler"
-
virtual CPeriodicScheduler* Clone( const CDSLibComponent* pContainer= NULL) const
- Returns a new CPeriodicScheduler object copied from this one using the copy-constructor above.
-
virtual bool DescendantOf(const std::string & strClassName) const
- Returns if strClassName is "CPeriodicScheduler" or the name of one of its base classes.
-
long long Period() const
- Returns the execution period, in nanoseconds
-
bool SetPeriod(long long)
- Sets the execution period, in nanoseconds
-
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
-
Superblock that defines a periodic execution for all its contained blocks
Protected Methods
-
virtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
- Makes this object and its contained objects generate code for the section in the arguments.
Public Methods
-
virtual bool AcceptsContainer(const CDSLibComponent* pContainer)
-
virtual bool AddComponent(CDSLibComponent* pComponent)
-
bool ContainsReader() const
-
bool ContainsWriter() const
-
unsigned int CPU() const
-
virtual const std::string GlobalIdentifier() const
-
int Priority() const
-
bool SetCPU(unsigned int uiCPU)
-
bool SetPriority(int iPriority)
Public Members
-
Base class for schedulers, which are superblocks with an associated execution schedule.
Public Methods
-
bool AddInput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
-
bool AddInputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
-
bool AddOutput(const std::string & strIdentifier, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
-
bool AddOutputs(unsigned int uiNumber, const std::string & strType = "float", unsigned int uiArrayLength = 0, bool bRead = false, bool bWrite = false)
Public Members
-
Block whose operation is defined by its contained blocks
Inherited from CBlock:
Public Methods
-
CBlockVariable* BlockVariable(const std::string & strIdentifier) const
-
CBlockVariable* BlockVariable(unsigned int uIndex) const
-
CInput* Input(const std::string & strName) const
-
CInput* Input(unsigned int uIndex) const
-
virtual unsigned int NumberOfBlockVariables() const
-
virtual unsigned int NumberOfInputs() const
-
virtual unsigned int NumberOfOutputs() const
-
COutput* Output(const std::string & strName) const
-
COutput* Output(unsigned int uIndex) const
-
bool SchedulerContainsReader() const
-
bool SchedulerContainsWriter() const
Public Methods
-
bool AllArrange()
-
void AllGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
-
virtual bool AllRepeatedValue(const CDSLibComponent* pCaller, const std::string & strValueName, const std::string & strValue) const
-
void AllReportMessages(CMessages* pMessagesReport)
-
const CDSLibComponent* Component(const std::string & strIdentifier, const std::string & strClass) const
-
const CDSLibComponentPointers& Components() const
-
const CDSLibComponent* Container( const std::string & strClass = "", unsigned int uSkip = 0) const
-
void DeleteObjects()
-
const std::string& Identifier() const
-
int ComponentIndex() const
-
const CMessages& Messages() const
-
virtual bool RepeatedValue(const std::string &, const std::string &) const
-
bool SetIdentifier(const std::string & strIdentifier)
Protected Methods
-
virtual void AddMessage(unsigned int uNumber)
-
virtual void Arrange()
-
CDSLibComponentPointers& Components()
-
virtual void ComponentsGenerateCode(const std::string &strTemplatesPath, CCodeSection* pCodeSection) const
-
std::string LongLongToString(long long llNumber) const
-
CMessages& Messages()
-
bool ParseTemplate(const std::string & strTemplatesPath, const std::string & strTemplate, CCodeSection* pOutputSection) const
-
void SetContainer(const CDSLibComponent* pContainer)
-
long long StringToLongLong(const std::string &strNumber) const
-
std::string DoubleToString(double dNumber) const
Documentation
Superblock that defines a periodic execution for all its contained blocks
- Superblock that defines a periodic execution for all its contained
blocks
CPeriodicScheduler(const CPeriodicScheduler* pSuperBlock, const CDSLibComponent* pContainer = NULL)
- Copy-constructor. Copies all the attributes of CPeriodicScheduler and
calls the copy-constructor of CScheduler.
- Parameters:
- pSuperBlock - Object to copy from.
pContainer - Container for this new object.
~CPeriodicScheduler()
- Destructor
virtual std::string Class() const
- Returns "CPeriodicScheduler"
virtual CPeriodicScheduler* Clone( const CDSLibComponent* pContainer= NULL) const
- Returns a new CPeriodicScheduler object copied from this one using the
copy-constructor above.
- Parameters:
- pContainer - Container for the new object.
virtual bool DescendantOf(const std::string & strClassName) const
- Returns if strClassName is "CPeriodicScheduler" or the name of one of
its base classes.
- Parameters:
- strClassName - Class name.
long long Period() const
- Returns the execution period, in nanoseconds
bool SetPeriod(long long)
- Sets the execution period, in nanoseconds
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.
- Parameters:
- strValueName - Value of the "name" parameter of the template
command.
virtual void GenerateCode(const std::string & strTemplatesPath, CCodeSection* pCodeSection) const
- Makes this object and its contained objects generate code for the
section in the arguments.
- Parameters:
- strTemplatesPath - Path of the folder containing the template files.
pCodeSection - Code section to be generated. It must already point
to a CCodeSection object, which may be modified by adding new sections
and lines to it.
- This class has no child classes.
- Author:
- Ivan Martinez
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.