Examples of Charge


Examples of com.compomics.util.experiment.massspectrometry.Charge

        }

        // set the min/max precursor charge
        prideParametersReport += "<br><br><b>Min Precusor Charge:</b> ";
        if (minPrecursorCharge != null) {
            prideSearchParameters.setMinChargeSearched(new Charge(Charge.PLUS, minPrecursorCharge));
            prideParametersReport += minPrecursorCharge;
        } else {
            prideParametersReport += prideSearchParameters.getMinChargeSearched().value + " (default)";
        }
        prideParametersReport += "<br><b>Max Precusor Charge:</b> ";
        if (maxPrecursorCharge != null) {
            prideSearchParameters.setMaxChargeSearched(new Charge(Charge.PLUS, maxPrecursorCharge));
            prideParametersReport += maxPrecursorCharge;
        } else {
            prideParametersReport += prideSearchParameters.getMaxChargeSearched().value + " (default)";
        }
View Full Code Here

Examples of com.compomics.util.experiment.massspectrometry.Charge

                    PeptideFragmentIon peptideFragmentIon = (PeptideFragmentIon) ionMatch.ion;

                    if (peptideFragmentIon.getNeutralLosses().isEmpty()) {

                        //Q1
                        Charge charge = bestAssumption.getIdentificationCharge();
                        double theoreticPrecMz = (peptide.getMass() + charge.value * ElementaryIon.proton.getTheoreticMass()) / charge.value;
                        writer.write(theoreticPrecMz + SEPARATOR);

                        //Q3
                        double theoreticFragMz = ionMatch.ion.getTheoreticMz(charge.value);
View Full Code Here

Examples of com.compomics.util.experiment.massspectrometry.Charge

            }
        }
        if (fractionMolecularWeights != null) {
            updatedVersion.setFractionMolecularWeights(fractionMolecularWeights);
        }
        updatedVersion.setMaxChargeSearched(new Charge(Charge.PLUS, 4));
        updatedVersion.setMinChargeSearched(new Charge(Charge.PLUS, 2));
        updatedVersion.setMaxEValue(100.0);
        updatedVersion.setHitListLength(100);
        updatedVersion.setMinimalChargeForMultipleChargedFragments(new Charge(Charge.PLUS, 3));
        updatedVersion.setMaxPeptideLength(20);
        updatedVersion.setMinPeptideLength(6);
        updatedVersion.setEstimateCharge(true);
        updatedVersion.setRemovePrecursor(false);
        updatedVersion.setScalePrecursor(false);
View Full Code Here

Examples of com.l2jfrozen.gameserver.handler.skillhandlers.Charge

    registerSkillHandler(new HealPercent());
    registerSkillHandler(new Teleport());
    registerSkillHandler(new CombatPointHeal());
    registerSkillHandler(new ManaHeal());
    registerSkillHandler(new BalanceLife());
    registerSkillHandler(new Charge());
    registerSkillHandler(new ClanGate());
    registerSkillHandler(new Continuous());
    registerSkillHandler(new Resurrect());
    registerSkillHandler(new Spoil());
    registerSkillHandler(new Sweep());
View Full Code Here

Examples of com.stripe.model.Charge

    assertEquals(1, retrievedBalance.getAvailable().size());
  }

  @Test
  public void testChargeCreate() throws StripeException {
    Charge createdCharge = Charge.create(defaultChargeParams);
    assertFalse(createdCharge.getRefunded());
  }
View Full Code Here

Examples of com.stripe.model.Charge

    Map<String, Object> chargeWithStatementDescriptionParams = new HashMap<String, Object>();
    chargeWithStatementDescriptionParams.putAll(defaultChargeParams);
    chargeWithStatementDescriptionParams.put("description", "hahaha1234");
    chargeWithStatementDescriptionParams.put("statement_description", "Stripe");

    Charge createdCharge = Charge.create(chargeWithStatementDescriptionParams);
    assertEquals("Stripe", createdCharge.getStatementDescription());
  }
View Full Code Here

Examples of com.stripe.model.Charge

    assertEquals(retrieved.getSource(), first.getSource());
  }

  @Test
  public void testChargeRetrieve() throws StripeException {
    Charge createdCharge = Charge.create(defaultChargeParams);
    Charge retrievedCharge = Charge.retrieve(createdCharge.getId());
    assertEquals(createdCharge.getCreated(), retrievedCharge.getCreated());
    assertEquals(createdCharge.getId(), retrievedCharge.getId());
  }
View Full Code Here

Examples of com.stripe.model.Charge

    }
  }

  @Test
  public void testChargeRefund() throws StripeException {
    Charge createdCharge = Charge.create(defaultChargeParams);
    Charge refundedCharge = createdCharge.refund();
    assertTrue(refundedCharge.getRefunded());
    ChargeRefundCollection refunds = refundedCharge.getRefunds();
    assertTrue(refunds.getData() instanceof List);
    assertEquals(1, refunds.getData().size());
    assertTrue(refunds.getData().get(0) instanceof Refund);
  }
View Full Code Here

Examples of com.stripe.model.Charge

    assertTrue(refunds.getData().get(0) instanceof Refund);
  }

  @Test
  public void testChargeRefundUpdateApiKey() throws StripeException {
    Charge createdCharge = Charge.create(defaultChargeParams);
    ChargeRefundCollection refunds = createdCharge.refund().getRefunds();
    Refund refund = refunds.getData().get(0);

    Map<String, String> metadata = new HashMap<String, String>();
    metadata.put("foo", "bar");
View Full Code Here

Examples of com.stripe.model.Charge

    assertEquals("bar", refund.getMetadata().get("foo"));
  }

  @Test
  public void testChargeRefundCreate() throws StripeException {
    Charge ch = Charge.create(defaultChargeParams);
    Map<String, Object> params = new HashMap<String, Object>();
    params.put("amount", 10);
    ChargeRefundCollection refunds = ch.getRefunds();
    Refund created = refunds.create(params);
    Refund retrieved = ch.getRefunds().retrieve(created.getId());
    assertEquals(created.getId(), retrieved.getId());
  }
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.