if(down_prot == null) { passUp(new Event(Event.START_OK, Boolean.TRUE)); return false; } else return true; } catch(Exception e) { passUp(new Event(Event.START_OK, new Exception("exception caused by " + getName() + ".start(): " + e))); return false; } case Event.STOP: stop(); if(down_prot == null) { passUp(new Event(Event.STOP_OK, Boolean.TRUE)); return false; } else return true; default: return true; } }
if (down_prot == null) { passUp(new Event(Event.START_OK, Boolean.TRUE)); return false; } else { return true; } } catch (Exception e) { passUp(new Event(Event.START_OK, new Exception("exception caused by " + getName() + ".start(): " + e))); return false; } case Event.STOP: stop(); if (down_prot == null) { passUp(new Event(Event.STOP_OK, Boolean.TRUE)); return false; } else { return true; } default: return true; } }
    protected boolean handleSpecialDownEvent(Event evt) {        switch(evt.getType()) {            case Event.ACK:                if(down_prot == null) {                    passUp(new Event(Event.ACK_OK));                    return false; // don't pass down the stack                }            case Event.START:                try {                    start();                    // if we're the transport protocol, reply with a START_OK up the stack                    if(down_prot == null) {                        passUp(new Event(Event.START_OK, Boolean.TRUE));                        return false; // don't pass down the stack                    }                    else                        return true; // pass down the stack                }                catch(Exception e) {                    passUp(new Event(Event.START_OK, new Exception("exception caused by " + getName() + ".start(): " + e)));                    return false;                }            case Event.STOP:                stop();                if(down_prot == null) {                    passUp(new Event(Event.STOP_OK, Boolean.TRUE));                    return false; // don't pass down the stack                }                else                    return true; // pass down the stack            default:                return true; // pass down by default        }    }