Examples of adjust()


Examples of aimax.osm.data.BoundingBox.adjust()

    }
    for (long id : toDelete) {
      nodes.remove(id);
    }
    BoundingBox bbAllNodes = new BoundingBox();
    bbAllNodes.adjust(nodes.values());
    bbAllNodes.adjust(pois);
    if (boundingBox == null)
      boundingBox = bbAllNodes;
    else
      boundingBox.intersectWith(bbAllNodes);
View Full Code Here

Examples of aimax.osm.viewer.MapViewPane.adjust()

    if (e.getSource() == zoomInButton) {
      view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == zoomOutButton) {
      view.zoom(0.5f, view.getWidth() / 2, view.getHeight() / 2);
    } else if (e.getSource() == leftButton) {
      view.adjust((int) (0.3 * view.getWidth()), 0);
    } else if (e.getSource() == rightButton) {
      view.adjust((int) (-0.3 * view.getWidth()), 0);
    else if (e.getSource() == upButton) {
      view.adjust(0, (int) (0.3 * view.getHeight()));
    } else if (e.getSource() == downButton) {
View Full Code Here

Examples of com.opengamma.core.historicaltimeseries.HistoricalTimeSeriesAdjustment.adjust()

    if (checkMissing(executionContext, latestDataPoint, ageLimit)) {
      value = MissingInput.MISSING_MARKET_DATA;
    } else {
      final String adjusterString = desiredValue.getConstraint(HistoricalTimeSeriesFunctionUtils.ADJUST_PROPERTY);
      final HistoricalTimeSeriesAdjustment htsa = HistoricalTimeSeriesAdjustment.parse(adjusterString);
      value = htsa.adjust(latestDataPoint.getSecond());
    }
    return Collections.singleton(new ComputedValue(new ValueSpecification(desiredValue.getValueName(), target.toSpecification(), desiredValue.getConstraints()), value));
  }

  // TODO: reverse logic here to be checkAvailable()
View Full Code Here

Examples of com.ximpleware.extended.xpath.Predicate.adjust()

  }
 
  public void adjust(int n){
    Predicate temp = p;
    while(temp!=null){
      temp.adjust(n);
      temp = temp.nextP;
    }
  }
  public NodeTest getNodeTest(){
    return this.nt;
View Full Code Here

Examples of net.sourceforge.processdash.util.RangeDateAdjuster.adjust()

        // we are returning a DateAdjuster that alters timestamps for various
        // calendar periods.  But the special date "NEVER" should not be
        // altered, so we add a specific statement not to alter that timestamp.
        result.add(EVSchedule.NEVER, 0);

        effectiveDate = result.adjust(effectiveDate);
        metrics.adjustDates(result);
        adjustPeriodNoteTimestamps(result);

        return result;
    }
View Full Code Here

Examples of nu.validator.htmlparser.impl.UTF16Buffer.adjust()

                    pop();
                    continue;
                }
            }
            // now we have a non-empty buffer
            buffer.adjust(lastWasCR);
            lastWasCR = false;
            if (buffer.hasMore()) {
                lastWasCR = tokenizer.tokenizeBuffer(buffer);
                domTreeBuilder.maybeRunScript();
                break;
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.LimitAdjuster.adjust()

      PhysicalPlan pp = Util.buildPp(pigServerMR, query);
      MROperPlan mrPlan = Util.buildMRPlan(pp, pc);

      LimitAdjuster la = new LimitAdjuster(mrPlan, pc);
        la.visit();
        la.adjust();

      MapReduceOper mrOper = mrPlan.getRoots().get(0);
      int count = 1;

      while(mrPlan.getSuccessors(mrOper) != null) {
View Full Code Here

Examples of org.jquantlib.time.Calendar.adjust()

  //FIXME: http://bugs.jquantlib.org/view.php?id=472
  public void testYield() {
    QL.info("Testing consistency of bond price/yield calculation....");

        final Calendar calendar = new org.jquantlib.time.calendars.Target();
        final Date today = calendar.adjust(Date.todaysDate());
        final double faceAmount = 1000000.0;

    final double tolerance = 1.0e-7;
    final int maxEvaluations = 100;
View Full Code Here

Examples of org.jquantlib.time.Calendar.adjust()

  @Test
  public void testTheoretical() {
    QL.info("Testing theoretical bond price/yield calculation...");

        final Calendar calendar = new org.jquantlib.time.calendars.Target();
        final Date today = calendar.adjust(Date.todaysDate());
        final double faceAmount = 1000000.0;

    final double tolerance = 1.0e-7;
    final int maxEvaluations = 100;
View Full Code Here

Examples of org.jquantlib.time.Calendar.adjust()

  public void testCachedZero() {

      QL.info("Testing zero-coupon bond prices against cached values...");

        final Calendar calendar = new Target();
        final Date today = calendar.adjust(Date.todaysDate());
        // final Date today = calendar.adjust(new Date(6,Month.June,2007));
      // final Date today = new Date(22,Month.November,2004);
      final Settings settings = new Settings();
      settings.setEvaluationDate(today);
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.