|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.resource.CorrelatorConfiguration edu.nrao.sss.model.resource.evla.EvlaWidarConfiguration
public class EvlaWidarConfiguration
The configuration of the WIDAR correlator.
Version Info:
$Revision: 2309 $ |
$Date: 2009-05-14 16:46:39 -0600 (Thu, 14 May 2009) $ |
$Author: dharland $ (last person to modify) |
Field Summary |
---|
Fields inherited from class edu.nrao.sss.model.resource.CorrelatorConfiguration |
---|
activeBBs, bbListeners, inactiveBBs, signalSource |
Fields inherited from interface edu.nrao.sss.util.Identifiable |
---|
UNIDENTIFIED |
Constructor Summary | |
---|---|
EvlaWidarConfiguration(AntennaElectronics signalSrc)
Constructs a new configuration that is initialized from signalSrc . |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
|
EvlaWidarConfiguration |
clone()
Returns a copy of this configuration. |
void |
configureFrom(ResourceSpecification scienceView)
This method is not yet supported. |
protected void |
createdBasebandsFromPersistentStore()
Called after basebands were created from a persistent store, such as a database or XMl file. |
boolean |
equals(Object o)
Returns true if o is equal to this configuration. |
void |
formPairWithPartner(WidarBasebandSinglet currentSinglet)
Updates this configuration by removing currentSinglet and its partner and replacing them with a baseband pair generated by their union. |
static EvlaWidarConfiguration |
fromXml(Reader reader)
Creates a new configuration based on the XML data read from reader . |
static EvlaWidarConfiguration |
fromXml(String xmlFile)
Creates a new configuration from the XML data in the given file. |
BlbpPool |
getBaselineBoardPool()
|
int |
getMaxAntennaCount()
Returns the maximum number of antennas that are compatible with this configuration. |
CorrelatorName |
getName()
Returns a more specific type for this backend. |
protected List<CorrelatorBaseband> |
getOrderedBasebands()
Allows concrete subclasses to be in charge of the ordering of the basebands returned by CorrelatorConfiguration.getBasebands() . |
int |
hashCode()
Returns a hash code value for this configuration. |
protected CorrelatorBaseband |
makeBasebandFrom(DigitalSignal ds)
Creates a new baseband from the given digital signal. |
protected CorrelatorBaseband |
makeBasebandFrom(DigitalSignal ds1,
DigitalSignal ds2)
Creates a new baseband from the given digital signals. |
void |
setMaxAntennaCount(int newMax)
Sets the maximum number of antennas in a subarray that may use this configuration. |
void |
splitBasebandPair(WidarBasebandPair currentPair)
Updates this configuration by removing currentPair and replacing it with two partnered baseband singlets generated from it. |
ListOfStations |
toVciListOfStations(List<Integer> stationIds)
Expresses this configuration as a VCI ListOfStations object. |
StationInputOutput |
toVciStationInputOutput()
Expresses this configuration as a VCI StationInputOutput object. |
SubArray |
toVciSubArray(List<Integer> stationIds)
Expresses this configuration as a VCI SubArray object. |
String |
toXml()
Returns an XML representation of this configuration. |
void |
writeAsXmlTo(Writer writer)
Writes an XML representation of this configuration to writer . |
Methods inherited from class edu.nrao.sss.model.resource.CorrelatorConfiguration |
---|
addBasebandCollectionListener, clearId, getBasebands, getId, getSignalSource, getSupportedCorrelators, getType, makeFor, removeBasebandCollectionListener, setId, setSignalSource |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvlaWidarConfiguration(AntennaElectronics signalSrc)
signalSrc
.
signalSrc
- the antenna electronics that provide the input signals for the basebands
of this configuration.
IllegalArgumentException
- if signalSrc
is null.Method Detail |
---|
public CorrelatorName getName()
TelescopeBackend
public void setMaxAntennaCount(int newMax)
newMax
- the new maximum number of antennas.
If this value is less than one, one will be used.
If this value is greater than the number of antennas in the full array
(27), 27 will be used.public int getMaxAntennaCount()
setMaxAntennaCount(int)
for more
information.
protected List<CorrelatorBaseband> getOrderedBasebands()
CorrelatorConfiguration
CorrelatorConfiguration.getBasebands()
.
This default implementation returns a copy of the activeBBs list
without any reordering
getOrderedBasebands
in class CorrelatorConfiguration
protected CorrelatorBaseband makeBasebandFrom(DigitalSignal ds)
CorrelatorConfiguration
This method is expected to produce a CorrelatorBaseband
whose CorrelatorBaseband.isSinglet()
property is
true.
makeBasebandFrom
in class CorrelatorConfiguration
ds
- the digital signal that serves as the signal source for the
newly created baseband.
ds
is null.protected CorrelatorBaseband makeBasebandFrom(DigitalSignal ds1, DigitalSignal ds2)
CorrelatorConfiguration
This method is expected to produce a CorrelatorBaseband
whose CorrelatorBaseband.isPair()
property is
true.
makeBasebandFrom
in class CorrelatorConfiguration
ds1
- one of two digital signals that serve as the signal sources for the
newly created baseband.ds2
- one of two digital signals that serve as the signal sources for the
newly created baseband.
ds1
or ds2
is null.public void splitBasebandPair(WidarBasebandPair currentPair)
currentPair
- the baseband pair to be split into partnered singles and replaced
by them.public void formPairWithPartner(WidarBasebandSinglet currentSinglet)
Note that which baseband in a tuple of partnered singles is passed to this method is significant. For example, imagine the single partnered basebands A1 and C1. If A1 is passed to this method, the A1/C1 pair will have characteristics more similar to A1 than C1, such as the decimation of the baseband into subbands.
currentSinglet
- the baseband singlet, along with its partner, that should be converted
to a baseband pair and replaced by it.public void actionPerformed(ActionEvent event)
protected void createdBasebandsFromPersistentStore()
CorrelatorConfiguration
createdBasebandsFromPersistentStore
in class CorrelatorConfiguration
public void configureFrom(ResourceSpecification scienceView)
scienceView
- a specification for the science goals to be met
by this hardware.public BlbpPool getBaselineBoardPool()
public SubArray toVciSubArray(List<Integer> stationIds)
stationIds
- the IDs of the antennas to be included in the returned object.
stationIds
.public StationInputOutput toVciStationInputOutput()
public ListOfStations toVciListOfStations(List<Integer> stationIds)
stationIds
- the IDs of the antennas to be included in the returned object.
stationIds
.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 static EvlaWidarConfiguration fromXml(String xmlFile) throws JAXBException, XMLStreamException, FileNotFoundException
xmlFile
- the name of an XML file. This method will attempt to locate
the file by using Class.getResource(String)
.
FileNotFoundException
- if the XML file cannot be found.
JAXBException
- if the schema file used (if any) is malformed, if the XML file cannot be
read, or if the XML file is not schema-valid.
XMLStreamException
- if there is a problem opening the XML file, if the XML is not well-formed,
or for some other "unexpected processing conditions".public static EvlaWidarConfiguration fromXml(Reader reader) throws JAXBException, XMLStreamException
reader
.
reader
- the source of the XML data.
If this value is null, null is returned.
reader
.
XMLStreamException
- if the XML is not well-formed,
or for some other "unexpected processing conditions".
JAXBException
- if anything else goes wrong during the transformation.public EvlaWidarConfiguration clone()
The returned clone is almost a deep copy. The exceptions which prevent us from saying it is a deep copy are:
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in interface TelescopeBackend
clone
in class CorrelatorConfiguration
public boolean equals(Object o)
o
is equal to this configuration.
equals
in class CorrelatorConfiguration
public int hashCode()
hashCode
in class CorrelatorConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |