|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.components.Signal
jaron.gui.Axis
public class Axis
The Axis
class represents an axis that can be used in an actuator
(see ActuatorXY
).
Its main purpose is the conversion of a signal value into a value that is used
in a coordinate system.
Constructor Summary | |
---|---|
Axis(int start,
int path)
Creates an new Axis object. |
Method Summary | |
---|---|
int |
getPath()
Returns the path of the axis. |
int |
getPosition()
Returns the current position of the axis' actuator. |
Signal |
getPowerSignal()
Returns a reference to a Signal object containing a value that
represents the current status of the axis. |
int |
getStart()
Returns the starting position of the axis. |
void |
setLocation(int location)
Moves the axis to the specified location. |
void |
setPath(int path)
Sets a new value for the axis' path. |
void |
setPosition(int position)
Sets the position of the axis' actuator. |
void |
setStart(int start)
Sets the starting position of the axis. |
void |
setValue(double value)
Sets the value of the axis' signal. |
Methods inherited from class jaron.components.Signal |
---|
addSignalListener, getBandwidth, getHigh, getLow, getValue, removeSignalListener, setBandwidth, setHigh, setLow, signalChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Axis(int start, int path)
Axis
object.
start
- the starting positionpath
- the path (distance between start and end)Method Detail |
---|
public int getPath()
public int getPosition()
public Signal getPowerSignal()
Signal
object containing a value that
represents the current status of the axis. The stauts is either on
(getSignal
equals getHigh
) or off
(getSignal
equals getLow
).
Signal
object containing the current axis statusSignal
public int getStart()
public void setLocation(int location)
location
- the new starting positionpublic void setPath(int path)
path
- a new value for the path (distance between start and end)public void setPosition(int position)
position
- the actuator's new positionpublic void setStart(int start)
start
- the new starting positionpublic void setValue(double value)
setValue
in interface SignalListener
setValue
in class Signal
value
- a new value of axisSignal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |