コード例 #1
0
  private static void executeAskLogic(BasicActor gridActor, RequestContent request) {

    // FIXME the check if the request is a ping or not shall be part of the errorHandling mechanism,
    // not the normal execution
    if (request instanceof PingRequestContent) {
      gridActor.makeDecision();
    } else {
      gridActor.askChildren();
      gridActor.makeDecision();
    }
  }