|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.SourceBrightness
public abstract class SourceBrightness
The brightness of an astronomical source.
Version Info:
$Revision: 1709 $ |
$Date: 2008-11-14 11:22:37 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ |
Field Summary |
---|
Fields inherited from interface edu.nrao.sss.util.Identifiable |
---|
UNIDENTIFIED |
Method Summary | |
---|---|
SourceBrightness |
clone()
Returns a source brightness that is equal to this one. |
int |
compareTo(SourceBrightness other)
Compares this brightness to other for order. |
static SourceBrightness |
createBrightness(BrightnessDistribution type)
Returns a source brightness instance for the distribution of the given type. |
static SourceBrightness[] |
createBrightnesses(VlaFluxObservation fluxRec)
Creates a pair of source brightnesses based on fluxRec . |
boolean |
equals(Object o)
Returns true if o is equal to this source brightness. |
URL |
getBrightnessFile()
Returns the file upon which this source brightness is based, if any. |
BrightnessDistribution |
getDistributionType()
Returns the distribution type of this brightness. |
Long |
getId()
|
double |
getLimbDarkening()
Returns the limb darkening of this source brightness. |
double |
getMajorAxisDiameter()
Returns the diameter of the major axis of this source brightness in A.U. |
double |
getMinorAxisDiameter()
Returns the diameter of the minor axis of this source brightness in A.U. |
String |
getObservation()
Returns text that represents the observational data upon which this brightness is based. |
FluxDensity |
getPeakFluxDensity()
Returns the peak flux density of this source brightness. |
StokesParameter |
getPolarization()
Returns the polarization of this source brightness. |
double |
getPositionAngle()
Returns the position angle of this source brightness in degrees. |
FluxDensity |
getTotalFluxDensity()
Returns the total flux density of this source brightness. |
FrequencyRange |
getValidFrequency()
Returns the frequency range for which this source brightness is valid. |
TimeInterval |
getValidTime()
Returns the interval of time for which this brightness is valid. |
VlaFluxObservation |
getVlaObservation()
Returns the VLA flux data upon which this brightness is based. |
int |
hashCode()
Returns a hash code value for this source brightness. |
boolean |
isFileBased()
Returns true if this source brightness if based on the contents of a file, false otherwise. |
boolean |
isValidFor(Date time)
Returns true if this brightness is valid for the given point in time. |
void |
reset()
Resets this brightness to its initial state. |
void |
setValidTime(TimeInterval interval)
Sets the interval of time for which this brightness is valid. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SourceBrightness createBrightness(BrightnessDistribution type)
type
- the brightness distribution for which a source brightness
instance is desired.
public static SourceBrightness[] createBrightnesses(VlaFluxObservation fluxRec)
fluxRec
.
The returned array will have exactly two brightnesses. The element at index zero will hold a brightness for left circular polarization; the element at index one will hold a brightness for right circular polarization.
fluxRec
- an observation of the flux of a source performed by the VLA.
fluxRec
.public void reset()
public Long getId()
getId
in interface Identifiable
public BrightnessDistribution getDistributionType()
public StokesParameter getPolarization()
public void setValidTime(TimeInterval interval)
If interval
is null, it will be treated as
an non-null interval of zero length.
interval
- the interval of time for which this brightness is valid.public TimeInterval getValidTime()
The return value is guaranteed to be non-null. It is also the range that is held internally by this source brightness, so any changes made to the returned range will be reflected in this object.
public boolean isValidFor(Date time)
time
- the point in time to be checked.public FrequencyRange getValidFrequency()
The return value is guaranteed to be non-null. It is also the range that is held internally by this source brightness, so any changes made to the returned range will be reflected in this object.
public FluxDensity getPeakFluxDensity()
The returned value is guaranteed to be non-null. It is also the peak flux density that is held internally by this source brightness, so any changes made to the returned flux density will be reflected in this object.
public FluxDensity getTotalFluxDensity()
The returned value is guaranteed to be non-null. It is also the total flux density that is held internally by this source brightness, so any changes made to the returned flux density will be reflected in this object.
public double getMajorAxisDiameter()
public double getMinorAxisDiameter()
public double getPositionAngle()
public double getLimbDarkening()
The value returned is a measure of shape.
public boolean isFileBased()
public URL getBrightnessFile()
public String getObservation()
public VlaFluxObservation getVlaObservation()
public SourceBrightness clone()
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in class Object
public boolean equals(Object o)
o
is equal to this source brightness.
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(SourceBrightness other)
other
for order.
One brightness is deemed to be "less than" the other if it has a valid frequency range that is less than that of the other. In the case that two brighnesses have the same valid frequency range, the valid time range is used as a tie-breaker. If these are the same other attributes are compared until a difference is found. If none are found, the return value is zero.
compareTo
in interface Comparable<SourceBrightness>
other
- the brightness to which this one is compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |