SourceForge.net Logo timeSeries: timeSeries Class Library

transition Class Reference
[Data segmentation]

class for rising and falling edges of a stateFlag More...

#include <stateFlag.h>

Collaboration diagram for transition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 transition (int s0, int s1)

Static Public Attributes

static const transition risingEdge
 rising edge constant
static const transition fallingEdge
 falling edge constant
static const transition anyEdge
 constant matching any transition

Friends

class stateFlag

Detailed Description

class for rising and falling edges of a stateFlag

A transition is defined in one of two ways. A general transition is defined as rising, falling, or change. A specific transition is defined by a pair of integers.

overview
The transition class defines a rising, falling or change-of-state edge. The class is designed to work in conjunction with the stateFlag class so the transitions are from one integer value to another.
In addition to specific transition defined by a pair of integers, the transition class also defines a general rising and falling edge. A third general transition called anyEdge matches any change of state. For these transitions, the exact value of the intial or final states are not specified - only the state change matters.
Examples:

hmi04.cpp.


Constructor & Destructor Documentation

transition::transition ( int  s0,
int  s1 
) [inline]

transition constructor

Parameters:
s0 an integer value before the transition
s1 an integer value after the transition

Defines a specific transition from s0 to s1

Generated on Tue Mar 16 15:10:52 2010 for timeSeries by  doxygen 1.6.3