Package com.barchart.feed.inst.participant

Examples of com.barchart.feed.inst.participant.InstrumentState


      return symbolMap.get(symbol).get(0);
    }
   
    if(db.containsKey(symbol)) {
     
      final InstrumentState instState = InstrumentStateFactory.
          newInstrument(symbol);
      instState.process(db.get(symbol));
      final List<InstrumentState> list = new ArrayList<InstrumentState>();
      list.add(instState);
      symbolMap.put(symbol, list);
      return instState;
    }
   
    /* New symbol, create stub */
    final InstrumentState instState = InstrumentStateFactory.
        newInstrumentFromStub(inst);
   
    final List<InstrumentState> list = new ArrayList<InstrumentState>();
    list.add(instState);
    symbolMap.put(symbol, list);
View Full Code Here


    if(symbolMap.containsKey(symbol)) {
      return symbolMap.get(symbol).get(0);
    }
   
    if(db.containsKey(symbol)) {
      final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
      instState.process(db.get(symbol));
      final List<InstrumentState> list = new ArrayList<InstrumentState>();
      list.add(instState);
      symbolMap.put(symbol, list);
      return instState;
    }
   
    final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
   
    final List<InstrumentState> list = new ArrayList<InstrumentState>();
    list.add(instState);
    symbolMap.put(symbol, list);
View Full Code Here

    if(symbolMap.containsKey(symbol)) {
      return symbolMap.get(symbol).get(0);
    }
   
    if(db.containsKey(symbol)) {
      final InstrumentState instState = InstrumentStateFactory.newInstrument(symbol);
      instState.process(db.get(symbol));
      final List<InstrumentState> list = new ArrayList<InstrumentState>();
      list.add(instState);
      symbolMap.put(symbol, list);
      return instState;
    }
   
    final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
   
    final List<InstrumentState> list = new ArrayList<InstrumentState>();
    list.add(instState);
    symbolMap.put(symbol, list);
View Full Code Here

            /* Store instruments returned from lookup */
            for(final Entry<String, List<InstrumentState>> e : lookup.entrySet()) {
              symbolMap.put(e.getKey(), e.getValue());
             
              /* Add alternate options symbol */
              final InstrumentState inst = e.getValue().get(0);
              if(inst != null) {
               
                if(inst.symbol().contains("|")) {
                  symbolMap.put(inst.vendorSymbols().get(
                      VendorID.BARCHART), e.getValue());
                }
               
              }
             
View Full Code Here

            try {
             
              final String lookup = xmlStringDecode(ats, LOOKUP, XML_STOP);
              final InstrumentDefinition def = InstrumentXML.decodeSAX(ats);
             
              InstrumentState inst;
             
              if (def != InstrumentDefinition.getDefaultInstance()) {
                inst = InstrumentFactory.instrumentState(def);
              } else {
                inst = InstrumentState.NULL;
View Full Code Here

      return symbolMap.get(symbol);
    }
   
    if(db.containsKey(symbol)) {
     
      final InstrumentState instState = InstrumentStateFactory.
          newInstrument(symbol);
      instState.process(db.get(symbol));
      symbolMap.put(symbol, instState);
      return instState;
    }
   
    /* New symbol, create stub */
    final InstrumentState instState = InstrumentStateFactory.
        newInstrumentFromStub(inst);
   
    symbolMap.put(symbol, instState);
    log.debug("Put {} stub into map", symbol);
   
View Full Code Here

    if(symbolMap.containsKey(symbol)) {
      return symbolMap.get(symbol);
    }
   
    if(db.containsKey(symbol)) {
      final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
      instState.process(db.get(symbol));
      symbolMap.put(symbol, instState);
      return instState;
    }
   
    final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
   
    symbolMap.put(symbol, instState);
   
    /* Asnyc lookup */
 
View Full Code Here

    if(symbolMap.containsKey(symbol)) {
      return symbolMap.get(symbol);
    }
   
    if(db.containsKey(symbol)) {
      final InstrumentState instState = InstrumentStateFactory.newInstrument(symbol);
      instState.process(db.get(symbol));
      symbolMap.put(symbol, instState);
      return instState;
    }
   
    final InstrumentState instState = InstrumentStateFactory.
        newInstrument(symbol);
   
    symbolMap.put(symbol, instState);
   
    /* Asnyc lookup */
 
View Full Code Here

      return symbolMap.get(symbol).get(0);
    }
   
    if(db.containsKey(symbol)) {
     
      final InstrumentState instState = InstrumentStateFactory.
          newInstrument(symbol);
      instState.process(db.get(symbol));
      final List<InstrumentState> list = new ArrayList<InstrumentState>();
      list.add(instState);
      symbolMap.put(symbol, list);
      return instState;
    }
   
    /* New symbol, create stub */
    final InstrumentState instState = InstrumentStateFactory.
        newInstrumentFromStub(inst);
   
    final List<InstrumentState> list = new ArrayList<InstrumentState>();
    list.add(instState);
    symbolMap.put(symbol, list);
View Full Code Here

    if(symbolMap.containsKey(symbol)) {
      return symbolMap.get(symbol).get(0);
    }
   
    if(db.containsKey(symbol)) {
      final InstrumentState instState = InstrumentStateFactory.newInstrument(symbol);
      instState.process(db.get(symbol));
      final List<InstrumentState> list = new ArrayList<InstrumentState>();
      list.add(instState);
      symbolMap.put(symbol, list);
      return instState;
    }
   
    final InstrumentState instState = InstrumentStateFactory.newInstrument(symbol);
   
    final List<InstrumentState> list = new ArrayList<InstrumentState>();
    list.add(instState);
    symbolMap.put(symbol, list);
   
View Full Code Here

TOP

Related Classes of com.barchart.feed.inst.participant.InstrumentState

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.