private void callSCSMethodSimulateOneRecordStepNow(SimulationConstructionSet scs) { try { scs.simulateOneRecordStepNow(); } catch (UnreasonableAccelerationException e) { e.printStackTrace(); } }
@ContinuousIntegrationTest(estimatedDuration = 9.2) @Test(timeout = 520000) public void testCanRewindAndGoForward() throws UnreasonableAccelerationException { BambooTools.reportTestStartedMessage(simulationTestingParameters.getShowWindows()); int numberOfSteps = 100; SimulationConstructionSet scs = setupScs(); scs.simulateOneRecordStepNow(); scs.simulateOneRecordStepNow(); for (int i = 0; i < numberOfSteps; i++) { scs.simulateOneRecordStepNow(); scs.simulateOneRecordStepNow(); scs.stepBackwardNow(); } scs.closeAndDispose(); BambooTools.reportTestFinishedMessage(simulationTestingParameters.getShowWindows()); }
private void seek(int newValue) { synchronized (seekLock) { if (!isSeeking && !scs.isSimulating()) { if(newValue > 0) { newValue -= 1; } robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek. try { scs.simulateOneRecordStepNow(); scs.setInPoint(); } catch (UnreasonableAccelerationException e) { e.printStackTrace(); } if (multiPlayer != null) multiPlayer.indexChanged(0, 0); } } }
private void seek(int newValue) { synchronized (seekLock) { if (!isSeeking && !scs.isSimulating()) { if(newValue > 0) { newValue -= 1; } robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek. try { scs.simulateOneRecordStepNow(); scs.setInPoint(); } catch (UnreasonableAccelerationException e) { e.printStackTrace(); } if (multiPlayer != null) multiPlayer.indexChanged(0, 0); } } }
private void seek(int newValue) { synchronized (seekLock) { if (!isSeeking && !scs.isSimulating()) { if(newValue > 0) { newValue -= 1; } robot.seek(newValue); //Do -1 so that we'll get to sliderValue after doing the seek. try { scs.simulateOneRecordStepNow(); scs.setInPoint(); } catch (UnreasonableAccelerationException e) { e.printStackTrace(); } if (multiPlayer != null) multiPlayer.notifyOfIndexChange(0); } } }