#include <trx.h>
Public Member Functions | |
void | init (int lowRange, int highRange) |
Initialize a new TRX object from the provided information. | |
bool | isAvailable (long lightpath, int wvlen) |
Check if the Tx/Rx component is available. | |
long | reset () |
Reset the component (i.e make the lightpath value = NONE). | |
long | reset (long lightpath) |
Reset the component (if the provided lightpath is the lightpath that is using this component. | |
std::string & | toString () |
Convert this object to string. | |
TRX () | |
Construct a new TRX object. | |
Private Attributes | |
std::string | _descStr |
Description string. | |
int | _highRange |
the higher range of tunability | |
long | _lightpath |
Lightpath using this Transceiver component = NONE if none used. | |
int | _lowRange |
the lower range of tunability |
By specifying the same low-range and hig-range of tuning, a fixed laser (or) filter can be simulated.
|
Construct a new
|
|
Initialize a new
|
|
Check if the Tx/Rx component is available. Two checks are made I. Check if the wavelength is in the supported range II. If this is not being used already.
|
|
Reset the component (if the provided lightpath is the lightpath that is using this component.
|
|
Reset the component (i.e make the lightpath value = NONE).
|
|
Convert this object to string.
|
|
Lightpath using this Transceiver component = NONE if none used.
|
|
the lower range of tunability
|
|
the higher range of tunability
|
|
Description string.
|