|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.id.creapro.admoveo.Actuator
public abstract class Actuator
All digital and analog actuators extends this class. the control interface (ActuatorControl) is supposed to be implemented by all extending actuators.
Constructor Summary | |
---|---|
Actuator(Arduino arduino,
int pin)
Creates an Actuator that is connected to a particular pin on the Arduino board. |
Method Summary | |
---|---|
static java.util.Vector |
getActuators()
Gets all the available actuators. |
int |
getPin()
Gets the pin to which this actuator is connected. |
boolean |
isOn()
|
void |
off()
Switches the actuator off. |
void |
on()
Switches the actuator on. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Actuator(Arduino arduino, int pin)
arduino
- the Arduino board.pin
- the pin to which this actuator is connected.Method Detail |
---|
public static java.util.Vector getActuators()
public int getPin()
public boolean isOn()
isOn
in interface ActuatorControl
public void off()
ActuatorControl
off
in interface ActuatorControl
public void on()
ActuatorControl
on
in interface ActuatorControl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |