|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.indi.server.Observer
org.indi.server.SimpleObserver
public class SimpleObserver
an object to desribing which vector to observe, how to observe it and which callback to call if it changeds
| Field Summary |
|---|
| Fields inherited from class org.indi.server.Observer |
|---|
laststate |
| Constructor Summary | |
|---|---|
SimpleObserver(java.lang.String device,
java.lang.String name,
ObserverState state,
ObserverCallback callback)
class constructor |
|
| Method Summary | |
|---|---|
void |
onObserved(org.indi.objects.Vector vector)
Callback method called by the server when the observed vector changed |
| Methods inherited from class org.indi.server.Observer |
|---|
getDevice, getName, getState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleObserver(java.lang.String device,
java.lang.String name,
ObserverState state,
ObserverCallback callback)
device - the name of the device the vector to observe belongs toname - the name of the vector to observestate - the way the vector should be observedcallback - the callback to be call when the observed vector changes| Method Detail |
|---|
public void onObserved(org.indi.objects.Vector vector)
ObserverCallback
onObserved in interface ObserverCallbackonObserved in class Observervector - the vector that changed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||