|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.instruments.PositionControlAdapter JSci.instruments.DummyPositionControl
public class DummyPositionControl
A simple PositionControl that does nothing!
Field Summary |
---|
Fields inherited from class JSci.instruments.PositionControlAdapter |
---|
listenerList |
Constructor Summary | |
---|---|
DummyPositionControl()
|
Method Summary | |
---|---|
protected void |
doSetPosition(double p)
|
double |
getActualPosition()
get the actual position of the device. |
java.awt.Component |
getControlComponent()
get a Component through which we can control the position |
double |
getMajorStep()
|
double |
getMaximum()
get the maximum position |
double |
getMinimum()
get the minimum position |
double |
getMinorStep()
|
double |
getPosition()
get the position that must be reached. |
java.lang.String |
getUnit()
get a String with the description of the units used for all the values. |
static void |
main(java.lang.String[] args)
|
void |
setPosition(double p)
set the position |
void |
sleep()
sleeps for the time needed to stabilize the position. |
Methods inherited from class JSci.instruments.PositionControlAdapter |
---|
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyPositionControl()
Method Detail |
---|
public void setPosition(double p)
PositionControlAdapter
setPosition
in interface PositionControl
setPosition
in class PositionControlAdapter
p
- the positionprotected void doSetPosition(double p)
public double getPosition()
PositionControlAdapter
getPosition
in interface PositionControl
getPosition
in class PositionControlAdapter
public double getActualPosition()
PositionControlAdapter
getActualPosition
in interface PositionControl
getActualPosition
in class PositionControlAdapter
public double getMinimum()
PositionControlAdapter
getMinimum
in interface PositionControl
getMinimum
in class PositionControlAdapter
public double getMaximum()
PositionControlAdapter
getMaximum
in interface PositionControl
getMaximum
in class PositionControlAdapter
public double getMinorStep()
public double getMajorStep()
public void sleep()
PositionControlAdapter
sleep
in interface PositionControl
sleep
in class PositionControlAdapter
public java.awt.Component getControlComponent()
PositionControlAdapter
getControlComponent
in interface Control
getControlComponent
in interface PositionControl
getControlComponent
in class PositionControlAdapter
public java.lang.String getUnit()
PositionControlAdapter
getUnit
in interface PositionControl
getUnit
in class PositionControlAdapter
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |