next up previous 104
Next: SAMP
Up: SPLAT-VO - A VO-enabled Spectral Analysis Tool
Previous: Command-line control and tools


Tool interoperability

SPLAT-VO can communicate with other desktop tools using one or other of two messaging protocols:

The main job that can be done using the messaging is to exchange spectra. If another tool sends a spectrum to SPLAT-VO, it will appear in the global list as if it had just been loaded. Conversely, SPLAT-VO can send a spectrum to another tool, which will probably respond in a similar way. To send from SPLAT-VO, select a spectrum in the global list, and then use the Broadcast spectrum or Send spectrum to ... options in the Interop menu. The Broadcast option sends to all listening tools, while the Send option sends only to a single selected tool; you choose which one from the submenu on the right. Only tools which (claim they) know what to do with spectral data will be listed; if none of the currently-registered tools is prepared to accept spectra, the Send option will be unavailable.

You can also send the results of an SSA query as a table from the Query VO for spectra window. Again, use the Broadcast and Send options from the Interop menu to do this.

SAMP and PLASTIC do much the same job as each other, and work in much the same way. SAMP is an evolution of PLASTIC with a number of technical improvements, and so PLASTIC is somewhat deprecated in favour of SAMP. At time of writing (April 2009) approximately the same number of tools speak the two protocols, but this balance is expected to shift towards SAMP over the next few months, and SAMP will come to replace PLASTIC across the astronomical toolbase. It is not necessary for users to understand the differences between the two, but in general a tool using SAMP can communicate with other tools using SAMP, and the same with PLASTIC, but in most cases interoperation between PLASTIC and SAMP tools will not work.

The communication architecture of the two protocols is basically the same: all tools talk to a central ``Hub'' process which passes messages from one to another, so a hub must be running in order for the messaging to operate. If a hub is running when SPLAT-VO starts, or if one starts up while SPLAT-VO is in operation, it will connect to it automatically. Other tools have their own policies for connecting to the hub, but in general it is a good idea to start a hub first before starting up the tools which you want to talk to it. A hub can be started from within SPLAT-VO if required. The --hub or --exthub command-line flags start an ``internal'' or ``external'' hub respectively; the difference is that an internal hub will terminate when SPLAT-VO exits, while an external one continues running in its own process. Alternatively, a hub can be started from within the GUI as described in the SAMP and PLASTIC subsections below.

SPLAT-VO can work in either SAMP or PLASTIC mode, but not both at once. It determines which mode to use at startup: if the command-line flag --interop samp or --interop plastic is supplied, the corresponding mode will be used; otherwise if a running SAMP or PLASTIC hub can be found, the corresponding mode is used; otherwise it defaults to SAMP. The GUI is slightly different between the two; the details are given in the following subsections.



Subsections

next up previous 104
Next: SAMP
Up: SPLAT-VO - A VO-enabled Spectral Analysis Tool
Previous: Command-line control and tools

SPLAT-VO -- A VO-enabled Spectral Analysis Tool
Starlink User Note 243
Peter W. Draper & Mark Taylor
23 Jul 2009
E-mail:splat@star.rl.ac.uk

Copyright (C) 2001-2005 Council for the Central Laboratory of the Research Councils
Copyright (C) 2006-2007 Particle Physics and Astronomy Research Council
Copyright (C) 2007-2009 Science and Technology Facilities Council