|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReceiverSelector
A selector of the best receiver(s) for a given
ResourceSpecification
.
Version Info:
$Revision: 1710 $ |
$Date: 2008-11-14 11:54:07 -0700 (Fri, 14 Nov 2008) $ |
$Author: dharland $ |
Method Summary | |
---|---|
ReceiverBand |
selectBestReceiverFor(FrequencyRange targetRange)
Returns the best receiver to use for the given range of sky frequencies. |
List<ReceiverSelection> |
selectReceivers(ObservingMode mode,
ResourceSpecification specs)
Returns a list of one or more selections that satisfy the given portion of the given specs. |
List<ReceiverSelection> |
selectReceivers(PulsarSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(ResourceSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(SkyFrequencySpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
List<ReceiverSelection> |
selectReceivers(SpectralLineSpecification specs)
Returns a list of one or more selections that satisfy the given specs. |
void |
setProvider(ReceiverProvider provider)
Sets the universe of receivers from which selections will be made. |
Method Detail |
---|
void setProvider(ReceiverProvider provider)
provider
- a provider of receivers.List<ReceiverSelection> selectReceivers(ResourceSpecification specs)
specs
.
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
List<ReceiverSelection> selectReceivers(SkyFrequencySpecification specs)
specs
.
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
List<ReceiverSelection> selectReceivers(SpectralLineSpecification specs)
specs
.
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
List<ReceiverSelection> selectReceivers(PulsarSpecification specs)
specs
.
specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
List<ReceiverSelection> selectReceivers(ObservingMode mode, ResourceSpecification specs)
specs
.
The mode
parameter is used to ignore the portions of
specs
that are of different modes. For example, calling
mySelector.selectReceivers(ObservingMode.SPECTRAL_LINE, mySpecs)
will cause this selector to consider only the spectral line specifications.
Note that this is a little different than calling
mySelector.selectReceivers(mySpecs.getSpectralLineSpecs().get(i))
because all the spectral line specifications in specs
will
be considered by this method.
mode
- the portion of specs
to which this method will
limit its attention.specs
- a resource specification, expressed in terms of science,
as opposed to instrumentation.
ReceiverBand selectBestReceiverFor(FrequencyRange targetRange)
This method returns a single receiver, even if multiple receivers cover the target range. If one receiver covers more of the target range than the others, it is the receiver returned. If multiple receivers cover the range equally well, the receiver returned is up to the implementing class. If no receiver overlaps the target range, the receiver that has the smallest distance between itself and the target range is returned. Note that this means the returned receiver may not be useful for the target it range at all, but is merely the best of the not-so-useful receivers.
This method may return null if any one or more of the following is true:
targetRange
- a sky frequency range for which the best receiver is sought.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |