use of org.opensmartgridplatform.simulator.protocol.iec60870.domain.Iec60870AsduFactory in project open-smart-grid-platform by OSGP.
the class ScenarioHooks method initMockServerLightMeasurement.
@Before("@Iec60870MockServerLightMeasurement")
public void initMockServerLightMeasurement() {
ScenarioContext.current().put(PROFILE, Iec60870ProfileType.LIGHT_MEASUREMENT_DEVICE);
final Iec60870AsduFactory factory = new LightMeasurementDeviceAsduFactory("UTC");
factory.setIec60870Server(this.mockServer.getRtuSimulator());
this.mockServer.addIec60870ASduHandler(ASduType.C_IC_NA_1, new Iec60870InterrogationCommandAsduHandler(factory));
}
use of org.opensmartgridplatform.simulator.protocol.iec60870.domain.Iec60870AsduFactory in project open-smart-grid-platform by OSGP.
the class ScenarioHooks method initMockServerDefaultControlledStation.
@Before("@Iec60870MockServerDefaultControlledStation")
public void initMockServerDefaultControlledStation() {
ScenarioContext.current().put(PROFILE, Iec60870ProfileType.DEFAULT_CONTROLLED_STATION);
final Iec60870AsduFactory factory = new DefaultControlledStationAsduFactory();
factory.setIec60870Server(this.mockServer.getRtuSimulator());
this.mockServer.addIec60870ASduHandler(ASduType.C_IC_NA_1, new Iec60870InterrogationCommandAsduHandler(factory));
}
Aggregations