org.indi.server
Interface Device

All Superinterfaces:
ObserverCallback, org.indi.reactor.TimerCallback
All Known Implementing Classes:
BasicDevice, ExternalDevice, SmartDevice

public interface Device
extends org.indi.reactor.TimerCallback, ObserverCallback

The basic interface implemented by device drivers

Author:
Dirk Hünniger

Method Summary
 java.lang.String getName()
           
 void onGetProperties(org.indi.clientmessages.GetProperties o)
          Called when a GetProperties message was received client.
 void onNew(org.indi.objects.BlobVector vector)
          Called by the reactor whenever a BLOBVector (a request to change the state of a blob was received from the client)
 void onNew(org.indi.objects.NumberVector vector)
          Called by the reactor whenever a NumberVector (a request to change the state of a number was received from the client)
 void onNew(org.indi.objects.SwitchVector vector)
          Called by the reactor whenever a SwitchVector (a request to change the state of a switch was received from the client)
 void onNew(org.indi.objects.TextVector vector)
          Called by the reactor whenever a TextVector (a request to change the state of a text was received from the client)
 
Methods inherited from interface org.indi.reactor.TimerCallback
onTimer
 
Methods inherited from interface org.indi.server.ObserverCallback
onObserved
 

Method Detail

onNew

void onNew(org.indi.objects.SwitchVector vector)
Called by the reactor whenever a SwitchVector (a request to change the state of a switch was received from the client)

Parameters:
vector - the vector received from the client

onNew

void onNew(org.indi.objects.NumberVector vector)
Called by the reactor whenever a NumberVector (a request to change the state of a number was received from the client)

Parameters:
vector - the vector received from the client

onNew

void onNew(org.indi.objects.BlobVector vector)
Called by the reactor whenever a BLOBVector (a request to change the state of a blob was received from the client)

Parameters:
vector - the vector received from the client

onNew

void onNew(org.indi.objects.TextVector vector)
Called by the reactor whenever a TextVector (a request to change the state of a text was received from the client)

Parameters:
vector - the vector received from the client

onGetProperties

void onGetProperties(org.indi.clientmessages.GetProperties o)
Called when a GetProperties message was received client. Each property of the device should be defined here using the def methods.

Parameters:
o - the GetProperties message received from the client

getName

java.lang.String getName()
Returns:
the name of the device


Copyright © 2008. All Rights Reserved.