int currentTime = 1+getSDEPExecutions(true, m.isDownstream());
int currentTime = (m.isDownstream()?1:0)+getSDEPExecutions(true, m.isDownstream());
    protected void deliverMessages() {        while (messageQueue.size()>0) {            Message m = (Message)messageQueue.get(0);            // deliver before the next execution            int currentTime = 1+getSDEPExecutions(true, m.isDownstream());            int deliveryTime = m.getDeliveryTime();            if (deliveryTime==currentTime) {                messageQueue.removeFirst();                m.deliver(this);            } else if (deliveryTime < currentTime) {                // if we missed deadline, throw error                throw new RuntimeException("Missed a message delivery deadline to " + this + ".  Your " +                                           "program has a message latency that is too tight to be satisfied " +                                            "under the default schedule.  Might require constrained scheduling, " +                                           "or might represent an invalid (impossibly tight) message constraint.");            } else {                break;            }        }    }