/** Constructor */ public BeamOrbitFace(final GenDocument document) { DOCUMENT = document; BPM_AGENTS = getAvailableBpmAgents(document); BPM_TABLE_MODEL = new BPMTableModel(BPM_AGENTS); TARGET_PLOT = new TargetPlot(6.0, 4.0); RTBT_SEQUENCE = DOCUMENT.getAccelerator().findSequence("RTBT2"); useFieldSetpoint(); FACE_VIEW = makeView(); }
/** get the available BPM agents */ private static List<BpmAgent> getAvailableBpmAgents(final GenDocument document) { final List<BpmAgent> allBPMAgents = document.getBPMAgents(); final List<BpmAgent> bpmAgents = new ArrayList<BpmAgent>(allBPMAgents.size()); // filter out the BPMs for which we do not have supporting historical data for (final BpmAgent bpmAgent : allBPMAgents) { final String bpmID = bpmAgent.getNode().getId(); if (!bpmID.equals("RTBT_Diag:BPM16") && !bpmID.equals("RTBT_Diag:BPM22")) { bpmAgents.add(bpmAgent); } } return bpmAgents; }