Examples of Quote


Examples of com.example.simple.Quote

    try
    {
      SDOUtil.registerStaticTypes(SimpleFactory.class);
     
      //Quote quote = (Quote)DataFactory.INSTANCE.create(Quote.class);
      Quote quote = SimpleFactory.INSTANCE.createQuote();
     
      quote.setSymbol("fbnt");
      quote.setCompanyName("FlyByNightTechnology");
      quote.setPrice(new BigDecimal("1000.0"));
      quote.setOpen1(new BigDecimal("1000.0"));
      quote.setHigh(new BigDecimal("1000.0"));
      quote.setLow(new BigDecimal("1000.0"));
      quote.setVolume(1000);
      quote.setChange1(1000);

      //Quote child = (Quote)((DataObject)quote).createDataObject(8);
      Quote child = SimpleFactory.INSTANCE.createQuote();
      quote.getQuotes().add(child);
      child.setPrice(new BigDecimal("2000.0"));

      XMLHelper.INSTANCE.save((DataObject)quote, "http://www.example.com/simple", "stockQuote", System.out);
    }
    catch (Exception e)
    {
View Full Code Here

Examples of com.example.simple.Quote

    try
    {
      SDOUtil.registerStaticTypes(SimpleFactory.class);
     
      //Quote quote = (Quote)DataFactory.INSTANCE.create(Quote.class);
      Quote quote = SimpleFactory.INSTANCE.createQuote();
     
      quote.setSymbol("fbnt");
      quote.setCompanyName("FlyByNightTechnology");
      quote.setPrice(new BigDecimal("1000.0"));
      quote.setOpen1(new BigDecimal("1000.0"));
      quote.setHigh(new BigDecimal("1000.0"));
      quote.setLow(new BigDecimal("1000.0"));
      quote.setVolume(1000);
      quote.setChange1(1000);

      //Quote child = (Quote)((DataObject)quote).createDataObject(8);
      Quote child = SimpleFactory.INSTANCE.createQuote();
      quote.getQuotes().add(child);
      child.setPrice(new BigDecimal("2000.0"));

      XMLHelper.INSTANCE.save((DataObject)quote, "http://www.example.com/simple", "stockQuote", System.out);
    }
    catch (Exception e)
    {
View Full Code Here

Examples of com.example.simple.Quote

    {
      SimpleFactory.INSTANCE.register(scope);
      // System.out.println(SimpleFactoryImpl.PATTERN_VERSION);
     
      //Quote quote = (Quote)DataFactory.INSTANCE.create(Quote.class);
      Quote quote = SimpleFactory.INSTANCE.createQuote();
     
      quote.setSymbol("fbnt");
      quote.setCompanyName("FlyByNightTechnology");
      quote.setPrice(new BigDecimal("1000.0"));
      quote.setOpen1(new BigDecimal("1000.0"));
      quote.setHigh(new BigDecimal("1000.0"));
      quote.setLow(new BigDecimal("1000.0"));
      quote.setVolume(1000);
      quote.setChange1(1000);

      //Quote child = (Quote)((DataObject)quote).createDataObject(8);
      Quote child = SimpleFactory.INSTANCE.createQuote();
      quote.getQuotes().add(child);
      child.setPrice(new BigDecimal("2000.0"));

      // scope.getXMLHelper().save((DataObject)quote, "http://www.example.com/simple", "stockQuote", System.out);
    }
    catch (Exception e)
    {
View Full Code Here

Examples of com.example.simple.cs.Quote

        quote.setLow(new BigDecimal("1000.0"));
        quote.setVolume(1000);
        quote.setChange1(1000);
       
        List quotes = quote.getQuotes();
        Quote innerQuote = CSFactory.INSTANCE.createQuote();
       
        quotes.add(innerQuote);
        innerQuote.setPrice(new BigDecimal("2000.0"));
       
        cs.endLogging();
      
        //XMLHelper.INSTANCE.save(dQuote, "http://www.example.com/simpleCS", "quoteBase", System.out);
              
View Full Code Here

Examples of com.packetnode.blackdossier.quote.Quote

      Session session = null;
 
    try
    {
      String ticker = qf.getTicker("AA");
      Quote quote = qf.getQuote(ticker);
      List<Quote> bt = qf.getQuotes(ticker, 3);
      System.out.println("Found " + bt.size() + " records for " + ticker);  
     
      double[] values = new double[bt.size()];
      int i = 0;
      Iterator<Quote> it = bt.iterator();
      while (it.hasNext())
      {
        Quote q = it.next();
        values[i++] = q.getAdjustedClose().doubleValue();
      }
      GaussianMixtureDistribution dg = new GaussianMixtureDistribution(3, values);
      System.out.println(values.length);
      System.out.println(dg);
      System.out.println(dg.probability(.891));
View Full Code Here

Examples of com.pajb.ire.domain.Quote

         
       token.signal();


      // Build a QuoteObject from the QuoteWorkingObject
      Quote quote = quoteWorkingObject.getQuote();
     
      // Remove all the arguments from the working memory
      retractAllObjects();

      System.out.println("Elapsed Time : "+(System.currentTimeMillis() - startTime)+"ms.");
View Full Code Here

Examples of de.xanders.data.customer.dao.Quote

    /**
     * @see QuoteService#getQuoteById(java.lang.Long)
     */
    protected QuoteVO handleGetQuoteById(java.lang.Long quoteId)
        throws java.lang.Exception {
      Quote quote = this.getQuoteDao().load(quoteId);
      QuoteVO quoteVO = this.getQuoteDao().toQuoteVO(quote);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      quoteVO.setCustAccountVO(custAccountService.toCustAccountVO(quote.getCustAccount()));
      return quoteVO;           
    }
View Full Code Here

Examples of org.apache.servicemix.cxfbc.interceptors.types.quote.Quote

        QuoteReporterRPC port = quoteService.getStockQuoteReporterRPCPort();

        javax.xml.ws.Holder<java.lang.String> retailTicker = 
            new javax.xml.ws.Holder<java.lang.String>("RetailerRPC");               
        ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
        Quote quote = port.getStockQuote("FUSE", retailTicker);
       
        Thread.sleep(1000);
        //Thread.sleep(10 * 60 * 1000);
       
        assertEquals("FUSE ESB", quote.getID());
        assertEquals("8.00", quote.getTime());
        assertEquals(26.0, quote.getVal(), 0);       
        System.out.println("retail val = " + retailTicker.value);
        assertEquals("IONA PLC", retailTicker.value);
    }
View Full Code Here

Examples of org.dmlite.model.component.quote.Quote

    super(modelContext, viewContext);
  }

  protected void populateItem(final ListItem item) {
    try {
      Quote quote = (Quote) item.getModelObject();
      String text = quote.getText();
      String source = quote.getSource();
      Label quoteTextLabel = new Label("quoteText", text);
      item.add(quoteTextLabel);
      Label quoteSourceLabel = new Label("quoteSource", source);
      item.add(quoteSourceLabel);
    } catch (Exception e) {
View Full Code Here

Examples of org.elevenbits.westvleteren.model.Quote

        }
    }

    public void testCreateAndGetAndRemoveQuote() throws Exception {
      log.warn("Creating a quote");
      Quote quote = new Quote("quote", "description");
      dao.saveQuote(quote);
      Integer id = quote.getId();
      quote = dao.getQuote(id);
      assertEquals(quote.getName(), "quote");
      assertEquals(quote.getDescription(), "description");
      log.warn("Quote created: " + quote);
      dao.removeQuote(quote);
      log.warn("Quote removed");
      try {
        quote = dao.getQuote(id);
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.