#include <CC_TelecommandFactory.h>
Inheritance diagram for CC_TelecommandFactory:
Telecommand
.
A dynamic factory is a component that manages a pool of instances of components of a certain type. Clients of the factory can require one of these instances at run-time. After the factory hands over a component instance to its client, the instance is marked as "in use" and cannot be given to any other clients. When the requesting client has finished using the instance, it should release it by marking it as "no longer in use". This will allow the factory to make it available to other clients that request it. The "in use" status of the component instances is controlled through method setInUse
declared on the component instances.
A dynamic factory is configured in two steps. The first step is performed by the factory constructor when the internal data structures to hold the component instances are created. The second step is performed during application initialization when the component instances are loaded in the factory. Reconfiguration at run time during normal application operation is not allowed.
Dynamic factories are implemented as singletons. They can exist in one single instance that can be accessed through the getInstance
method. The one single instance of the class is created the first time that method getInstance is called. In order to avoid possible disruptions of real-time behaviour, applications should ensure that this method has been called at least once before the application enters its operational phase.
This factory manages the following component instances:<ul> Number of instances of type DC_DummyPUSTelecommand
: 1 Number of instances of type DC_DummyTelecommand
: 2 Number of instances of type DC_PUSControlDataReporting
: 1 Number of instances of type DC_PUSDefineDataReporting
: 1 Number of instances of type DC_PUSDumpMemoryAbsolute
: 1 Number of instances of type DC_PUSDumpMemoryOffset
: 1 Number of instances of type DC_PUSMemoryLoadAbsolute
: 2 Number of instances of type DC_PUSMemoryLoadOffset
: 1 Number of instances of type DC_TestPUSTelecommand
: 3 The code for this class was automatically generated by an XSL program processing the XML-based application model.
Definition at line 69 of file CC_TelecommandFactory.h.
Public Member Functions | |
virtual bool | isObjectConfigured () |
Check that all component instances required by the factory have been loaded. | |
void | setTelecommand (unsigned int i, DC_DummyPUSTelecommand *pItem) |
Load one instance of type DC_DummyPUSTelecommand in the factory. | |
unsigned int | getNumberDummyPUSTelecommand (void) |
Return the number of component instances of type DC_DummyPUSTelecommand that are currently allocated. | |
unsigned int | getCapacityDummyPUSTelecommand (void) |
Return the number of component instances of type DC_DummyPUSTelecommand that are in the factory. | |
DC_DummyPUSTelecommand * | allocateDummyPUSTelecommand () |
Allocate one instance of type DC_DummyPUSTelecommand . | |
bool | isFreeDummyPUSTelecommand () |
Check whether a non-allocated component instance of type DC_DummyPUSTelecommand is available within the factory. | |
void | setTelecommand (unsigned int i, DC_DummyTelecommand *pItem) |
Load one instance of type DC_DummyTelecommand in the factory. | |
unsigned int | getNumberDummyTelecommand (void) |
Return the number of component instances of type DC_DummyTelecommand that are currently allocated. | |
unsigned int | getCapacityDummyTelecommand (void) |
Return the number of component instances of type DC_DummyTelecommand that are in the factory. | |
DC_DummyTelecommand * | allocateDummyTelecommand () |
Allocate one instance of type DC_DummyTelecommand . | |
bool | isFreeDummyTelecommand () |
Check whether a non-allocated component instance of type DC_DummyTelecommand is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSControlDataReporting *pItem) |
Load one instance of type DC_PUSControlDataReporting in the factory. | |
unsigned int | getNumberPUSControlDataReporting (void) |
Return the number of component instances of type DC_PUSControlDataReporting that are currently allocated. | |
unsigned int | getCapacityPUSControlDataReporting (void) |
Return the number of component instances of type DC_PUSControlDataReporting that are in the factory. | |
DC_PUSControlDataReporting * | allocatePUSControlDataReporting (unsigned int MaxNumberSID) |
Allocate one instance of type DC_PUSControlDataReporting . | |
bool | isFreePUSControlDataReporting (unsigned int MaxNumberSID) |
Check whether a non-allocated component instance of type DC_PUSControlDataReporting is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSDefineDataReporting *pItem) |
Load one instance of type DC_PUSDefineDataReporting in the factory. | |
unsigned int | getNumberPUSDefineDataReporting (void) |
Return the number of component instances of type DC_PUSDefineDataReporting that are currently allocated. | |
unsigned int | getCapacityPUSDefineDataReporting (void) |
Return the number of component instances of type DC_PUSDefineDataReporting that are in the factory. | |
DC_PUSDefineDataReporting * | allocatePUSDefineDataReporting (unsigned int NumberOfRawData) |
Allocate one instance of type DC_PUSDefineDataReporting . | |
bool | isFreePUSDefineDataReporting (unsigned int NumberOfRawData) |
Check whether a non-allocated component instance of type DC_PUSDefineDataReporting is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSDumpMemoryAbsolute *pItem) |
Load one instance of type DC_PUSDumpMemoryAbsolute in the factory. | |
unsigned int | getNumberPUSDumpMemoryAbsolute (void) |
Return the number of component instances of type DC_PUSDumpMemoryAbsolute that are currently allocated. | |
unsigned int | getCapacityPUSDumpMemoryAbsolute (void) |
Return the number of component instances of type DC_PUSDumpMemoryAbsolute that are in the factory. | |
DC_PUSDumpMemoryAbsolute * | allocatePUSDumpMemoryAbsolute (unsigned int NumberOfRawData) |
Allocate one instance of type DC_PUSDumpMemoryAbsolute . | |
bool | isFreePUSDumpMemoryAbsolute (unsigned int NumberOfRawData) |
Check whether a non-allocated component instance of type DC_PUSDumpMemoryAbsolute is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSDumpMemoryOffset *pItem) |
Load one instance of type DC_PUSDumpMemoryOffset in the factory. | |
unsigned int | getNumberPUSDumpMemoryOffset (void) |
Return the number of component instances of type DC_PUSDumpMemoryOffset that are currently allocated. | |
unsigned int | getCapacityPUSDumpMemoryOffset (void) |
Return the number of component instances of type DC_PUSDumpMemoryOffset that are in the factory. | |
DC_PUSDumpMemoryOffset * | allocatePUSDumpMemoryOffset (unsigned int NumberOfRawData) |
Allocate one instance of type DC_PUSDumpMemoryOffset . | |
bool | isFreePUSDumpMemoryOffset (unsigned int NumberOfRawData) |
Check whether a non-allocated component instance of type DC_PUSDumpMemoryOffset is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSMemoryLoadAbsolute *pItem) |
Load one instance of type DC_PUSMemoryLoadAbsolute in the factory. | |
unsigned int | getNumberPUSMemoryLoadAbsolute (void) |
Return the number of component instances of type DC_PUSMemoryLoadAbsolute that are currently allocated. | |
unsigned int | getCapacityPUSMemoryLoadAbsolute (void) |
Return the number of component instances of type DC_PUSMemoryLoadAbsolute that are in the factory. | |
DC_PUSMemoryLoadAbsolute * | allocatePUSMemoryLoadAbsolute (unsigned int MaxNumberData, unsigned int MaxNumberBlocks) |
Allocate one instance of type DC_PUSMemoryLoadAbsolute . | |
bool | isFreePUSMemoryLoadAbsolute (unsigned int MaxNumberData, unsigned int MaxNumberBlocks) |
Check whether a non-allocated component instance of type DC_PUSMemoryLoadAbsolute is available within the factory. | |
void | setTelecommand (unsigned int i, DC_PUSMemoryLoadOffset *pItem) |
Load one instance of type DC_PUSMemoryLoadOffset in the factory. | |
unsigned int | getNumberPUSMemoryLoadOffset (void) |
Return the number of component instances of type DC_PUSMemoryLoadOffset that are currently allocated. | |
unsigned int | getCapacityPUSMemoryLoadOffset (void) |
Return the number of component instances of type DC_PUSMemoryLoadOffset that are in the factory. | |
DC_PUSMemoryLoadOffset * | allocatePUSMemoryLoadOffset (unsigned int MaxNumberData, unsigned int MaxNumberBlocks) |
Allocate one instance of type DC_PUSMemoryLoadOffset . | |
bool | isFreePUSMemoryLoadOffset (unsigned int MaxNumberData, unsigned int MaxNumberBlocks) |
Check whether a non-allocated component instance of type DC_PUSMemoryLoadOffset is available within the factory. | |
void | setTelecommand (unsigned int i, DC_TestPUSTelecommand *pItem) |
Load one instance of type DC_TestPUSTelecommand in the factory. | |
unsigned int | getNumberTestPUSTelecommand (void) |
Return the number of component instances of type DC_TestPUSTelecommand that are currently allocated. | |
unsigned int | getCapacityTestPUSTelecommand (void) |
Return the number of component instances of type DC_TestPUSTelecommand that are in the factory. | |
DC_TestPUSTelecommand * | allocateTestPUSTelecommand () |
Allocate one instance of type DC_TestPUSTelecommand . | |
bool | isFreeTestPUSTelecommand () |
Check whether a non-allocated component instance of type DC_TestPUSTelecommand is available within the factory. | |
Static Public Member Functions | |
CC_TelecommandFactory * | getInstance (void) |
Get the single instance of this singleton class. | |
Protected Member Functions | |
CC_TelecommandFactory (void) | |
Instantiate the factory component. |
|
Instantiate the factory component. The class identifier is set and the internal data structures to hold the component instances managed by the factory are created. This constructor is defined to be protected because this is a singleton class. Definition at line 29 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 179 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 219 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 259 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 301 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 343 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 385 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 427 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 471 of file CC_TelecommandFactory.cpp. |
|
Allocate one instance of type
This method scans all the entries in the factory of type If no free component instances are found, then the method returns null. Note that no event report is generated to record the failure to allocate a component instance. Event reporting is the responsibility of the caller.
Definition at line 515 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 174 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 214 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 254 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 296 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 338 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 380 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 422 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 466 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type
The value returned is the maximum number of component instances of type
Definition at line 510 of file CC_TelecommandFactory.cpp. |
|
Get the single instance of this singleton class. If the instance does not yet exist, it is created. Definition at line 152 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 166 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 206 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 246 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 288 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 330 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 372 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 414 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 458 of file CC_TelecommandFactory.cpp. |
|
Return the number of component instances of type A component instance is allocated if its "in use" status is equal to: "component is in use".
Definition at line 502 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 189 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 229 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 270 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 312 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 354 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 396 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 439 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 483 of file CC_TelecommandFactory.cpp. |
|
Check whether a non-allocated component instance of type
If this method return true, then the corresponding
Definition at line 525 of file CC_TelecommandFactory.cpp. |
|
Check that all component instances required by the factory have been loaded.
Reimplemented from CC_RootObject. Definition at line 80 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 495 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 451 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 407 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 365 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 323 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 281 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 239 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 199 of file CC_TelecommandFactory.cpp. |
|
Load one instance of type
The component instances managed by the factory are internally stored in an array. This method loads the i-th element of the array. The argument i should lie in the interval [0,N-1] where N is the number of component instances of type The "in use" status of a newly loaded component is initialized to: "component is not in use". This is an initialization method that should only be called during the application configuration phase.
Definition at line 159 of file CC_TelecommandFactory.cpp. |