|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.id.creapro.admoveo.Actuator
nl.tue.id.creapro.admoveo.DigitalActuator
public class DigitalActuator
This class models all digital actuators.
Constructor Summary | |
---|---|
DigitalActuator(Arduino arduino,
int pin)
Creates an instance of the digital actuator that is connected to a particular pin on the Arduino board. |
Method Summary | |
---|---|
void |
off()
Switches the actuator off. |
void |
on()
Switches the actuator on. |
Methods inherited from class nl.tue.id.creapro.admoveo.Actuator |
---|
getActuators, getPin, isOn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigitalActuator(Arduino arduino, int pin)
arduino
- the Arduino board.pin
- the pin to which this actuator is connected.Method Detail |
---|
public void off()
ActuatorControl
off
in interface ActuatorControl
off
in class Actuator
public void on()
ActuatorControl
on
in interface ActuatorControl
on
in class Actuator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |