lejos.nxt.addon
Class DSwitch

java.lang.Object
  extended by lejos.nxt.BasicMotor
      extended by lejos.nxt.NXTMotor
          extended by lejos.nxt.addon.DSwitch
All Implemented Interfaces:
BaseMotor, DCMotor, Encoder, EncoderMotor

public class DSwitch
extends NXTMotor

This class manage the device dSwitch which is a controller designed to be used with Lego NXT Mindstorms hardware and software

Author:
Juan Antonio Brenha Moral

Field Summary
 
Fields inherited from class lejos.nxt.NXTMotor
encoderPort
 
Fields inherited from class lejos.nxt.BasicMotor
INVALID_MODE, mode, port, power
 
Constructor Summary
DSwitch(TachoMotorPort port)
           
 
Method Summary
 void turnOff()
          This method turn off the device connected with DSwitch
 void turnOn()
          This method turn on the device connected with DSwitch
 
Methods inherited from class lejos.nxt.NXTMotor
getTachoCount, resetTachoCount
 
Methods inherited from class lejos.nxt.BasicMotor
backward, flt, forward, getPower, isMoving, setPower, stop, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lejos.robotics.DCMotor
getPower, setPower
 
Methods inherited from interface lejos.robotics.BaseMotor
backward, flt, forward, isMoving, stop
 

Constructor Detail

DSwitch

public DSwitch(TachoMotorPort port)
Method Detail

turnOn

public void turnOn()
This method turn on the device connected with DSwitch


turnOff

public void turnOff()
This method turn off the device connected with DSwitch