org.indi.examples
Class SimpleCCDSimulator

java.lang.Object
  extended by org.indi.server.BasicDevice
      extended by org.indi.examples.SimpleCCDSimulator
All Implemented Interfaces:
org.indi.reactor.TimerCallback, org.indi.server.Device, org.indi.server.ObserverCallback

public class SimpleCCDSimulator
extends org.indi.server.BasicDevice
implements org.indi.reactor.TimerCallback

A simple CCD simulator. A .fits file is transferred after the given exposuretime has been expired.

Author:
Dirk Hünniger

Field Summary
 
Fields inherited from class org.indi.server.BasicDevice
observers, server
 
Constructor Summary
SimpleCCDSimulator(org.indi.server.IndiServer server)
          class constructor
 
Method Summary
static void main(java.lang.String[] args)
          Starts an indi server hosting a ccd simulator and a telescope (mount) simulator
 void onGetProperties(org.indi.clientmessages.GetProperties o)
           
 void onNew(org.indi.objects.NumberVector vector)
           
 void onNew(org.indi.objects.SwitchVector vector)
           
 void onTimer()
           
 
Methods inherited from class org.indi.server.BasicDevice
def, def, del, del, getName, msg, onNew, onNew, onObserved, 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

SimpleCCDSimulator

public SimpleCCDSimulator(org.indi.server.IndiServer server)
class constructor

Parameters:
server - the indi server to host the device
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Starts an indi server hosting a ccd simulator and a telescope (mount) simulator

Parameters:
args - Command line parameters (ignored)
Throws:
java.io.IOException

onGetProperties

public void onGetProperties(org.indi.clientmessages.GetProperties o)
Specified by:
onGetProperties in interface org.indi.server.Device
Overrides:
onGetProperties in class org.indi.server.BasicDevice

onNew

public void onNew(org.indi.objects.SwitchVector vector)
Specified by:
onNew in interface org.indi.server.Device
Overrides:
onNew in class org.indi.server.BasicDevice

onNew

public void onNew(org.indi.objects.NumberVector vector)
Specified by:
onNew in interface org.indi.server.Device
Overrides:
onNew in class org.indi.server.BasicDevice

onTimer

public void onTimer()
Specified by:
onTimer in interface org.indi.reactor.TimerCallback
Overrides:
onTimer in class org.indi.server.BasicDevice


Copyright © 2008. All Rights Reserved.