CARMA C++
|
A monitor system physical device, used in the construction of monitor points and containers that are based on physical devices. More...
#include <carma/monitor/PhysicalDevice.h>
Public Types | |
enum | DEVICE { NODEVICE, WB_DOWNCONVERTER1, WB_DOWNCONVERTER2, WB_DOWNCONVERTER3, WB_DOWNCONVERTER4, WB_DOWNCONVERTER5, WB_DOWNCONVERTER6, WB_DOWNCONVERTER7, WB_DOWNCONVERTER8, WB_DOWNCONVERTER128 = WB_DOWNCONVERTER1 +127, SL_DOWNCONVERTER1, SL_DOWNCONVERTER2, SL_DOWNCONVERTER3, SL_DOWNCONVERTER4, SL_DOWNCONVERTER5, SL_DOWNCONVERTER6, SL_DOWNCONVERTER7, SL_DOWNCONVERTER8, SL_DOWNCONVERTER9, SL_DOWNCONVERTER10, SL_DOWNCONVERTER11, SL_DOWNCONVERTER12, SL_DOWNCONVERTER13, SL_DOWNCONVERTER14, SL_DOWNCONVERTER15, SL_DOWNCONVERTER120 = SL_DOWNCONVERTER1 +119, WB_QUADMOD1, WB_QUADMOD2, WB_QUADMOD3, WB_QUADMOD4, WB_QUADMOD5, WB_QUADMOD6, WB_QUADMOD7, WB_QUADMOD8, SL_QUADMOD1, SL_QUADMOD2, SL_QUADMOD3, SL_QUADMOD4, SL_QUADMOD5, SL_QUADMOD6, SL_QUADMOD7, SL_QUADMOD8, SL_QUADMOD9, SL_QUADMOD10, SL_QUADMOD11, SL_QUADMOD12, SL_QUADMOD13, SL_QUADMOD14, SL_QUADMOD15, WB_NOISE_SOURCE, SL_NOISE_SOURCE, WB_LO_MONITOR, SL_LO_MONITOR, LR_CHAN1, LR_CHAN2, LR_CHAN3, LR_CHAN4, LR_CHAN5, LR_CHAN6, LR_CHAN7, LR_CHAN8, LR_CHAN9, LR_CHAN10, LR_CHAN11, LR_CHAN12, LR_CHAN13, LR_CHAN14, LR_CHAN15, LR_CHAN16, LR_CHAN17, LR_CHAN18, LR_CHAN19, LR_CHAN20, LR_CHAN21, LR_CHAN22, LR_CHAN23, LR_BOARD1, LR_BOARD2, LR_BOARD3, LR_BOARD4, LR_BOARD5, LR_BOARD6, WB_DIGITIZER1, WB_DIGITIZER2, WB_DIGITIZER3, WB_DIGITIZER4, WB_CORRELATOR1, WB_CORRELATOR2, WB_CORRELATOR3, YIG, GUNN1CM, GUNN3MM, GUNN1MM, IFBOX, CRYO_COMPRESSOR, CRYO_DEWAR, CALIBRATOR, DRIVE, MIXER_3MM, WIDGET1, WIDGET2, WIDGET3, WIDGET4, WIDGET5, WIDGET6, WIDGET7, WIDGET8, WIDGET9, WIDGET10, BIG_WIDGET, MASTER_CLOCK, TILTMETER, SECONDARY, OVRO_OPTICS, ENVIRONMENTAL_MONITOR, LOREF_SYNTHESIZER1, LOREF_SYNTHESIZER2, LOREF_SYNTHESIZER3, LOREF_DISTRIBUTION_BOX1, LOREF_DISTRIBUTION_BOX2, LOREF_DISTRIBUTION_BOX3, LOREF_MONITOR, LL_OPTICAL_RXTX_BOX1, LL_OPTICAL_RXTX_BOX2, LL_OPTICAL_RXTX_BOX3, WEATHER_STATION, RX_TEMPERATURE_CONTROL, MIXER_1MM, SL_LO_CONTROL, BLOCK_DOWNCONVERTER1, BLOCK_DOWNCONVERTER2, BLOCK_DOWNCONVERTER3, BLOCK_DOWNCONVERTER4, BLOCK_DOWNCONVERTER5, BLOCK_DOWNCONVERTER6, BLOCK_DOWNCONVERTER7, BLOCK_DOWNCONVERTER8, BLOCK_DOWNCONVERTER9, BLOCK_DOWNCONVERTER10, BLOCK_DOWNCONVERTER11, BLOCK_DOWNCONVERTER12, BLOCK_DOWNCONVERTER13, BLOCK_DOWNCONVERTER14, BLOCK_DOWNCONVERTER15, NUM_DEVICES } |
device codes More... | |
enum | LOCATION { NOLOCATION, BIMA1, BIMA2, BIMA3, BIMA4, BIMA5, BIMA6, BIMA7, BIMA8, BIMA9, OVRO1, OVRO2, OVRO3, OVRO4, OVRO5, OVRO6, SZA1, SZA2, SZA3, SZA4, SZA5, SZA6, SZA7, SZA8, WBDC_HOST, SL_CORREL_BAND1, SL_CORREL_BAND2, SL_CORREL_BAND3, SL_CORREL_BAND4, SL_CORREL_BAND5, SL_CORREL_BAND6, SL_CORREL_BAND7, SL_CORREL_BAND8, SLDC_HOST, LOBEROTATOR_CONTROLLER, WB_CORREL_BAND1, WB_CORREL_BAND2, WB_CORREL_BAND3, WB_CORREL_BAND4, WB_CORREL_BAND5, WB_CORREL_BAND6, WB_CORREL_BAND7, WB_CORREL_BAND8, WB_CORREL_BAND9, WB_CORREL_BAND10, WB_CORREL_BAND11, WB_CORREL_BAND12, WB_CORREL_BAND13, WB_CORREL_BAND14, WB_CORREL_BAND15, WB_CORREL_BAND16, LAB, PHASEMONITOR, NUM_LOCATIONS } |
location codes More... | |
Public Member Functions | |
DEVICE | getDevice () const |
Get the deviceID for this device. More... | |
std::string | getDeviceString () const |
Get a device string for this physical device. More... | |
std::string | getDeviceString (DEVICE device) const |
Get a device string for specified device string. More... | |
LOCATION | getLocation () const |
Get the locationID for this device. More... | |
std::string | getLocationString () const |
Get a location string for this physical device. More... | |
std::string | getLocationString (LOCATION location) const |
Get a location string for specified location string. More... | |
PhysicalDevice () | |
Constructor. More... | |
PhysicalDevice (LOCATION locationID, DEVICE deviceID) | |
Constructor. More... | |
void | setDevice (DEVICE deviceID) |
Set the deviceID for this device. More... | |
void | setLocation (LOCATION locationID) |
Set the locationID for this device. More... | |
std::string | toString () const |
Get the location.device string for this device. More... | |
~PhysicalDevice () | |
Destructor. More... | |
Static Public Member Functions | |
static LOCATION | getBimaAntenna (int antennaNo) |
Get the locationID for a Bima antenna. More... | |
static LOCATION | getOvroAntenna (int antennaNo) |
Get the locationID for an Ovro antenna. More... | |
static DEVICE | getSldcModule (int bandIndex, int inputIndex) |
Get the deviceID for a spectral line downconverter module. More... | |
static LOCATION | getSzaAntenna (int antennaNo) |
Get the locationID for an Sza antenna. More... | |
static DEVICE | getWbdcModule (int bandIndex, int inputIndex) |
Get the deviceID for a wideband downconverter module. More... | |
static std::string | toStringAll () |
Get all the location and device strings - for debugging. More... | |
A monitor system physical device, used in the construction of monitor points and containers that are based on physical devices.
A physical device is identified by a two level physical hierarchy of "location.device", each represented by integer codes.
Definition at line 34 of file PhysicalDevice.h.
device codes
Definition at line 103 of file PhysicalDevice.h.
location codes
Definition at line 40 of file PhysicalDevice.h.
carma::monitor::PhysicalDevice::PhysicalDevice | ( | ) |
Constructor.
Constructor.
locationID | location ID |
deviceID | device ID |
carma::monitor::PhysicalDevice::~PhysicalDevice | ( | ) |
Destructor.
|
static |
Get the locationID for a Bima antenna.
antennaNo | antenna number |
DEVICE carma::monitor::PhysicalDevice::getDevice | ( | ) | const |
Get the deviceID for this device.
std::string carma::monitor::PhysicalDevice::getDeviceString | ( | ) | const |
Get a device string for this physical device.
std::string carma::monitor::PhysicalDevice::getDeviceString | ( | DEVICE | device | ) | const |
Get a device string for specified device string.
device | ID |
LOCATION carma::monitor::PhysicalDevice::getLocation | ( | ) | const |
Get the locationID for this device.
std::string carma::monitor::PhysicalDevice::getLocationString | ( | ) | const |
Get a location string for this physical device.
std::string carma::monitor::PhysicalDevice::getLocationString | ( | LOCATION | location | ) | const |
Get a location string for specified location string.
location | location ID |
|
static |
Get the locationID for an Ovro antenna.
antennaNo | antenna number |
|
static |
Get the deviceID for a spectral line downconverter module.
bandIndex | starting at zero |
inputIndex | starting at zero |
|
static |
Get the locationID for an Sza antenna.
antennaNo | antenna number |
|
static |
Get the deviceID for a wideband downconverter module.
bandIndex | starting at zero |
inputIndex | starting at zero |
void carma::monitor::PhysicalDevice::setDevice | ( | DEVICE | deviceID | ) |
Set the deviceID for this device.
deviceID | device ID |
void carma::monitor::PhysicalDevice::setLocation | ( | LOCATION | locationID | ) |
Set the locationID for this device.
locationID | location ID |
std::string carma::monitor::PhysicalDevice::toString | ( | ) | const |
Get the location.device string for this device.
|
static |
Get all the location and device strings - for debugging.