private boolean areAllNodeEnded(){
  if (protocol != null && protocol.hasProtocol()) {
    final Collection<ProtocolNode> protocolNodes=protocolNodeParticipantMap.values();
    if (protocolNodes.isEmpty()) {
      return false;
    }
    for (    final ProtocolNode node : protocolNodes) {
      if (!(node != null && node.isTerminal())) {
        return false;
      }
    }
    return true;
  }
  final Collection<FIPAMessage> finalMsgs=noProtocolNodeParticipantMap.values();
  if (finalMsgs.isEmpty()) {
    return false;
  }
  for (  final FIPAMessage finalMsg : finalMsgs) {
    if (finalMsg.getPerformative() != FIPAConstants.Performatives.END_CONVERSATION) {
      return false;
    }
  }
  return true;
}

private boolean areAllNodeEnded ( ) { if ( protocol != null && protocol . hasProtocol ( ) ) { final Collection < ProtocolNode > protocolNodes = protocolNodeParticipantMap . values ( ) ; if ( protocolNodes . isEmpty ( ) ) { return false ; } for ( final ProtocolNode node : protocolNodes ) { if ( ! ( node != null && node . isTerminal ( ) ) ) { return false ; } } return true ; } final Collection < FIPAMessage > finalMsgs = noProtocolNodeParticipantMap . values ( ) ; if ( finalMsgs . isEmpty ( ) ) { return false ; } for ( final FIPAMessage finalMsg : finalMsgs ) { if ( finalMsg . getPerformative ( ) != FIPAConstants . Performatives . END_CONVERSATION ) { return false ; } } return true ; }
are all node ended .
