Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ObsClock Class Reference

#include <ObsClock.h>

Inheritance diagram for ObsClock:

CC_RootObject DC_DummyObsClock List of all members.

Detailed Description

Abstract class representing the interface to an OBS Clock Component that can provide timing-related information and services to the application.

OBS Clock Components can provide two types of timing information and one service. The timing information are: the on-board time and the on-board cycle. The service is the timing synchronization service.

The on-board time is a time measurement provided by some external source. The on-board cycle assumes that the application is running cyclically and it represents the number of cycle from some arbitrary point (for instance, the time of creation of the OBS clock component, or the time it was last reset).

The timing synchronization service is an application-dependent service to synchronize the on-board time maintained by the OBS clock component.

Todo:
create a PUSObsClock class derived from this class to implement PUS-specific timing services

spilt the setTime method into two setter methods

Author:
Alessandro Pasetti (P&P Software GmbH)
Version:
1.0

Definition at line 38 of file ObsClock.h.

Public Member Functions

virtual TD_ObsTime getTime (void)=0
 Return the current on-board time.

virtual TD_ObsCycle getCycle (void)=0
 Return the current on-board cycle.

virtual void synchronizeWithSystemTime (void)=0
 Implement the timing synchronization service.

virtual void reset (void)=0
 Reset the OBS clock.


Member Function Documentation

virtual TD_ObsCycle ObsClock::getCycle void   )  [pure virtual]
 

Return the current on-board cycle.

Returns:
the current on-board cycle

Implemented in DC_DummyObsClock.

virtual TD_ObsTime ObsClock::getTime void   )  [pure virtual]
 

Return the current on-board time.

Returns:
the current on-board time

Implemented in DC_DummyObsClock.


The documentation for this class was generated from the following file:
Copyright 2003 P&P Software GmbH - All Rights Reserved