Examples of accept()


Examples of com.opengamma.financial.security.option.NonDeliverableFXDigitalOptionSecurity.accept()

  }

  @Test
  public void testNonDeliverableFXDigitalOptionSecurity() {
    final NonDeliverableFXDigitalOptionSecurity security = ExposureFunctionTestHelper.getNonDeliverableFXDigitalOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "NONDELIVERABLE_FX_DIGITAL_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.NonDeliverableFXOptionSecurity.accept()

  }

  @Test
  public void testNonDeliverableFXOptionSecurity() {
    final NonDeliverableFXOptionSecurity security = ExposureFunctionTestHelper.getNonDeliverableFXOptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "NONDELIVERABLE_FX_OPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.option.SwaptionSecurity.accept()

  }

  @Test
  public void testSwaptionSecurity() {
    final SwaptionSecurity security = ExposureFunctionTestHelper.getPaySwaptionSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "SWAPTION"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.swap.ForwardSwapSecurity.accept()

  }

  @Test
  public void testForwardFixedFloatSwapSecurity() {
    final ForwardSwapSecurity security = ExposureFunctionTestHelper.getPayForwardFixedFloatSwapSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "SWAP"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.swap.SwapLeg.accept()

  public Pair<T, T> visit(final SwapSecurity swap) {
    final FixedFloatVisitor fixedFloatVisitor = new FixedFloatVisitor();
    final SwapLeg payLeg = swap.getPayLeg();
    final SwapLeg receiveLeg = swap.getReceiveLeg();
    final boolean payFixed = payLeg.accept(fixedFloatVisitor);
    final boolean receiveFixed = receiveLeg.accept(fixedFloatVisitor);
    T firstValue;
    T secondValue;
    if (payFixed && receiveFixed) {
      firstValue = payLeg.accept(new FixedVisitor());
      secondValue = receiveLeg.accept(new FixedVisitor());
View Full Code Here

Examples of com.opengamma.financial.security.swap.SwapSecurity.accept()

    ExternalIdVisitor visitor = new ExternalIdVisitor(securityMaster);
    SwapSecurity swap = createSwap();
    UniqueId uid = UniqueId.of("test", "123");
    swap.setUniqueId(uid);
    assertTrue(swap.getExternalIdBundle().isEmpty());
    swap.accept(visitor);
    assertEquals(ExternalId.of(ObjectId.EXTERNAL_SCHEME, uid.getObjectId().toString()),
                 swap.getExternalIdBundle().getExternalId(ObjectId.EXTERNAL_SCHEME));
    verify(securityMaster).update(new SecurityDocument(swap));
  }
View Full Code Here

Examples of com.opengamma.financial.security.swap.YearOnYearInflationSwapSecurity.accept()

  }

  @Test
  public void testPayYoYInflationSwapSecurity() {
    final YearOnYearInflationSwapSecurity security = ExposureFunctionTestHelper.getPayYoYInflationSwapSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "YEAR_ON_YEAR_INFLATION_SWAP"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.opengamma.financial.security.swap.ZeroCouponInflationSwapSecurity.accept()

  }

  @Test
  public void testPayZeroCouponInflationSwapSecurity() {
    final ZeroCouponInflationSwapSecurity security = ExposureFunctionTestHelper.getPayZeroCouponInflationSwapSecurity();
    final List<ExternalId> ids = security.accept(EXPOSURE_FUNCTION);
    assertEquals(1, ids.size());
    assertEquals(ExternalId.of(SCHEME, "ZERO_COUPON_INFLATION_SWAP"), ids.get(0));
  }

  @Test
View Full Code Here

Examples of com.openmashupos.socket.client.ServerSocket.accept()

         });
         RootPanel.get().add(b);
        
        ServerSocket ss = new ServerSocket(100);
       
        ss.accept(new ServerSocketCallback()
        {
          public void onConnectionAccepted(final Socket s)
          {
            s.setSocketCallback(new SocketCallback()
            {
View Full Code Here

Examples of com.salesforce.phoenix.expression.Expression.accept()

            final Set<SingleAggregateFunction> aggFuncSet = Sets.newHashSetWithExpectedSize(context.getExpressionManager().getExpressionCount());
   
            Iterator<Expression> expressions = context.getExpressionManager().getExpressions();
            while (expressions.hasNext()) {
                Expression expression = expressions.next();
                expression.accept(new SingleAggregateFunctionVisitor() {
                    @Override
                    public Iterator<Expression> visitEnter(SingleAggregateFunction function) {
                        aggFuncSet.add(function);
                        return Iterators.emptyIterator();
                    }
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.