|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.SourceBrightnessFilter
public class SourceBrightnessFilter
A filter that operates on SourceBrightness
objects.
Version Info:
$Revision: 1616 $ |
$Date: 2008-10-10 14:25:31 -0600 (Fri, 10 Oct 2008) $ |
$Author: dharland $ |
Constructor Summary | |
---|---|
SourceBrightnessFilter()
Creates a new wide-open filter that allows all brightnesses to pass. |
Method Summary | |
---|---|
boolean |
allows(SourceBrightness sb)
Returns true if this filter allows the given source brightness to pass through it. |
boolean |
blocks(SourceBrightness sb)
Returns true if this filter blocks the given source brightness. |
void |
clearAll()
Returns this filter to a wide-open state. |
void |
clearFlux()
Returns the flux density criterion to its wide-open state. |
void |
clearFrequency()
Returns the frequency criterion to its wide-open state. |
void |
clearPolarization()
Returns the polarization criterion to its wide-open state. |
void |
clearTime()
Returns the time criterion to its wide-open state. |
void |
setFlux(FluxDensity minimumFlux,
FluxDensity maximumFlux)
Sets the flux density criterion of this filter to the given range. |
void |
setFrequency(Frequency newFrequency)
Sets the frequency criterion of this filter to newFrequency . |
void |
setFrequency(FrequencyRange newRange)
Sets the frequency criterion of this filter to newRange . |
void |
setPolarization(StokesParameter newPolarization)
Sets the polarization criterion of this filter to newPolarization . |
void |
setTime(Date newTime)
Sets the time criterion of this filter to newTime . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceBrightnessFilter()
Method Detail |
---|
public void clearAll()
public void clearFlux()
setFlux(FluxDensity, FluxDensity)
public void setFlux(FluxDensity minimumFlux, FluxDensity maximumFlux)
Null values may be used to establish floors or ceilings. For example, to block all sources with a flux density less than F call: myFilter.setFlux(F, null);.
Only those brightnesses whose
flux densities
are in the range established here may pass through this filter.
minimumFlux
- the minimum flux density that may pass through this filter.
A value of null will be interpreted as a desire to
have no minimum value.maximumFlux
- the maximum flux density that may pass through this filter.
A value of null will be interpreted as a desire to
have no maximum value.clearFlux()
public void clearFrequency()
setFrequency(Frequency)
public void setFrequency(Frequency newFrequency)
newFrequency
.
Clients may choose to use this method to set a single frequency,
or setFrequency(FrequencyRange)
to set a range of frequencies.
When a single frequency is set, a match is deemed to occur when a
source brightness's valid frequency range contains that single
frequency. When a range of frequencies is used, a match is deemed
to occur whenever the valid range has any overlap with that range
of frequencies.
Calling this method always removes any previously set range
of frequencies.
If newFrequency
is null, it will be interpreted as
the desire to clear the single frequency as well.
newFrequency
- the new frequency criterion for this filter.clearFrequency()
,
setFrequency(FrequencyRange)
public void setFrequency(FrequencyRange newRange)
newRange
.
Clients may choose to use setFrequency(Frequency)
to set a
single frequency, or this method to set a range of frequencies.
When a single frequency is set, a match is deemed to occur when a
source brightness's valid frequency range contains that single
frequency. When a range of frequencies is used, a match is deemed
to occur whenever the valid range has any overlap with that range
of frequencies.
Calling this method always removes any previously set single frequency.
If newRange
is null, it will be interpreted as
the desire to clear the range of frequencies as well.
newRange
- the new frequency criterion for this filter.clearFrequency()
,
setFrequency(Frequency)
public void clearTime()
setTime(Date)
public void setTime(Date newTime)
newTime
.
If newTime
is null, it will be interpreted as
the desire to clear the time criterion.
Only those brightnesses whose
valid time intervals
contain newTime
may pass through this filter.
newTime
- the new time criterion for this filter.clearTime()
public void clearPolarization()
setPolarization(StokesParameter)
public void setPolarization(StokesParameter newPolarization)
newPolarization
.
If newPolarization
is null, it will be interpreted as
the desire to clear the polarization criterion.
Only those brightnesses whose
polarizations
equal newPolarization
may pass through this filter.
newPolarization
- the new polarization criterion for this filter.clearPolarization()
public boolean blocks(SourceBrightness sb)
blocks
in interface Filter<SourceBrightness>
sb
- the brightness to be filtered.
sb
.public boolean allows(SourceBrightness sb)
allows
in interface Filter<SourceBrightness>
sb
- the brightness to be filtered.
sb
to pass through it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |