|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.resource.CorrelatorBasebandAbs edu.nrao.sss.model.resource.evla.WidarBaseband
public abstract class WidarBaseband
Common parent for the WIDAR baseband singlet and pair classes.
Version Info:
$Revision: 2296 $ |
$Date: 2009-05-12 14:50:22 -0600 (Tue, 12 May 2009) $ |
$Author: dharland $ (last person to modify) |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.model.resource.CorrelatorBasebandAbs |
---|
bandwidth, subbands |
Fields inherited from interface edu.nrao.sss.util.Identifiable |
---|
UNIDENTIFIED |
Method Summary | |
---|---|
void |
addSubband(CorrelatorSubband newSubband)
Adds newSubband to this baseband if this baseband is not
already full. |
WidarBaseband |
clone()
Returns a copy of this baseband. |
boolean |
equals(Object o)
Returns true if o is equal to this baseband. |
SortedSet<Frequency> |
getAllowableBandwidths()
Returns the set of bandwidths to which this object may be set. |
protected CorrelatorConfiguration |
getContainer()
Returns the correlator configuration that holds this baseband. |
TimeDuration |
getDelayModelLifespan()
Returns the length of time for which this baseband's delay models may remain valid. |
boolean |
getFringeRotation()
Deprecated. Always returns false. |
InputStateCounts |
getInputStateCounts()
Deprecated. Always returns null. |
Frequency |
getMaximumBandwidth()
Returns the largest bandwidth to which this object may be set. |
int |
getMaxSubbandCount()
Returns the maximum number of subbands this baseband may hold. |
Frequency |
getMinimumBandwidth()
Returns the smallest bandwidth to which this object may be set. |
abstract WidarBaseband |
getPartner()
Returns the partner of this baseband, if any. |
PulsarGating |
getPulsarGating()
Returns the pulsar gating configuration, if any. |
boolean |
getSinglePhaseCenter()
Returns true if all subbands of this baseband are required to have the same phase center. |
SortedSet<Frequency> |
getSubbandGrid()
Returns a set of frequencies that individual subbands should not cover. |
WideBandCorrelator |
getWideBandCorrelator()
Returns the wide band correlation configuration, if any. |
boolean |
hasDiscreteBandwidths()
Returns true if this object may be set only to pretermined bandwidths. |
int |
hashCode()
Returns a hash code value for this baseband. |
abstract boolean |
hasPartner()
Returns true if this baseband has a partner. |
abstract boolean |
isPartnerOf(WidarBaseband other)
Returns true if other is loosely partnered with this baseband. |
WidarSubband |
makeNewSubband()
Creates and returns a new subband that may later be added to this subband. |
TimeDuration |
overrideDefaultDelayModelLifespan(boolean override)
Tells this baseband to override, or restore, the default value of the delay models' lifetime. |
PulsarGating |
overrideDefaultPulsarGating(boolean override)
Tells this baseband to override, or restore, pulsar gating defaults. |
WideBandCorrelator |
overrideDefaultWideBandCorrelator(boolean override)
Tells this baseband to override, or restore, wide band correlator defaults. |
boolean |
removeSubband(CorrelatorSubband unwantedSubband)
Removes the unwantedSubband from this baseband, if present. |
void |
setBandwidth(Frequency newWidth)
Does nothing. |
protected void |
setContainer(CorrelatorConfiguration newContainer)
Sets the correlator configuration to which this baseband belongs. |
void |
setFringeRotation(boolean turnOn)
Deprecated. does nothing |
void |
setSinglePhaseCenter(boolean singleCenter)
Determines whether or not all the subbands of this baseband are required to have the same phase center. |
BaseBand[] |
toVci()
Expresses this baseband as either one or two VCI BaseBand objects. |
String |
toXml()
Returns an XML representation of this baseband. |
void |
writeAsXmlTo(Writer writer)
Writes an XML representation of this baseband to writer . |
Methods inherited from class edu.nrao.sss.model.resource.CorrelatorBasebandAbs |
---|
addNewSubband, clearId, createdSubbandsFromPersistentStore, getAllowableBandwidthClosestTo, getAllowableBandwidthFor, getBandwidth, getId, getProxiedRange, getSubbandCount, getSubbands, isPair, removeAllSubbands, removeOldSubband, removeSubbandAt, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.nrao.sss.model.resource.CorrelatorBaseband |
---|
getInitialQuantization, getName, getPolarization, getPolarizations, getProxiedRange, isSinglet, proxiedRangeIsReversed |
Method Detail |
---|
protected CorrelatorConfiguration getContainer()
EvlaWidarConfiguration
.
getContainer
in class CorrelatorBasebandAbs
protected void setContainer(CorrelatorConfiguration newContainer)
newContainer
is allowed to be null.
If not null, the type of newContainer
must be
EvlaWidarConfiguration
.
setContainer
in class CorrelatorBasebandAbs
public Frequency getMinimumBandwidth()
HasBandwidth
public Frequency getMaximumBandwidth()
HasBandwidth
public boolean hasDiscreteBandwidths()
HasBandwidth
HasBandwidth.getMinimumBandwidth()
and HasBandwidth.getMaximumBandwidth()
.
If the returned value is true, the method
HasBandwidth.getAllowableBandwidths()
will give the set of predetermined
bandwidths.
public SortedSet<Frequency> getAllowableBandwidths()
HasBandwidth
If the return value of HasBandwidth.hasDiscreteBandwidths()
is false
all frequencies in the range allowed by
HasBandwidth.getMinimumBandwidth()
and HasBandwidth.getMaximumBandwidth()
are
valid and this method will return an empty set. Otherwise it will
return the set of allowable bandwidths.
public void setBandwidth(Frequency newWidth)
setBandwidth
in interface CorrelatorBaseband
setBandwidth
in class CorrelatorBasebandAbs
newWidth
- the new bandwidth of this baseband.public abstract boolean isPartnerOf(WidarBaseband other)
other
- another WIDAR baseband that may or may not be a partner of this one.
public abstract boolean hasPartner()
public abstract WidarBaseband getPartner()
Even unpaired basebands have some coupling to one other baseband, due to the correlator hardware.
public WidarSubband makeNewSubband()
CorrelatorBaseband
The returned subband will belong to no baseband.
public int getMaxSubbandCount()
CorrelatorBaseband
public SortedSet<Frequency> getSubbandGrid()
CorrelatorBaseband
The frequencies in the returned set represent a preset subband grid. Subbands may start or end exactly on these frequencies, but should not otherwise contain them. The low and high frequencies of this baseband are included in the returned range. The high frequency is included even if it is not a natural grid point. For example, if this baseband covers the frequency range from 0 to 45 units, with a grid line every 10 units, the returned set will contain 0, 10, 20, 30, 40, and 45 units.
public void addSubband(CorrelatorSubband newSubband)
CorrelatorBaseband
newSubband
to this baseband if this baseband is not
already full.
newSubband
- a subband to be added to this baseband.public boolean removeSubband(CorrelatorSubband unwantedSubband)
CorrelatorBaseband
unwantedSubband
from this baseband, if present.
The unwanted subband will belong to no baseband after its removal.
removeSubband
in interface CorrelatorBaseband
removeSubband
in class CorrelatorBasebandAbs
unwantedSubband
- the subband to be removed from this baseband.
newSubband
.public BaseBand[] toVci()
public PulsarGating overrideDefaultPulsarGating(boolean override)
override
- instruction to override, or restore, pulsar gating defaults.
override
is false.
If override
is true, returns the PulsarGating
held internally by this baseband. This means clients can operate
directly on the returned object and impact this baseband.public PulsarGating getPulsarGating()
This is a VCI property. The returned object was generated from VCI XML schema elements and is the actual instance held internally by this baseband.
overrideDefaultPulsarGating(boolean)
public WideBandCorrelator overrideDefaultWideBandCorrelator(boolean override)
override
- instruction to override, or restore, wide band correlator defaults.
override
is false.
If override
is true, returns the WideBandCorrelator
held internally by this baseband. This means clients can operate
directly on the returned object and impact this baseband.public WideBandCorrelator getWideBandCorrelator()
This is a VCI property. The returned object was generated from VCI XML schema elements and is the actual instance held internally by this baseband.
overrideDefaultWideBandCorrelator(boolean)
public TimeDuration overrideDefaultDelayModelLifespan(boolean override)
override
- instruction to override, or restore, the default value of the delay
models' lifetime.
override
is false.
If override
is true, returns the WideBandCorrelator
held internally by this baseband. This means clients can operate
directly on the returned object and impact this baseband.public TimeDuration getDelayModelLifespan()
This is a VCI property. The returned object is the actual instance held internally by this baseband.
public void setSinglePhaseCenter(boolean singleCenter)
This is a VCI property. The default value is true or "yes".
public boolean getSinglePhaseCenter()
This is a VCI property.
@Deprecated public InputStateCounts getInputStateCounts()
@Deprecated public void setFringeRotation(boolean turnOn)
@Deprecated public boolean getFringeRotation()
public String toXml() throws JAXBException
JAXBException
- if anything goes wrong during the conversion to XML.writeAsXmlTo(Writer)
public void writeAsXmlTo(Writer writer) throws JAXBException
writer
.
writer
- the device to which XML is written.
JAXBException
- if anything goes wrong during the conversion to XML.public WidarBaseband clone()
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in interface CorrelatorBaseband
clone
in class CorrelatorBasebandAbs
public boolean equals(Object o)
o
is equal to this baseband.
equals
in class CorrelatorBasebandAbs
public int hashCode()
CorrelatorBasebandAbs
hashCode
in class CorrelatorBasebandAbs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |