/* (non-Javadoc)
@see com.ibm.ws.sib.mfp.control.ControlDecisionExpected#getTick()
9074
public final long[] getTick() {
    List<Long> list = (List<Long>)jmo.getField(ControlAccess.BODY_DECISIONEXPECTED_TICK);

    long lists[] = new long[list.size()];

    for (int i = 0; i < lists.length; i++)
      lists[i] = list.get(i).longValue();

    return lists;
  }
314337
public int getCloseButtonState(JComponent c, int tabIndex, boolean tabIsMousedOver) {
        if (!c.isEnabled()) {
            return DISABLED;
        } else if (tabIndex == closeButtonArmedIndex) {
            return PRESSED;
        } else if (tabIndex == closeButtonHoverIndex) {
            return FOCUSED;
        } else if (tabIsMousedOver) {
            return MOUSE_OVER;
        }

        return ENABLED;
    }
623050
public long getStartTick()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getStartTick");
    long startTick=0;
    startTick = msgItem.getMessage().getGuaranteedValueStartTick();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getStartTick", new Long(startTick));
    return startTick;
  }
951641
public OkCoinTickerResponse getFuturesTicker(CurrencyPair currencyPair, FuturesContract prompt)
      throws IOException {
    return okCoin.getFuturesTicker(OkCoinAdapters.adaptSymbol(currencyPair), prompt.getName());
  }
294530
public java.lang.String getOnmouseout() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.onmouseout);

    }
892967
public PointF getTextOffset() {
    JsonArray jsonArray = jsonObject.getAsJsonArray(SymbolOptions.PROPERTY_TEXT_OFFSET);
    return new PointF(jsonArray.get(0).getAsFloat(), jsonArray.get(1).getAsFloat());
  }
929588
public final ControlRequestHighestGeneratedTick createNewControlRequestHighestGeneratedTick() throws MessageCreateFailedException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlRequestHighestGeneratedTick");
    ControlRequestHighestGeneratedTick msg = null;
    try {
      msg = new ControlRequestHighestGeneratedTickImpl(MfpConstants.CONSTRUCTOR_NO_OP);
    }
    catch (MessageDecodeFailedException e) {
      /* No need to FFDC this as JsMsgObject will already have done so */
      // No FFDC code needed
      throw new MessageCreateFailedException(e);
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createNewControlRequestHighestGeneratedTick");
    return msg;
  }
621946
public synchronized List<Long> getTicksOnStream()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getTicksOnStream");
      
    List<Long> msgs = new ArrayList<Long>();    
    StateStream stateStream = getStateStream();
    
    // Initial range in stream is always completed Range
    stateStream.setCursor(0);
    
    // skip this and move to next range
    stateStream.getNext();
     
    // Get the first TickRange after completed range and move cursor to the next one
    TickRange tr = stateStream.getNext();

    // Iterate until we reach final Unknown range
    while (tr.endstamp < RangeList.INFINITY)
    {
      if( !(tr.type == TickRange.Completed) )
      {
        msgs.add(new Long(tr.startstamp));
      }
      tr = stateStream.getNext();
    }
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getTicksOnStream", msgs);
    return msgs;
  }
389482
public long getDepth() throws SIMPControllableNotFoundException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getDepth");
    //the number of tick ranges in the value state on the streams
    long depth=0;
    SIMPIterator iterator = this.getStreams();
    while(iterator.hasNext())
    {
      depth+=
        ((SourceStreamControl)iterator.next()).getNumberOfActiveMessages();
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getDepth", new Long(depth));
    return depth;
  }
1102543
public SIMPPtoPOutboundTransmitControllable getPtoPOutboundTransmit()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getPtoPOutboundTransmit");

    SIMPPtoPOutboundTransmitControllable control = null;
    if(xmitPointControl != null)
    {
      control = xmitPointControl.getPtoPOutboundTransmit();
    }
  
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getPtoPOutboundTransmit", control);

    return control;
  }
488647
public synchronized String getCheckpointedValue() {
		int index = (int)(getCheckpointedSequence() - firstValueSequence);
		return (index >= 0) ? values.get(index) : null; 
	}
1154622
@Override
    public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
        ScheduledFuture<?> curr;
        synchronized (this.triggerContextMonitor) {
            curr = this.currentFuture;
        }
        return curr.get(timeout, unit);
    }
1041391
private int getOffsetY(int rowStartOffset, FontMetrics fontMetrics)
    throws BadLocationException {
    // Get the bounding rectangle of the row

    Rectangle r = component.modelToView(rowStartOffset);
    int lineHeight = fontMetrics.getHeight();
    int y = r.y + r.height;
    int descent = 0;

    // The text needs to be positioned above the bottom of the bounding
    // rectangle based on the descent of the font(s) contained on the row.

    if (r.height == lineHeight) // default font is being used
    {
      descent = fontMetrics.getDescent();
    } else // We need to check all the attributes for font changes
    {
      if (fonts == null)
        fonts = new HashMap<>();

      Element root = component.getDocument().getDefaultRootElement();
      int index = root.getElementIndex(rowStartOffset);
      Element line = root.getElement(index);

      for (int i = 0; i < line.getElementCount(); i++) {
        Element child = line.getElement(i);
        AttributeSet as = child.getAttributes();
        String fontFamily = (String) as.getAttribute(StyleConstants.FontFamily);
        Integer fontSize = (Integer) as.getAttribute(StyleConstants.FontSize);
        String key = fontFamily + fontSize;

        FontMetrics fm = fonts.get(key);

        if (fm == null) {
          Font font = new Font(fontFamily, Font.PLAIN, fontSize);
          fm = component.getFontMetrics(font);
          fonts.put(key, fm);
        }

        descent = Math.max(descent, fm.getDescent());
      }
    }

    return y - descent;
  }
1090060
public long getElapsedTicks() {
		long elapsed;
		if (running) {
			elapsed = (System.nanoTime() - startTime);
		} else {
			elapsed = (stopTime - startTime);
		}
		return elapsed / nsPerTick;
	}
719956
public Object getControlValue()
    {
        Object objValue = null;
        if (m_iCurrentState == ON)
            objValue = Boolean.TRUE;
        else if (m_iCurrentState == OFF)
            objValue = Boolean.FALSE;
        return objValue;
    }
308584
def QA_get_tick(code, start, end, market):
    
    res = None
    if market == MARKET_TYPE.STOCK_CN:
        res = QATdx.QA_fetch_get_stock_transaction(code, start, end)
    elif market == MARKET_TYPE.FUTURE_CN:
        res = QATdx.QA_fetch_get_future_transaction(code, start, end)
    return res
1221230
private void initializeTickGenerator() {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "initializeTickGenerator");

        // we do not want ticks to start at zero - it causes the first message
        // to go missing
        long tick = -1;
        try {
            tick = _msgStore.getUniqueTickCount();
        } catch (PersistenceException e) {
            // No FFDC code needed
            // Should be ok to carry on in the result of a persistence failure
            // as
            // we are only trying to increment the tick
            if (TraceComponent.isAnyTracingEnabled()
                && TraceComponent.isAnyTracingEnabled()
                && tc.isEventEnabled())
                SibTr.exception(tc, e);
        }

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "initializeTickGenerator", new Long(tick));
    }