|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.net.TelescopeClient.Blocking
private static class TelescopeClient.Blocking
A class that allows blocking on incoming commands.
| Field Summary | |
|---|---|
private static List |
active
A list of offset commands sent during guiding where we don't wait. |
private static long |
MAXTIMEOUT
Maximum time-out, independant from command. |
private static TelescopeClient |
to
The telescope client to block. |
private static Object |
wait
A locking object. |
| Constructor Summary | |
|---|---|
TelescopeClient.Blocking(TelescopeClient receiver)
Constructs a new adapter-to-telescope caster. |
|
| Method Summary | |
|---|---|
boolean |
castCommandAndWait(CommandEvent ce)
Casts the command and blocks. |
void |
forward(ReplyEvent re)
If the received reply matches an offset sent during guiding, we remove it from the list and return without notifying. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Object wait
private static List active
private static TelescopeClient to
private static final long MAXTIMEOUT
| Constructor Detail |
|---|
public TelescopeClient.Blocking(TelescopeClient receiver)
TelescopeClient.init() method.
| Method Detail |
|---|
public void forward(ReplyEvent re)
forward in interface ReplySubscriberpublic boolean castCommandAndWait(CommandEvent ce)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||