edu.nrao.sss.model.resource.evla
Class D301

java.lang.Object
  extended by edu.nrao.sss.model.resource.evla.D301
All Implemented Interfaces:
Digitizer, SignalProcessor

public class D301
extends Object
implements SignalProcessor, Digitizer

The EVLA D301 Sampler / DTS.

This device holds a single eight-bit sampler and a pair of three-bit samplers. The output of this device is derived from either the 8-bit or the two 3-bit input streams.

As used by the EVLA electronics, the inputs are feed by a pair of T304 downconverters. In 8-bit mode, a single T304 is connected to one of the four D301s. In 3-bit mode, a single D301 is connected to a pair of T304s, either an A/C or B/D (RCP/LCP) pair.

D301 Dgm

Version Info:

$Revision: 1241 $
$Date: 2008-04-25 14:37:37 -0600 (Fri, 25 Apr 2008) $
$Author: dharland $ (last person to modify)

Since:
2007-11-02
Author:
David M. Harland

Constructor Summary
D301(String deviceName)
          Creates a new D301 with the given name.
 
Method Summary
 void eraseSignalMemory()
          Erases this device's memory of its most recent execution.
 void execute()
          Runs the internal samplers for which this digitizer has been configured.
 void executeFromStartOfChainUpTo(SignalProcessor firstUnexecutedDevice)
          See SignalProcessor.executeFromStartOfChainUpTo(SignalProcessor).
 void executeUpTo(SignalProcessor firstUnexecutedDevice)
          See SignalProcessor.executeUpTo(SignalProcessor).
 SortedSet<Integer> getAllowableBitsPerSample()
           
 int getBitsPerSample()
           
 SignalPipe getEightBitInputPipe()
          Returns the input pipe that feeds the internal 8-bit sampler.
 String getName()
          Returns the name of this device.
 Collection<DigitalSignal> getSignals()
          Returns the signals produced by this digitizer.
 List<SignalPipe> getThreeBitInputPipes()
          Returns the input pipes that feed the internal 3-bit samplers.
 void setBitsPerSample(int numberOfBits)
          Configures this digitizer so that it produces output with the given number of bits per sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

D301

public D301(String deviceName)
Creates a new D301 with the given name. This D301 is initially configured to produce eight-bit output.

Parameters:
deviceName - an optional name for this device. If this value is null a default name will be used in its place.
Method Detail

getName

public String getName()
Returns the name of this device.

Specified by:
getName in interface Digitizer
Returns:
the name of this device.

getEightBitInputPipe

public SignalPipe getEightBitInputPipe()
Returns the input pipe that feeds the internal 8-bit sampler. A typical usage pattern for this method is:
 myDigitizer.getEightBitInputPipe().connectInputTo(mySource);

Returns:
the input pipe that feeds the internal 8-bit sampler.

getThreeBitInputPipes

public List<SignalPipe> getThreeBitInputPipes()
Returns the input pipes that feed the internal 3-bit samplers. A typical usage pattern for this method is:
 myDigitizer.getThreeBitInputPipes().get(0).connectInputTo(mySource);

Returns:
the input pipe that feeds the internal 8-bit sampler.

getBitsPerSample

public int getBitsPerSample()
Specified by:
getBitsPerSample in interface Digitizer

setBitsPerSample

public void setBitsPerSample(int numberOfBits)
Configures this digitizer so that it produces output with the given number of bits per sample.

The only legal values for this digitizer are 3 and 8. Other values will be converted to the nearest legal value.

Specified by:
setBitsPerSample in interface Digitizer
Parameters:
numberOfBits - the type of output, expressed as bits per sample, that this digitizer should produce.

getAllowableBitsPerSample

public SortedSet<Integer> getAllowableBitsPerSample()
Specified by:
getAllowableBitsPerSample in interface Digitizer

getSignals

public Collection<DigitalSignal> getSignals()
Returns the signals produced by this digitizer.

In 8-bit mode, the returned collection will hold a single signal. In 3-bit mode, the returned collection will hold two signals.

Returns:
the signals produced by this digitizer.

eraseSignalMemory

public void eraseSignalMemory()
Erases this device's memory of its most recent execution.

See Also:
getSignals()

execute

public void execute()
Runs the internal samplers for which this digitizer has been configured. The results of the execution are available via the getSignals() method.

Specified by:
execute in interface SignalProcessor

executeUpTo

public void executeUpTo(SignalProcessor firstUnexecutedDevice)
See SignalProcessor.executeUpTo(SignalProcessor).

Specified by:
executeUpTo in interface SignalProcessor

executeFromStartOfChainUpTo

public void executeFromStartOfChainUpTo(SignalProcessor firstUnexecutedDevice)
See SignalProcessor.executeFromStartOfChainUpTo(SignalProcessor).

Specified by:
executeFromStartOfChainUpTo in interface SignalProcessor


Copyright © 2009. All Rights Reserved.