public final class StPonTest
extends java.lang.Object
start(WaveLength)
method to start the test or switch wavelengths , then
through getPower()
method to get the current measured wavelength , when stopped run stop()
to end measurement. getInstance()
Modifier and Type | Class and Description |
---|---|
static class |
StPonTest.OpticalPower
The return value of optical power test
|
static class |
StPonTest.WaveLength
Wavelength type
This enumeration class defines the wavelength may be supported on all platforms for specific platforms.
|
Modifier and Type | Field and Description |
---|---|
OpticalPowerHelper |
mOpticalPowerHelper |
Modifier and Type | Method and Description |
---|---|
static StPonTest |
getInstance()
Get an instance of optical power measurements.
|
StPonTest.OpticalPower |
getPower()
Get the current value of optical power
|
StPonTest.WaveLength[] |
getSupportedWavelengths()
The current platform supported wavelength can be measured
|
boolean |
start(StPonTest.WaveLength wavelength)
Start measuring the optical power of the specified wavelength ,if the measurement has been
started,the wavelengths will be switched.
|
void |
stop()
Close optical power measurement
|
public boolean start(StPonTest.WaveLength wavelength) throws java.lang.InterruptedException
wavelength
- StPonTest.WaveLength
wavelength,unit nm java.lang.InterruptedException
java.lang.IllegalStateException
java.lang.NullPointerException
getPower()
,
stop()
public void stop()
start(WaveLength)
,
getPower()
public StPonTest.WaveLength[] getSupportedWavelengths()
public StPonTest.OpticalPower getPower() throws java.lang.IllegalStateException
StPonTest.OpticalPower
object,
otherwise return to nulljava.lang.IllegalStateException
- start(WaveLength)
is not performed or stop()
has been performedstart(WaveLength)
,
stop()
public static StPonTest getInstance()
start(WaveLength)
,
getPower()
,
stop()