#include <DC_DummyObsClock.h>
Inheritance diagram for DC_DummyObsClock:
This component provides a dummy implementation of the OBS Clock abstract class. It exposes a method setTime
through which an external entity can set the on-board time and the on-board cycle. These values are then returned by the standard timing services declared by the OBS Clock abstract base class. No timing synchronization service is implemented.
A dummy clock can be useful because the correct configuration of the CC_RootObject
class requires the class to be provided with an OBS Clock plug-in component. This dummy component can be used when no "real" OBS Clock component is available (for instance, during testing).
Definition at line 32 of file DC_DummyObsClock.h.
Public Member Functions | |
DC_DummyObsClock (void) | |
Reset the OBS Clock component and set the class identifier. | |
virtual TD_ObsTime | getTime (void) |
Return the on-board time last set with setTime . | |
virtual TD_ObsCycle | getCycle (void) |
Return the on-board cycle last set with setTime . | |
virtual void | synchronizeWithSystemTime (void) |
No synchronization service is implemented: method returns without taking any action. | |
virtual void | reset (void) |
Reset the OBS clock by resetting the on-board time and cycle to zero. | |
void | setTime (TD_ObsTime time) |
Set the value of the on-board time that will be returned by method getTime and getCycle . | |
void | setCycle (TD_ObsCycle cycle) |
Set the value of the cycle that will be returned by method getCycle . |
|
Reset the OBS Clock component and set the class identifier.
Definition at line 16 of file DC_DummyObsClock.cpp. |
|
Return the on-board cycle last set with
Implements ObsClock. Definition at line 25 of file DC_DummyObsClock.cpp. |
|
Return the on-board time last set with
Implements ObsClock. Definition at line 21 of file DC_DummyObsClock.cpp. |
|
Set the value of the cycle that will be returned by method The cycle value must be zero or a positive numbers.
Definition at line 34 of file DC_DummyObsClock.cpp. |
|
Set the value of the on-board time that will be returned by method The on-board time value must be zero or a positive number.
Definition at line 29 of file DC_DummyObsClock.cpp. |