|
|||||||||
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.AnalogActuator
public class AnalogActuator
This class models all analog actuators.
Constructor Summary | |
---|---|
AnalogActuator(Arduino arduino,
int pin)
Creates an instance of the analog actuator that is connected to a particular pin on the Arduino board. |
Method Summary | |
---|---|
int |
getPower()
|
void |
off()
Switches the actuator off. |
void |
on()
Switches the actuator on. |
void |
setPower(int power)
Sets the power level of the actuator. |
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 |
Methods inherited from interface nl.tue.id.creapro.admoveo.ActuatorControl |
---|
isOn |
Constructor Detail |
---|
public AnalogActuator(Arduino arduino, int pin)
arduino
- the Arduino board.pin
- the pin to which this actuator is connected.Method Detail |
---|
public int getPower()
public void off()
ActuatorControl
off
in interface ActuatorControl
off
in class Actuator
public void on()
ActuatorControl
on
in interface ActuatorControl
on
in class Actuator
public void setPower(int power)
AnalogActuatorControl
setPower
in interface AnalogActuatorControl
power
- the power level, between 0 and 255.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |