001 package edu.nrao.sss.model.source; 002 003 import javax.xml.bind.annotation.XmlElement; 004 import javax.xml.bind.annotation.XmlRootElement; 005 006 /** 007 * A source brightness whose properties are unknown. 008 * <p> 009 * <b>CVS Info:</b> 010 * <table style="margin-left:2em"> 011 * <tr><td>$Revision: 161 $</td></tr> 012 * <tr><td>$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $</td></tr> 013 * <tr><td>$Author: btruitt $</td></tr> 014 * </table></p> 015 * 016 * @author David M. Harland 017 * @since 2006-05-22 018 */ 019 @XmlRootElement 020 public class UnknownBrightness 021 extends DescriptiveBrightness 022 { 023 /** Helps create a new instance. */ 024 UnknownBrightness() 025 { 026 super(); 027 distributionType = BrightnessDistribution.UNKNOWN; 028 } 029 030 /** 031 * Sets both the major axis and minor axis diameters to {@code diameter}. 032 * @param diameter the diameter of this brightness. 033 */ 034 @XmlElement 035 public void setDiameter(double diameter) 036 { 037 majorAxisDiameter = diameter; 038 minorAxisDiameter = diameter; 039 } 040 041 /** 042 * This method is here primarily for the persistence layer. 043 * Clients of {@code SourceBrightness} will ask for either 044 * the major or minor axis diameter. 045 * @return the diameter of this brightness. 046 */ 047 double getDiameter() 048 { 049 return majorAxisDiameter; 050 } 051 }