Examples of Duration


Examples of org.olat.ims.qti.editor.beecom.objects.Duration

      item.setIdent(item.getIdent().replaceFirst("FIB", "ESSAY"));
    }

   
    // DURATION
    Duration duration =
      (Duration) parserManager.parse(element.element("duration"));
    item.setDuration(duration);

    // CONTROLS
    List itemcontrolsXML = element.elements("itemcontrol");
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Duration

            } catch (NumberFormatException nfe) {
              durationMin = "0";
              durationSec = "0";             
              this.showWarning("error.duration");
            }
            Duration d = new Duration(durationMin, durationSec);
            section.setDuration(d);
            main.contextPut("duration", d);
          } else {
            section.setDuration(null);
            main.contextRemove("duration");
View Full Code Here

Examples of org.olat.ims.qti.editor.beecom.objects.Duration

            } catch (NumberFormatException nfe) {
              durationMin = "0";
              durationSec = "0";             
              this.showWarning("error.duration");
            }
            Duration d = new Duration(durationMin, durationSec);
            assessment.setDuration(d);
            main.contextPut("duration", assessment.getDuration());
          } else {
            assessment.setDuration(null);
            main.contextRemove("duration");
View Full Code Here

Examples of org.opengis.temporal.Duration

     * i.e. the absolute value of the difference between their temporal positions.
     * @param other
     * @return
     */
    public Duration distance(TemporalGeometricPrimitive other) {
        Duration response = null;
        long diff = 0L;

        if (this instanceof Instant && other instanceof Instant) {
            if (((Instant) this).getPosition().anyOther() != null && ((Instant) other).getPosition().anyOther() != null) {
                if (!((DefaultTemporalPosition) ((Instant) this).getPosition().anyOther()).getFrame().equals(((DefaultTemporalPosition) ((Instant) other).getPosition().anyOther()).getFrame())) {
View Full Code Here

Examples of org.openqa.selenium.support.ui.Duration

  public DesiredCapabilities capabilities = DesiredCapabilities.opera();
  public File profileDirectory;

  @Before
  public void setup() throws IOException {
    OperaIntervals.HANDSHAKE_TIMEOUT.setValue(new Duration(2, TimeUnit.SECONDS));
    profileDirectory = new TemporaryFolder().newFolder();
    capabilities.setCapability(PROFILE.getCapability(), profileDirectory.getPath());
  }
View Full Code Here

Examples of org.rometools.feed.module.itunes.types.Duration

            //Now I am going to get the item specific tags
           
            Element duration = element.getChild("duration", ns);
           
            if (duration != null  && duration.getValue() != null ) {
                Duration dur = new Duration(duration.getValue().trim());
                entryInfo.setDuration(dur);
            }
        }
        if (module != null) {
            //All these are common to both Channel and Item
View Full Code Here

Examples of org.sonar.api.utils.Duration

      }
      updater.setPastLine(issue, ref.getLine());
      updater.setPastMessage(issue, ref.getMessage(), changeContext);
      updater.setPastEffortToFix(issue, ref.getEffortToFix(), changeContext);
      Long debtInMinutes = ref.getDebt();
      Duration previousTechnicalDebt = debtInMinutes != null ? Duration.create(debtInMinutes) : null;
      updater.setPastTechnicalDebt(issue, previousTechnicalDebt, changeContext);
      updater.setPastProject(issue, ref.getProjectKey(), changeContext);
    }
  }
View Full Code Here

Examples of org.threeten.bp.Duration

    final int factorType = arg0.getFactorType().getFactorType().compareTo(arg1.getFactorType().getFactorType());
    if (factorType != 0) {
      return factorType;
    }
    if (arg0.getNode() != null && arg0.getNode().length() > 0) {
      Duration p0 = Duration.parse("P" + arg0.getNode());
      if (arg1.getNode() != null && arg1.getNode().length() > 0) {
        Duration p1 = Duration.parse("P" + arg1.getNode());
        final long node = p0.toNanos() - p1.toNanos();
        if (node != 0) {
          return (int) node;
        }
      } else {
        return 1;
View Full Code Here

Examples of org.xtext.mongobeans.examples.Duration

 
  public Duration getDuration() {
    List<Track> _tracks = this.getTracks();
    final Function1<Track,Duration> _function = new Function1<Track,Duration>() {
      public Duration apply(final Track it) {
        Duration _duration = it.getDuration();
        return _duration;
      }
    };
    List<Duration> _map = ListExtensions.<Track, Duration>map(_tracks, _function);
    final Function2<Duration,Duration,Duration> _function_1 = new Function2<Duration,Duration,Duration>() {
      public Duration apply(final Duration a, final Duration b) {
        Duration _plus = a.operator_plus(b);
        return _plus;
      }
    };
    Duration _reduce = IterableExtensions.<Duration>reduce(_map, _function_1);
    return _reduce;
  }
View Full Code Here

Examples of scala.concurrent.duration.Duration

    for (TimeUnit t : TimeUnit.values()) {
      for (Double n: makeNumbers()) {
        String s = "" + n + " " + t.toString().toLowerCase();
        String result;
        try {
          Duration d = Duration.create(n, t);
          result = d.toString();
        } catch(Exception e) {
          result = e.getClass().toString();
        }
        p(String.format("%25s  =>  %s", s, result));
      }
    }
    for (String s: new String[] {"10000000000000001 nanoseconds", "10000000000000002 nanoseconds"})
      p(String.format("%25s  =>  %s", s, Duration.create(s)));
    for (String s: Arrays.asList("Inf", "-Inf", "+Inf", "PlusInf", "MinusInf")) {
      Duration d = Duration.create(s);
      p(String.format("%25s  =>  %s", s, d));
    }
  }
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.