skyview.survey
Class XMLSurvey

java.lang.Object
  extended by skyview.survey.XMLSurvey
All Implemented Interfaces:
java.io.Serializable, Component, Survey

public class XMLSurvey
extends java.lang.Object
implements Survey

This class defines a survey based upon an XML file which contains the metadata and image information for the survey.

See Also:
Serialized Form

Constructor Summary
XMLSurvey(java.lang.String file)
          Create a survey whose characteristics are given in an XML file.
 
Method Summary
protected  void doParse(javax.xml.parsers.SAXParser sp, org.xml.sax.helpers.DefaultHandler handler)
          Run a parser
 java.lang.String getDescription()
          Get a description of the component
 Image[] getImages(Position pos, double size)
          Find candidate images from this survey.
 java.lang.String getName()
          Get the name of the compontent
 void updateHeader(Header h)
          Update a FITS header with information from the XML file
 void updateSettings()
          Update the system settings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSurvey

public XMLSurvey(java.lang.String file)
Create a survey whose characteristics are given in an XML file.

Method Detail

getName

public java.lang.String getName()
Get the name of the compontent

Specified by:
getName in interface Component

getDescription

public java.lang.String getDescription()
Get a description of the component

Specified by:
getDescription in interface Component

getImages

public Image[] getImages(Position pos,
                         double size)
                  throws java.lang.Exception
Find candidate images from this survey.

Specified by:
getImages in interface Survey
Parameters:
pos - A position object.
size - The size (in radians) over which we should look for candidates.
Throws:
java.lang.Exception

updateHeader

public void updateHeader(Header h)
Update a FITS header with information from the XML file

Specified by:
updateHeader in interface Survey

updateSettings

public void updateSettings()
Update the system settings

Specified by:
updateSettings in interface Survey

doParse

protected void doParse(javax.xml.parsers.SAXParser sp,
                       org.xml.sax.helpers.DefaultHandler handler)
                throws java.lang.Exception
Run a parser

Throws:
java.lang.Exception