public final class StPonTest
extends java.lang.Object
start(WaveLength)
方法开始测试或切换波长 ,成功后通过getPower()
方法获取当前测量到的波长 结束时请执行stop()
结束测量 getInstance()
限定符和类型 | 类和说明 |
---|---|
static class |
StPonTest.OpticalPower
光功测试的返回值
|
static class |
StPonTest.WaveLength
波长类型
此枚举类定义了所有平台可能支持的波长,对具体平台,详见
|
StPonTest.WaveLength[] |
getSupportedWavelengths()
当前平台支持的可测波长
|
boolean |
start(StPonTest.WaveLength wavelength)
开始测量指定波长的光功率,若当前已经开始测量,则波长会被切换
|
public boolean start(StPonTest.WaveLength wavelength) throws java.lang.InterruptedException
wavelength
- StPonTest.WaveLength
波长,单位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
对象,否则返回null java.lang.IllegalStateException
- 未执行start(WaveLength)
或已经stop()
start(WaveLength)
,
stop()
public static StPonTest getInstance()
start(WaveLength)
,
getPower()
,
stop()