/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { // Do not change clock when explicitly started in specific mode if(simulation==null) { String type = props.getStringProperty("type"); long delta = props.getLongProperty("delta"); double dilation = props.getDoubleProperty("dilation"); setClock(type, threadpool); clock.setDelta(delta); if(clock instanceof ContinuousClock) ((ContinuousClock)clock).setDilation(dilation); } return IFuture.DONE; }
/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { // Do not change clock when explicitly started in specific mode if(simulation==null) { String type = props.getStringProperty("type"); long delta = props.getLongProperty("delta"); double dilation = props.getDoubleProperty("dilation"); setClock(type, threadpool); clock.setDelta(delta); if(clock instanceof ContinuousClock) ((ContinuousClock)clock).setDilation(dilation); } return IFuture.DONE; }
/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { // Do not change clock when explicitly started in specific mode if(simulation==null) { String type = props.getStringProperty("type"); long delta = props.getLongProperty("delta"); double dilation = props.getDoubleProperty("dilation"); String oldstate = clock.getState(); setClock(type, threadpool); clock.setDelta(delta); if(clock instanceof ContinuousClock) ((ContinuousClock)clock).setDilation(dilation); if(IClock.STATE_RUNNING.equals(oldstate)) { clock.start(); } } return IFuture.DONE; }
long delay = props.getLongProperty("delay"); if(delay>0) setDelay(delay);
long delay = props.getLongProperty("delay"); if(delay>0) setDelay(delay);
long delay = props.getLongProperty("delay"); if(delay>0) setDelay(delay);