001    package edu.nrao.sss.model.project.scan;
002    
003    import javax.xml.bind.annotation.XmlRootElement;
004    
005    /**
006     * The simplest variety of a {@link Scan}.
007     * <p>
008     * <b>CVS Info:</b>
009     * <table style="margin-left:2em">
010     *   <tr><td>$Revision: 161 $</td></tr>
011     *   <tr><td>$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $</td></tr>
012     *   <tr><td>$Author: btruitt $</td></tr>
013     * </table></p>
014     *  
015     * @author David M. Harland
016     * @since 2006-07-10
017     */
018    @XmlRootElement
019    public class SimpleScan
020      extends Scan
021    {
022      /** Creates a new instance. */
023      SimpleScan()
024      {
025        super();
026      }
027      
028      /**
029       *  Returns a simple scan that is a copy of this one.
030       *  <p>
031       *  The returned scan is, for the most part, a deep copy of this one.
032       *  However, there are a few exceptions noted in the
033       *  {@link ScanLoop#clone() clone method} of this class's parent.</p>
034       *  <p>
035       *  If anything goes wrong during the cloning procedure,
036       *  a {@code RuntimeException} will be thrown.</p>
037       */
038      public SimpleScan clone()
039      {
040        SimpleScan clone = null;
041    
042        try
043        {
044          clone = (SimpleScan)super.clone();
045        }
046        catch (Exception ex)
047        {
048          throw new RuntimeException(ex);
049        }
050        
051        return clone;
052      }
053    }