|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread devs.motorpackage.asc16.Motor
public abstract class Motor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected int |
acceleration
|
protected int |
currentPosition
|
protected int |
currentSpeed
|
protected int |
highPosition
|
protected int |
highSpeed
|
protected int |
lowPosition
|
protected int |
lowSpeed
|
protected int |
midlePosition
|
protected static ASC16 |
motorController
|
protected java.util.List |
motorListeners
|
protected int |
motorNumber
|
protected int |
newPosition
|
protected int |
newSpeed
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface devs.motorpackage.asc16.ASC16Listener |
---|
HIGH_POSITION, HIGH_SPEED, LOW_POSITION, LOW_SPEED, MIDDLE_SPEED, MIDLE_POSITION |
Constructor Summary | |
---|---|
Motor()
|
Method Summary | |
---|---|
void |
fireMotorEvent(MotorEvent e)
|
abstract int |
getCurrentPosition()
|
abstract int |
getCurrentSpeed()
|
abstract int |
getMotorNumber()
|
void |
removeMotorListener(MotorListener n)
|
abstract void |
setAcceleration(int acceleration)
|
abstract void |
setSpeed(int speed)
|
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, run, 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 |
Methods inherited from interface devs.motorpackage.asc16.ASC16Listener |
---|
stateChanged |
Field Detail |
---|
protected java.util.List motorListeners
protected static ASC16 motorController
protected int currentPosition
protected int highPosition
protected int lowPosition
protected int midlePosition
protected int newPosition
protected int currentSpeed
protected int highSpeed
protected int lowSpeed
protected int newSpeed
protected int acceleration
protected int motorNumber
Constructor Detail |
---|
public Motor()
Method Detail |
---|
public abstract int getCurrentPosition()
public abstract int getCurrentSpeed()
public abstract void setSpeed(int speed)
pos
- public abstract void setAcceleration(int acceleration)
pos
- public abstract int getMotorNumber()
public void removeMotorListener(MotorListener n)
n
- public void fireMotorEvent(MotorEvent e)
e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |