|
|
Interface between Aladin & ACE
Since June 2003, this interface is a single-dependency; Aladin code knows about ACE, but ACE does not know about Aladin.
ACE includes an AceConsumer interface and an AceProducer class. Aladin implements the AceConsumer interface, including a 'callback' method consumeAceResults(InputStream in).
Aladin creates an instance of a AceProducer class, giving itself as the AceConsumer and passing also the url of the image. AceProducer runs the Ace dialog box - when complete, it spawns an extraction thread and returns to Aladin. The extraction thread, when complete, calls the AceConsumer (ie Aladin) passing the results to its consumeAceResults() method.
The results are given as in input stream to a VOTable formatted file. At the moment this file is local, but it need not be...
|
|