/** Constructor */ public PVLoggerSnapshot(final long snapshotID) { _snapshotID = snapshotID; _dataSource = new PVLoggerDataSource(snapshotID); _bpmXMap = _dataSource.getBPMXMap(); _bpmYMap = _dataSource.getBPMYMap(); _dataSource.closeConnection(); }
/** get a scenario with the specified probe and data source */ protected Scenario getScenario(final TransferMapProbe probe, final PVLoggerDataSource dataSource) throws Exception { final Scenario scenario = Scenario.newScenarioFor(_sequence); scenario.setSynchronizationMode(Scenario.SYNC_MODE_DESIGN); final Scenario loggerScenario = dataSource.setModelSource(_sequence, scenario); loggerScenario.setStartNode("RTBT_Diag:BPM15"); loggerScenario.setProbe(probe); return loggerScenario; }
public double getMainFieldSetting(final Electromagnet magnet) { final Channel channel = magnet.getChannel(MagnetMainSupply.FIELD_SET_HANDLE); return _dataSource.getChannelSnapshotValue(channel.channelName())[0]; }