RCKit
Public Member Functions
Limiter Class Reference

Setter class that limits its output to between specified min and max values. More...

#include <Limiter.h>

Inheritance diagram for Limiter:
Inheritance graph
[legend]
Collaboration diagram for Limiter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Limiter (int min, int max)
virtual void input (int value)
- Public Member Functions inherited from Setter
 Setter ()
 Constructor.
 Setter (Setter *target)
 Constructor with setting the target.
virtual void setTarget (Setter *target)
virtual void failsafe ()
void setFailsafeValue (int failsafeValue)
 Sets the failsafeValue.
int failsafeValue ()

Additional Inherited Members

- Protected Attributes inherited from Setter
Setter_target
 This is the instance of Setter that will be given the transfotmed output value.
int _failsafeValue

Detailed Description

Setter class that limits its output to between specified min and max values.

Author:
Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)

Limiter limits its output to between specified min and max values The resulting output value is sent to the next Setter (the target) in the chain.

Examples:
TestSuite.pde.

Constructor & Destructor Documentation

Limiter::Limiter ( int  min,
int  max 
)

Constructor. All output values will be constrained to be within min to max (inclusive)

Author:
Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)

Member Function Documentation

void Limiter::input ( int  value)
virtual

Input the value to be inverted

Parameters:
[in]valueThe input value

Reimplemented from Setter.


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