Phidgets
Class PhidgetMotorControl

java.lang.Object
  extended by java.lang.Thread
      extended by Phidgets.Phidget
          extended by Phidgets.PhidgetMotorControl
All Implemented Interfaces:
Runnable

public class PhidgetMotorControl
extends Phidget


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  _IPhidgetMotorControlEvents events
           
 
Fields inherited from class Phidgets.Phidget
handler
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PhidgetMotorControl()
           
 
Method Summary
 void add_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)
           
 void Close()
           
 int GetAcceleration(int Index)
           
 boolean GetInputState(int Index)
           
 int GetMotorSpeed(int Index)
           
 int GetNumInputs()
           
 int GetNumMotors()
           
 int GetTorque(int Index)
           
 boolean Open(boolean Exclusive)
           
 boolean Open(boolean Exclusive, int SerialNumber)
           
 void remove_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)
           
 void run()
           
 void SetAcceleration(int Index, int newVal)
           
 void SetMotorSpeed(int Index, int newVal)
           
 
Methods inherited from class Phidgets.Phidget
GetDeviceType, GetDeviceVersion, GetIsAttached, GetLibraryVersion, GetSerialNumber
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

events

protected _IPhidgetMotorControlEvents events
Constructor Detail

PhidgetMotorControl

public PhidgetMotorControl()
Method Detail

Open

public boolean Open(boolean Exclusive)

Open

public boolean Open(boolean Exclusive,
                    int SerialNumber)

Close

public void Close()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

GetNumMotors

public int GetNumMotors()

GetNumInputs

public int GetNumInputs()

GetInputState

public boolean GetInputState(int Index)

GetAcceleration

public int GetAcceleration(int Index)

GetMotorSpeed

public int GetMotorSpeed(int Index)

GetTorque

public int GetTorque(int Index)

SetAcceleration

public void SetAcceleration(int Index,
                            int newVal)

SetMotorSpeed

public void SetMotorSpeed(int Index,
                          int newVal)

add_IPhidgetMotorControlEventsListener

public void add_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)

remove_IPhidgetMotorControlEventsListener

public void remove_IPhidgetMotorControlEventsListener(_IPhidgetMotorControlEvents l)