RCKit
Public Member Functions | List of all members
SetterDebug Class Reference

Class for testing Setters. Used by the sample TestSuite sketch. More...

#include <SetterDebug.h>

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

Public Member Functions

virtual void input (int value)
 
int lastValue ()
 
virtual void failsafe ()
 
boolean failed ()
 
- Public Member Functions inherited from Setter
 Setter ()
 Constructor. More...
 
 Setter (Setter *target)
 Constructor with setting the target.
 
virtual void setTarget (Setter *target)
 
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

Class for testing Setters. Used by the sample TestSuite sketch.

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

Member Function Documentation

◆ failed()

boolean SetterDebug::failed ( )

Returns whether there has been a failsafe event

◆ failsafe()

void SetterDebug::failsafe ( )
virtual

Called when the source of input data is lost, and the Setter is required to fail in a safe way

Reimplemented from Setter.

References Setter::failsafeValue(), and input().

◆ input()

void SetterDebug::input ( int  value)
virtual

Input the value to be inverted

Parameters
[in]valueThe input value
Author
Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)

Reimplemented from Setter.

Referenced by failsafe().

◆ lastValue()

int SetterDebug::lastValue ( )

Return the last value that was set here


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