Examples of fold()


Examples of edu.mit.csail.sdg.alloy4compiler.ast.Type.fold()

                    continue;
                 }
              }
              Type t = isOne ? Sig.UNIV.type().join(f.type()) : f.type();
              TupleSet ub = factory.noneOf(t.arity());
              for(List<PrimSig> p:t.fold()) {
                 TupleSet upper=null;
                 for(PrimSig b:p) {
                    TupleSet tmp = sol.query(true, sol.a2k(b), false);
                    if (upper==null) upper=tmp; else upper=upper.product(tmp);
                 }
View Full Code Here

Examples of io.druid.query.aggregation.hyperloglog.HyperLogLogCollector.fold()

        Context context
    ) throws IOException, InterruptedException
    {
      HyperLogLogCollector aggregate = HyperLogLogCollector.makeLatestCollector();
      for (BytesWritable value : values) {
        aggregate.fold(ByteBuffer.wrap(value.getBytes(), 0, value.getLength()));
      }
      Interval interval = config.getGranularitySpec().getSegmentGranularity().bucket(new DateTime(key.get()));
      intervals.add(interval);
      final Path outPath = config.makeSegmentPartitionInfoPath(interval);
      final OutputStream out = Utils.makePathAndOutputStream(
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

    }
    Game game = gameControl.getGame();

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

    Game game = gameControl.getGame();

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

    try {
      gameControl.allIn(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());

      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

      gameControl.allIn(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());
      gameControl.call(game.getCurrentPlayer());

      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

   
    events.add(Events.fold, Events.winner);
    events.ignore();
   
    try {
      gameControl.fold(kenzo);
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

      assertEquals(FinalRound.class, gameControl.getRound().getClass());

      gameControl.bet(cedric, 20);
      gameControl.raise(kenzo, 50);
      gameControl.fold(cedric);

      assertEquals(PreFlopRound.class, gameControl.getRound().getClass());

    } catch (IllegalActionException e) {
      fail(e.getMessage());
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

      gameControl.deal();
    } catch (IllegalActionException e1) {
      fail(e1.toString());
    }
    try {
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }
View Full Code Here

Examples of org.cspoker.server.embedded.gamecontrol.PlayingTableState.fold()

    } catch (IllegalActionException e1) {
      fail(e1.toString());
    }
    try {
      gameControl.fold(game.getCurrentPlayer());
      gameControl.fold(game.getCurrentPlayer());
    } catch (IllegalActionException e) {
      fail(e.getMessage());
    }

    assertFalse(gameControl.getRound() instanceof WaitingRound);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.