*/
@Override
public final boolean hasExternalInput() {
Iterator<IPort> itp = getInPortIterator();
IPort port;
// loop through all in ports and check whether there are any pending
// messages
while (itp.hasNext()) {
port = itp.next();
// is there an incoming message?
if (port.hasValue()) {
// return with true if first port with a message has been found
return true;
}
}
// if we get here no port with a pending message has been found