예제 #1
0
 /** Constructor */
 public PVLoggerSnapshot(final long snapshotID) {
   _snapshotID = snapshotID;
   _dataSource = new PVLoggerDataSource(snapshotID);
   _bpmXMap = _dataSource.getBPMXMap();
   _bpmYMap = _dataSource.getBPMYMap();
   _dataSource.closeConnection();
 }
예제 #2
0
 /** 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;
 }
예제 #3
0
 public double getMainFieldSetting(final Electromagnet magnet) {
   final Channel channel = magnet.getChannel(MagnetMainSupply.FIELD_SET_HANDLE);
   return _dataSource.getChannelSnapshotValue(channel.channelName())[0];
 }