Examples of CallEvent


Examples of org.cspoker.common.api.lobby.holdemtable.event.CallEvent

    }
   
    // Change to next player
    game.nextPlayer();
   
    gameMediator.publishCallEvent(new CallEvent(player.getId(),movedAmount));
    BettingRound.logger.info(player.getName() + " calls.");
  }
View Full Code Here

Examples of org.cspoker.common.api.lobby.holdemtable.event.CallEvent

    GameState state;
    if (stack <= largestBet - bet) {
      state = new AllInState(gameState, new AllInEvent(actor, stack));
    } else {
      state = new CallState(gameState, new CallEvent(actor, largestBet - bet));
    }
    return state;
  }
View Full Code Here

Examples of org.cspoker.common.api.lobby.holdemtable.event.CallEvent

    public void onCall(Call call) {
      PlayerId id = getId(call);
      int movedAmount = getGameState().getCallValue(id);
      if(movedAmount == getGameState().getPlayer(id).getStack())
        dispatch(new AllInEvent(id, movedAmount));
      else dispatch(new CallEvent(id, movedAmount));
    }
View Full Code Here

Examples of org.eclipse.uml2.uml.CallEvent

    Namespace oNamespace = oContextClass;
    if(in_oEvent != null)
    {
      if(in_oEvent instanceof CallEvent)
      {
        CallEvent oCallEvent = (CallEvent)in_oEvent;
        oNamespace = oCallEvent.getOperation();
      }
      // TODO andere events au�er CallEvents einbauen
    }
    return oNamespace;
  }
View Full Code Here

Examples of org.eclipse.uml2.uml.CallEvent

    {
      Event oSMEvent = (Event)io_oTCGEvent.getEvent();
      // identify all parameters of the event
      if(oSMEvent instanceof CallEvent)
      {
        CallEvent oCallEvent = (CallEvent)oSMEvent;
        Operation oOperation = TestCaseGraphHelper.getContextEffectSpecificationHelper(oCallEvent.getOperation(),
            in_oContextClass);
        // default-trigger has no operation
        if(oOperation != null)
        {
          for(Parameter oParameter : oOperation.getOwnedParameters())
View Full Code Here

Examples of org.eclipse.uml2.uml.CallEvent

    Namespace oNamespace = oContextClass;
    if(in_oEvent != null)
    {
      if(in_oEvent instanceof CallEvent)
      {
        CallEvent oCallEvent = (CallEvent)in_oEvent;
//        Operation oEffectOperation = getEffectOperationForTransition(in_oTransition);
        oNamespace = oCallEvent.getOperation();
//        if(oEffectOperation != null &&
//          twoOperationsHaveTheSameParameters(
//            oEffectOperation, oCallEvent.getOperation())) {
//          oNamespace = oEffectOperation;
//        }
View Full Code Here

Examples of org.eclipse.uml2.uml.CallEvent

      oTCGEvent.setName(in_oSMEvent.getName());
      oTCGEvent.setEvent(in_oSMEvent);
      oTCGEvent.setDefaultEvent(false);
      if(in_oSMEvent instanceof CallEvent)
      {
        CallEvent oCallEvent = (CallEvent)in_oSMEvent;
        for(Parameter oParameter : oCallEvent.getOperation().getOwnedParameters())
        {
          oTCGEvent.getParameters().add(
              TCGParameterHelperClass.createTCGParameter(oParameter));
        }
      }
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.