Specialized context for a RTEvent coming from the TimingEventSource. The implementation is lab specific.
More...
#include <TimingContext.h>
|
| TimingContext (const std::string &cycleName, timestamp_ns cycleStamp=UNKNOWN_TIMESTAMP) |
| Constructor. More...
|
|
| TimingContext (const std::string &cycleName, ActionType actionType, uint8_t acquisitionAccess, uint8_t settingAccess, timestamp_ns timestamp=UNKNOWN_TIMESTAMP) |
| Constructor with possibility to set the access-rights and the action-type. More...
|
|
| TimingContext (std::istream &stream) |
| constructor from serialized data
|
|
virtual | ~TimingContext () |
| Destructor.
|
|
virtual | ~MultiplexingContext () |
| Destructor.
|
|
timestamp_ns | getCycleStamp () const |
| Returns the time of the start-cycle event which occurs at the start of the first basic period of the given cycle. It is expressed as a 64-bit integer counting the number of nanoseconds elapsed since the UNIX epoch i.e. since January 1st 1970 at 00.00 A.M. The constant UNKNOWN_TIMESTAMP is return if the cycle stamp is unknown.
|
|
timestamp_ns | getTimeStamp () const |
| returns the timeStamp associated to the context More...
|
|
int32_t | getCycleId () const |
| returns the cycle ID More...
|
|
int32_t | getTimingDomainId () const |
|
const std::string & | getTimingDomainName () const |
|
const std::string & | getCycleName () const |
| returns the cycle name as string More...
|
|
virtual void | serialize (std::ostream &stream) |
| this method serializes the multiplexing context into the stream
|
|
const std::string & | getExtraCondition () const |
| returns the extra condition More...
|
|
void | setExtraCondition (const std::string &extraCondition) |
| Sets the extra condition. More...
|
|
bool | match (const std::string &cycleSelector) const |
| Matches the context with a cycle-string argument, in order to check if the context lies within this argument. The match function is implemented by the different childs of this class. More...
|
|
MuxContextType | getType () const |
| Retrieve the type of multiplexing context. More...
|
|
| MultiplexingContext (const MultiplexingContext &other, ActionType actionType, uint8_t acquisitionAccess, uint8_t settingAccess) |
| Copy-Constructor with possibility to change the access-rights and the action-type. More...
|
|
|
enum | MuxContextType |
| Category of multiplexing context.
|
|
enum | ActionType |
| Action where the context is going to be use.
|
|
enum | accessMaskBitPattern |
| Definition of the different modes of field access.
|
|
static const timestamp_ns | UNKNOWN_TIMESTAMP = -1 |
|
std::string | cycleName_ |
| contains the name of the cycle
|
|
std::string | extraCondition_ |
| This condition can be used for advanced multiplexing.
|
|
timestamp_ns | timeStamp_ |
| contains the time stamp of the event.
|
|
timestamp_ns | cycleStamp_ |
| contains the time stamp of start of the cycle in which the event occurred or UNKNOWN_TIMESTAMP.
|
|
MuxContextType | type_ |
| Indicates the type of multiplexing context This information is used for the Data Integrity Later.
|
|
ActionType | actionType_ |
| Indicates which type of action is going to use the context.
|
|
bool | forewarning_ |
| Indicates that the context belongs to the next cycle, not to the current one. For example to control a slow power converter where you need to send the settings one cycle in advance, to give time to the power converter to follow the new request.
|
|
int32_t | timingDomainId_ |
| timing domain id
|
|
std::string | timingDomainName_ |
| timing domain name
|
|
uint8_t | settingAccessMask_ |
| setting access mask
|
|
uint8_t | acquisitionAccessMask_ |
| acquisition access mask
|
|
Specialized context for a RTEvent coming from the TimingEventSource. The implementation is lab specific.
fesa::TimingContext::TimingContext |
( |
const std::string & |
cycleName, |
|
|
timestamp_ns |
cycleStamp = UNKNOWN_TIMESTAMP |
|
) |
| |
Constructor.
- Parameters
-
cycleName | Cycle name for which the context is |
cycleStamp | cycle stamp of this context |
fesa::TimingContext::TimingContext |
( |
const std::string & |
cycleName, |
|
|
ActionType |
actionType, |
|
|
uint8_t |
acquisitionAccess, |
|
|
uint8_t |
settingAccess, |
|
|
timestamp_ns |
timestamp = UNKNOWN_TIMESTAMP |
|
) |
| |
Constructor with possibility to set the access-rights and the action-type.
- Parameters
-
cycleName | Cycle name for which the context is |
actionType | The new actionType of the mux-context |
acquisitionAccess | The new acquisition-access restrictions of this context |
settingAccess | The new setting-access restrictions of this context |
timestamp | The timestamp of this context. If not provided, current time will be used. |
The documentation for this class was generated from the following files:
- TimingContext.h
- TimingContext.cpp