#include <TwoStateSwitch.h>
Inheritance diagram for OSCAR::TwoStateSwitch:

Public Methods | |
| TwoStateSwitch (const String &name=String(), OSCARError &err=DUMMY_ERROR(noError)) | |
| TwoStateSwitch (const TwoStateSwitch &TwoStateSwitch) | |
| TwoStateSwitch & | operator= (const TwoStateSwitch &) |
| virtual | ~TwoStateSwitch () |
| virtual bool | On () |
| virtual bool | Off ()=0 |
| bool | GetState () const |
Protected Attributes | |
| bool | state |
|
||||||||||||
|
Constructor for TwoStateSwitch.
|
|
|
|
|
|
|
|
|
Query whether the switch is on or off.
|
|
|
Method to turn switch Off() Call to this method should return immediately. Override this method in derived classes. For this class, all this method does is to check whether Initialize() has been called. As such, derived classes should call TwoStateSwitch::Off() and check its return value before proceeding.
Implemented in OSCAR::Relay, and OSCAR::ToolChanger. |
|
|
Method to turn switch On() Call to this method should return immediately. Override this method in derived classes. For this class, all this method does is to check whether Initialize() has been called. As such, derived classes should call TwoStateSwitch::On() and check its return value before proceeding.
Reimplemented in OSCAR::Relay, and OSCAR::ToolChanger. |
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |