nl.tue.id.creapro.admoveo
Class DigitalActuator

java.lang.Object
  extended by nl.tue.id.creapro.admoveo.Actuator
      extended by nl.tue.id.creapro.admoveo.DigitalActuator
All Implemented Interfaces:
ActuatorControl

public class DigitalActuator
extends Actuator

This class models all digital actuators.

Author:
jhu

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

DigitalActuator

public DigitalActuator(Arduino arduino,
                       int pin)
Creates an instance of the digital actuator that is connected to a particular pin on the Arduino board.

Parameters:
arduino - the Arduino board.
pin - the pin to which this actuator is connected.
Method Detail

off

public void off()
Description copied from interface: ActuatorControl
Switches the actuator off.

Specified by:
off in interface ActuatorControl
Overrides:
off in class Actuator

on

public void on()
Description copied from interface: ActuatorControl
Switches the actuator on.

Specified by:
on in interface ActuatorControl
Overrides:
on in class Actuator