TactileVestProject  V1.0
Tactile API documentation
 All Classes Functions
Public Member Functions | List of all members
ComplexPattern Class Reference

A collection of SimplePatterns to be executed in sequence. More...

#include <ComplexPattern.h>

Public Member Functions

 ComplexPattern (const ComplexPattern &other)
 
ComplexPatternoperator= (const ComplexPattern &other)
 
SimplePatternaddPattern (int time, SimplePattern *pattern)
 
map< int, SimplePattern * > getPatterns ()
 

Detailed Description

A collection of SimplePatterns to be executed in sequence.

Member Function Documentation

SimplePattern* ComplexPattern::addPattern ( int  time,
SimplePattern pattern 
)

Adds a simple pattern to the end of this complex pattern with the given delay in milliseconds

Parameters
timetime in milliseconds for the simplepattern to execute at For example: addPattern(1000, &pattern1); addPattern(1500,&pattern2) will make pattern2 execute 500 milliseconds after pattern1
Returns
the pattern previously scheduled to run at the given time or void if none exists
map<int,SimplePattern*> ComplexPattern::getPatterns ( )

Get the map of simple patterns keyed by the time at which to execute them

Returns
a map of the simple patterns keyed by the time at which to execute them

The documentation for this class was generated from the following file: