|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.indi.server.BasicDevice
org.indi.server.ExternalDevice
public class ExternalDevice
A class to allow indidrivers written in C to interact with this indiserver writing in Java. The class acts as a proxy class communicating with the indidriver that runs in a diffrent process via the stdin stdout streams.
| Field Summary |
|---|
| Fields inherited from class org.indi.server.BasicDevice |
|---|
name, observers, server |
| Constructor Summary | |
|---|---|
ExternalDevice(IndiServer server,
java.lang.String command)
class constuctor |
|
| Method Summary | |
|---|---|
java.util.Queue<java.lang.Object> |
getQueue()
|
static void |
main(java.lang.String[] args)
Runs an indiserver hosting an external device. |
void |
onGetProperties(org.indi.clientmessages.GetProperties o)
called by the server when a new GetProperties (request to send all defXXX messages) is received from the a client. |
void |
onNew(org.indi.objects.BlobVector vector)
called by the server when a new BLOB is received from the a client. |
void |
onNew(org.indi.objects.NumberVector vector)
called by the server when a new NumberVector (request to set the state of a number) is received from the a client. |
void |
onNew(org.indi.objects.SwitchVector vector)
called by the server when a new SwitchVector (request to set the state of a switch) is received from the a client. |
void |
onNew(org.indi.objects.TextVector vector)
called by the server when a new TestVector (request to set the state of a text) is received from the a client. |
void |
onRead(java.lang.Object input)
called by the reactor when a new item is available in the queue. |
void |
run()
run asynchronously. |
void |
sendVector(org.indi.objects.Vector vector)
Send a vector to external driver |
| Methods inherited from class org.indi.server.BasicDevice |
|---|
def, def, del, del, getName, msg, onObserved, onTimer, sendToClients, set, set, subscribe, timer, unsubscribe, unsubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalDevice(IndiServer server,
java.lang.String command)
server - the server to host the drivercommand - the command to start the external driver| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void onNew(org.indi.objects.SwitchVector vector)
BasicDevice
onNew in interface DeviceonNew in class BasicDevicevector - the vector received from the clientpublic void onNew(org.indi.objects.NumberVector vector)
BasicDevice
onNew in interface DeviceonNew in class BasicDevicevector - the vector received from the clientpublic void onNew(org.indi.objects.BlobVector vector)
BasicDevice
onNew in interface DeviceonNew in class BasicDevicevector - the vector received from the clientpublic void onNew(org.indi.objects.TextVector vector)
BasicDevice
onNew in interface DeviceonNew in class BasicDevicevector - the vector received from the clientpublic void sendVector(org.indi.objects.Vector vector)
vector - the vector to be sentpublic void onGetProperties(org.indi.clientmessages.GetProperties o)
BasicDevice
onGetProperties in interface DeviceonGetProperties in class BasicDeviceo - the GetProperties message received from the clientpublic java.util.Queue<java.lang.Object> getQueue()
getQueue in interface org.indi.reactor.QueueHandler<java.lang.Object>public void onRead(java.lang.Object input)
onRead in interface org.indi.reactor.QueueHandler<java.lang.Object>input - the item just received from the queue
public static void main(java.lang.String[] args)
throws java.io.IOException
args - Command line arguments (ignored)
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||