Examples of TimeInterval


Examples of com.barchart.feed.base.values.api.TimeInterval

   
    if(!(o instanceof TimeInterval)) {
      return false;
    }
   
    final TimeInterval tI = (TimeInterval)o;
   
    if(this.isNull()) {
      if(tI.isNull()) {
        return true;
      } else {
        return false;
      }
    }
   
    if(tI.isNull()) {
      return false;
    }
   
    return (start == tI.startAsMillis()) &&
        (stop == tI.stopAsMillis());
   
  }
View Full Code Here

Examples of com.barchart.util.value.api.TimeInterval

    if (!(o instanceof TimeInterval)) {
      return false;
    }

    final TimeInterval tI = (TimeInterval) o;
   
    if(tI.isNull() && !this.isNull()) {
      return false;
    } else if(this.isNull() && !tI.isNull()) {
      return false;
    } else if(this.isNull() && tI.isNull()) {
      return true;
    }

    return (start().equals(tI.start())) && (stop().equals(tI.stop()));

  }
View Full Code Here

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

   
    if(!(o instanceof TimeInterval)) {
      return false;
    }
   
    final TimeInterval tI = (TimeInterval)o;
   
    if(this.isNull()) {
      if(tI.isNull()) {
        return true;
      } else {
        return false;
      }
    }
   
    if(tI.isNull()) {
      return false;
    }
   
    return (start == tI.startAsMillis()) &&
        (stop == tI.stopAsMillis());
   
  }
View Full Code Here

Examples of com.codeforces.graygoose.misc.TimeInterval

    @Override
    public void action() {
        boolean withAlertsOnlyValue = getWithAlertsOnlyValue();
        RuleCheckEvent.Status statusValue = getStatusValue(withAlertsOnlyValue);
        TimeInterval currentTimeIntervalValue = getCurrentTimeIntervalValue();
        int limitValue = getLimitValue();
        Long siteIdValue = getSiteIdValue();

        long intervalEnd = System.currentTimeMillis();
        long intervalBegin = intervalEnd - currentTimeIntervalValue.getValueMillis();

        List<RuleCheckEvent> eventsForPeriod =
                getEventsForPeriod(siteIdValue, statusValue, intervalEnd, intervalBegin);

        List<EventDto> events = new ArrayList<>(limitValue);
View Full Code Here

Examples of com.projity.timescale.TimeInterval

   
    try {
      while(iterator.hasNext()) {
       
        // build field name from start & end
        TimeInterval interval = iterator.next();
        String fieldName = "TIME";
        fieldName += interval.getStart();
        fieldName += "_";
        fieldName += interval.getEnd();
        fieldName += "_" + baseFieldName;
        System.out.println("time based field is " + fieldName);
        // add fields
        JRDesignField field = new JRDesignField();
        field.setName(fieldName);
        field.setValueClass(fieldType);
        design.addField(field);
     
        System.out.println("column header is " + interval.getText2());
       
        // add columns
        JRDesignBand columnHeader = (JRDesignBand) design.getColumnHeader();
 
        JRDesignStaticText staticText = new JRDesignStaticText();
        staticText.setX(maxX);
        staticText.setY(0);
        staticText.setWidth(80);
        staticText.setHeight(15);
        staticText.setTextAlignment(JRTextElement.TEXT_ALIGN_RIGHT);
        staticText.setFont(normalFont);
        staticText.setText(interval.getText1());
        staticText.setPrintWhenDetailOverflows(true);
        columnHeader.addElement(staticText);

        // add textFields
        JRDesignBand detailBand = (JRDesignBand) design.getDetail();
View Full Code Here

Examples of hu.u_szeged.nbo.res_alloc.model.type.TimeInterval

        task.setPlace(model.getPlaceContainer().getPlaceById(place_id));
        int normtime = Integer.parseInt(tokenizer.nextToken());
        task.setNormTime(normtime);
        int tp1 = Integer.parseInt(tokenizer.nextToken());
        int tp2 = Integer.parseInt(tokenizer.nextToken());
        task.setPrefferedTimeInterval(new TimeInterval(tp1, tp2));
        int ck1 = Integer.parseInt(tokenizer.nextToken());
        task.setDCost1(ck1);
        int ck2 = Integer.parseInt(tokenizer.nextToken());
        task.setDCost2(ck2);
        int ck3 = Integer.parseInt(tokenizer.nextToken());
View Full Code Here

Examples of lupos.misc.TimeInterval

      final Date end = new Date();
      log.debug("_______________________________________________________________");
      log.info("Done, RDF3X index constructed!");
      log.debug("End time: {}", end);

      log.debug("Used time: {}", new TimeInterval(start, end));
      log.debug("Number of imported triples: {}", indices.getIndex(CollationOrder.SPO).size());
    } catch (final Exception e) {
      log.error(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.apache.tapestry.ioc.util.TimeInterval

                {new boolean[]{true, false}, List.class, Arrays.asList(true, false)},

                {"foo/bar/baz.txt", File.class, new File("foo/bar/baz.txt")},

                {new TimeInterval("2 h"), Long.class, 2 * 60 * 60 * 1000l},

                {"2 h", TimeInterval.class, new TimeInterval("120 m")},

                // null to arbitrary object is still null

                {null, XMLReader.class, null}};
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.TimeInterval

        add(configuration, String.class, TimeInterval.class, new Coercion<String, TimeInterval>()
        {
            public TimeInterval coerce(String input)
            {
                return new TimeInterval(input);
            }
        });

        add(configuration, TimeInterval.class, Long.class, new Coercion<TimeInterval, Long>()
        {
View Full Code Here

Examples of org.apache.tapestry5.ioc.util.TimeInterval

        add(configuration, String.class, TimeInterval.class, new Coercion<String, TimeInterval>()
        {
            public TimeInterval coerce(String input)
            {
                return new TimeInterval(input);
            }
        });

        add(configuration, TimeInterval.class, Long.class, new Coercion<TimeInterval, Long>()
        {
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.