|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.gatespace.service.adc.impl.ChannelImpl
Implementation of Channel, using ADCServiceImpl to poll data.
Method Summary | |
void |
addChannelListener(ChannelListener l)
Add a listener to this channel. |
int |
getChannelNo()
Get channel number. |
int |
getJitter()
|
int |
getMode()
Get measurement mode of channel. |
double |
getNormalizedValue()
Get last normalized value read from channel. |
int |
getRawValue()
Get last raw value read from channel. |
int |
getResolution()
Get resolution of channel. |
int |
getSampleCount()
Get oversample count of channel. |
boolean |
isActive()
Get activation status. |
protected void |
notifyListeners()
Notify all listeners of new values. |
boolean |
read()
Read a new value from channel. |
void |
removeChannelListener(ChannelListener l)
Remove a listener to this channel. |
void |
setActive(boolean b)
Set activation status. |
void |
setJitter(int jitter)
|
void |
setMode(int mode)
Set measurement mode of channel. |
void |
setResolution(int resolution)
Set resolution of channel. |
void |
setSampleCount(int count)
Set oversample count of channel. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public int getChannelNo()
public boolean isActive()
public void setActive(boolean b)
b
- true if channel is to be automatically polled, false otherwisepublic int getMode()
public int getJitter()
public int getResolution()
public void setMode(int mode)
public void setJitter(int jitter)
public void setResolution(int resolution)
public boolean read() throws java.io.IOException
public int getRawValue()
public double getNormalizedValue()
public void addChannelListener(ChannelListener l)
public void removeChannelListener(ChannelListener l)
protected void notifyListeners()
public int getSampleCount()
read()
to overcome problems with
jittery input.public void setSampleCount(int count)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |