/* * (non-Javadoc) * @see com.isencia.passerelle.actor.Actor#doInitialize() */ @Override protected void doInitialize() throws InitializationException { // TODO Auto-generated method stub super.doInitialize(); firstOperandHandler = new PortHandler(firstOperand); if (firstOperand.getWidth() > 0) { firstOperandHandler.start(); } if (secondOperand != null) { secondOperandHandler = new PortHandler(secondOperand); if (secondOperand.getWidth() > 0) { secondOperandHandler.start(); } } }
protected void doInitialize() throws InitializationException { super.doInitialize(); // If something connected to the reset port, install a handler if (reset.getWidth() > 0) { resetHandler = createPortHandler( reset, new PortListenerAdapter() { public void tokenReceived() { Token token = resetHandler.getToken(); if (token != null && !token.isNil()) { getLogger().debug("{} Reset Event received", getFullName()); isReset = true; } } }); resetHandler.start(); } setValue(getStartValue()); }