private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs) { scs.gotoInPointNow(); scs.tick(1); scs.setInPoint(); scs.cropBuffer(); scs.gotoOutPointNow(); }
private static void deleteFirstDataPointAndCropData(SimulationConstructionSet scs) { scs.gotoInPointNow(); scs.tick(1); scs.setInPoint(); scs.cropBuffer(); scs.gotoOutPointNow(); }
scs.gotoOutPointNow(); scs.setScrollGraphsEnabled(false); scs.tick(0);
public void optimizeCorruptorValues(boolean computeTorqueOffsetsBasedOnAverages) simulationConstructionSet.gotoOutPointNow(); simulationConstructionSet.gotoOutPointNow();
public void optimizeCorruptorValues(boolean computeTorqueOffsetsBasedOnAverages) simulationConstructionSet.gotoOutPointNow(); simulationConstructionSet.gotoOutPointNow();
@Override public void actionPerformed(ActionEvent e) { if(record.isSelected()) { synchronized (this) { yoVariableClient.setSendingVariableChanges(false); recording = false; record.setText("Resume recording"); scs.setScrollGraphsEnabled(true); } } else { synchronized (this) { scs.gotoOutPointNow(); recording = true; record.setText("Pause recording"); scs.setScrollGraphsEnabled(false); yoVariableClient.setSendingVariableChanges(true); } } } });
@Override public void actionPerformed(ActionEvent e) { if(record.isSelected()) { synchronized (this) { yoVariableClient.setSendingVariableChanges(false); recording = false; record.setText("Resume recording"); scs.setScrollGraphsEnabled(true); } } else { synchronized (this) { scs.gotoOutPointNow(); recording = true; record.setText("Pause recording"); scs.setScrollGraphsEnabled(false); yoVariableClient.setSendingVariableChanges(true); } } } });
assertEquals(6, scs.getIndex()); scs.gotoOutPointNow(); assertEquals(6, simulationRewoundListener.getCount()); assertEquals(6, scs.getIndex());
scs.gotoOutPointNow(); int outputPointFromSCS = scs.getIndex(); assertEquals(outputPoint, outputPointFromSCS);