Examples of withdraw()


Examples of ch.ethz.prose.eclipse.internal.run.AspectNode.withdraw()

        Object node = SelectionUtil.getSingleElement(viewer.getSelection());
        if (node instanceof AspectNode && event.detail == DND.DROP_MOVE) {
            AspectNode aspect = (AspectNode) node;
            if (event.detail == DND.DROP_MOVE) {
                try {
                    aspect.withdraw();
                } catch (UnreachableException e) {
                    ProsePlugin.log(e);
                    ProsePlugin.openErrorDialog("Aspect withdrawal failed",
                            "Could not withdraw aspect because the Prose application is not reachable.");
                }
View Full Code Here

Examples of ch.ethz.prose.tools.RemoteAspectManager.withdraw()

        AspectManagerNode manager = getAspectManager();
        try {
            RemoteAspectManager remote = getAspectManager().getAspectManager();
            Object id = manager.getTransactionId();
            if (id == null)
                remote.withdraw(getAspect());
            else
                remote.withdraw(getAspect(), id);
            ProsePlugin.getDefault().fireAspectWithdrawn(this);
        } catch (ClassNotFoundException e) {
            throw new Error(e);
View Full Code Here

Examples of ch.ethz.prose.tools.RemoteAspectManager.withdraw()

            RemoteAspectManager remote = getAspectManager().getAspectManager();
            Object id = manager.getTransactionId();
            if (id == null)
                remote.withdraw(getAspect());
            else
                remote.withdraw(getAspect(), id);
            ProsePlugin.getDefault().fireAspectWithdrawn(this);
        } catch (ClassNotFoundException e) {
            throw new Error(e);
        } catch (RemoteException e) {
            manager.getRun().setUnreachable();
View Full Code Here

Examples of com.exedosoft.wf.wfi.NodeInstance.withDraw()

      return null;
    }
    NodeInstance ni = NodeInstance.getNodeInstanceByID(ptNI
        .getCorrInstance().getUid());
    try {
      ni.withDraw();
    } catch (WFException e) {
      this.setEchoValue(e.getMessage());
      return NO_FORWARD;
    }
    return DEFAULT_FORWARD;
View Full Code Here

Examples of com.greatmancode.craftconomy3.account.Account.withdraw()

    }

    double balance;
    Account account = Common.getInstance().getAccountManager().getAccount(playerName);
    if (account.hasEnough(amount, worldName, Common.getInstance().getCurrencyManager().getDefaultCurrency().getName())) {
      balance = account.withdraw(amount, worldName, Common.getInstance().getCurrencyManager().getDefaultCurrency().getName(), Cause.VAULT, null);
      return new EconomyResponse(amount, balance, ResponseType.SUCCESS, "");
    } else {
      return new EconomyResponse(0, getBalance(playerName, worldName), ResponseType.FAILURE, "Insufficient funds");
    }
  }
View Full Code Here

Examples of com.sun.ebank.ejb.tx.TxController.withdraw()

        }
      }
    } else
      if (operation == 0) { 
        try {
          txctl.withdraw(amount, "ATM Withdrawal", accountId);
        } catch (RemoteException e) {
        } catch (IllegalArgumentException e) {
        } catch (AccountNotFoundException e) {
        } catch (InsufficientFundsException e) {
        } catch (IllegalAccountTypeException e) {
View Full Code Here

Examples of com.sun.ebank.ejb.tx.TxController.withdraw()

        }
      }
    } else
      if (operation == 0) { 
        try {
          txctl.withdraw(amount, "ATM Withdrawal", accountId);
        } catch (RemoteException e) {
          Debug.print(message);
          return e.getMessage();
        } catch (InvalidParameterException e) {
          // Not possible
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.realtimermi.bank.rw.IBankAccount.withdraw()

       
        edu.vt.rt.hyflow.benchmark.Benchmark.processingDelay();
       
        for(int i=0; i<Benchmark.calls; i++){
          Network.linkDelay(true, server2);
          subAccount2.withdraw(amount, deadline.getSeconds(), deadline.getNanoseconds(), period_ts.getSeconds(), period_ts.getNanoseconds());
        }       
      }

      Logger.debug("Out");
      //Logger.fetal("Succeeded [" + subAccountNum1 + ", " +subAccountNum2 + "]");
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.tm.bank.BankAccount.withdraw()

    DirectoryManager locator = HyFlow.getLocator();
    for(int i=1; i<args.length; i++){
        BankAccount account = (BankAccount)locator.open(args[i]);
        if(account!=null){
          account.deposit(50);
          System.out.println(account.withdraw(10*Integer.parseInt(args[0])));
          locator.release(account);
        }
        else
          System.out.println("Account " + args[i] + " is not found!");
      }
View Full Code Here

Examples of mjg.spring.entities.Account.withdraw()

        return account.getBalance();
    }

    public BigDecimal withdrawFromAccount(int id, BigDecimal amount) {
        Account account = dao.findAccountById(id);
        account.withdraw(amount);
        dao.updateAccount(account);
        return account.getBalance();
    }

    public boolean transferFunds(int fromId, int toId, BigDecimal amount) {
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.