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

Public Methods | |
| Relay (unsigned int lineNo, DIO &dio, OSCARError &err=DUMMY_ERROR(noError)) | |
| bool | Initialize () |
| virtual | ~Relay () |
| bool | On () |
| bool | Off () |
Private Methods | |
| Relay (const Relay &) | |
| Relay & | operator= (const Relay &) |
Private Attributes | |
| unsigned int | lineNo |
| DIO * | dio |
|
||||||||||||||||
|
Constructor for Saw. This class uses abstract class DIO for digitial IO. Drivers for specific instantiation of DIO shouldb be installed on your system for this class to work.
|
|
|
Destructor. If relay is not closed, it calls Close() |
|
|
|
|
|
Initializes the relay. A call to this method is required before On() and Off() can be called. This method also sets the switch to Off when initialize is called. This may cause adverse effects in the system to which this relay is connected. User should make sure that on powerup, an off setting of the Relay is safe.
Reimplemented from OSCAR::Device. |
|
|
This will turn off the relay.
Implements OSCAR::TwoStateSwitch. |
|
|
This will turn on the relay.
Reimplemented from OSCAR::TwoStateSwitch. |
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |