Package com.barchart.util.values.api

Examples of com.barchart.util.values.api.TextValue


      eventAdd(NEW_BOOK_UPDATE);
      break;
    default:
      eventAdd(NEW_BOOK_ERROR);
      final MarketInstrument inst = get(MarketField.INSTRUMENT);
      final TextValue id = inst.get(InstrumentField.ID);
      final TextValue comment = inst.get(InstrumentField.DESCRIPTION);
      log.error("instrument : {} : {}", id, comment);
      log.error("result : {} ; entry : {} ;", result, entry);
      return;
    }
View Full Code Here


  public Void visit(final DDF_MarketQuote message, final MarketDo market) {

    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

    market.clearChanges();
    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

      eventAdd(NEW_BOOK_UPDATE);
      break;
    default:
      eventAdd(NEW_BOOK_ERROR);
      final MarketInstrument inst = get(MarketField.INSTRUMENT);
      final TextValue id = inst.get(InstrumentField.ID);
      final TextValue comment = inst.get(InstrumentField.DESCRIPTION);
      log.error("instrument : {} : {}", id, comment);
      log.error("result : {} ; entry : {} ;", result, entry);
      return;
    }
View Full Code Here

  public Void visit(final DDF_MarketQuote message, final MarketDo market) {

    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

  }

  /** random uuid based text id */
  public static final TextValue newTextId() {
    final UUID uuid = UUID.randomUUID();
    final TextValue text = newText(uuid.toString());
    return text;
  }
View Full Code Here

  public Void visit(final DDF_MarketQuote message, final MarketDo market) {

    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

  public Void visit(final DDF_MarketQuote message, final MarketDo market) {

    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

    market.clearChanges();
    // ### process quote

    // TODO part of instrument; should update definition?
    final TextValue symbolName = message.getSymbolName();
    final PriceValue priceStep = message.getPriceStep();
    final PriceValue pointValue = message.getPointValue();

    // TODO add more complete flag support?
    final DDF_Condition condition = message.getCondition();
View Full Code Here

   *
   * @param text the text
   * @return the dD f_ symbol
   */
  public static final DDF_Symbol find(final TextValue text) {
    final TextValue guid = DDF_Symbology.lookupFromSymbol(text);
    DDF_Symbol symbol = symbolMap.get(guid);

    //log.error("find {}", text);

    if (symbol == null) {
      symbol = decode(guid.toString());
      // TODO handle null symbol
      symbolMap.putIfAbsent(guid, symbol);
    }
    return symbol;
  }
View Full Code Here

TOP

Related Classes of com.barchart.util.values.api.TextValue

Copyright © 2018 www.massapicom. 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.