From: Bill Kuker Date: Mon, 8 Nov 2010 01:49:12 +0000 (+0000) Subject: Refine BPL calling X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c2d8ea9b5bd57edcc6953ccdf5d82a1bbe6ee0e3;p=sw%2Fmotorsim Refine BPL calling --- diff --git a/src/com/billkuker/rocketry/motorsim/Burn.java b/src/com/billkuker/rocketry/motorsim/Burn.java index ac9991f..e101d81 100644 --- a/src/com/billkuker/rocketry/motorsim/Burn.java +++ b/src/com/billkuker/rocketry/motorsim/Burn.java @@ -92,6 +92,8 @@ public class Burn { public void addBurnProgressListener( BurnProgressListener bpl ){ bpls.add(bpl); + if ( done ) + bpl.burnComplete(); } public void burn(){ @@ -101,6 +103,10 @@ public class Burn { burning = true; } log.info("Starting burn..."); + for (BurnProgressListener bpl : bpls ){ + bpl.setProgress(0); + } + int endPressureSteps = 0; long start = new Date().getTime();