Examples of time()


Examples of org.dbwiki.data.time.Version.time()

        if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordAfter)) {
          matches = version.time() > startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBefore)) {
          matches = version.time() < endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
          matches = version.time() <= endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBetween)) {
          matches = ((version.time() >= startDate.getTime()) && (version.time() <= endDate.getTime()));
        }
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBefore)) {
          matches = version.time() < endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
          matches = version.time() <= endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBetween)) {
          matches = ((version.time() >= startDate.getTime()) && (version.time() <= endDate.getTime()));
        }
      }
      if ((matches) && (username != null) ) {
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
          matches = version.time() <= endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBetween)) {
          matches = ((version.time() >= startDate.getTime()) && (version.time() <= endDate.getTime()));
        }
      }
      if ((matches) && (username != null) ) {
        if (version.provenance().user() != null) {
          matches = version.provenance().user().login().equals(username);
View Full Code Here

Examples of org.dbwiki.data.time.Version.time()

        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordSince)) {
          matches = version.time() >= startDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordUntil)) {
          matches = version.time() <= endDate.getTime();
        } else if (dateOp.equalsIgnoreCase(XAQLSyntaxParser.KeywordBetween)) {
          matches = ((version.time() >= startDate.getTime()) && (version.time() <= endDate.getTime()));
        }
      }
      if ((matches) && (username != null) ) {
        if (version.provenance().user() != null) {
          matches = version.provenance().user().login().equals(username);
View Full Code Here

Examples of org.eclipse.imp.pdb.facts.IValueFactory.time()

        }
        throw new UnsupportedOperation("Can not retrieve the date component of a time value",ctx.getCurrentAST());
      } else if (name.equals("justTime")) {
        if (!dt.isDate()) {
          return makeResult(getTypeFactory().dateTimeType(),
              vf.time(dt.getHourOfDay(), dt.getMinuteOfHour(), dt.getSecondOfMinute(),
                  dt.getMillisecondsOfSecond(), dt.getTimezoneOffsetHours(),
                  dt.getTimezoneOffsetMinutes()), ctx);
        }
        throw new UnsupportedOperation("Can not retrieve the time component of a date value",ctx.getCurrentAST());
      }
View Full Code Here

Examples of org.elasticsearch.index.gateway.SnapshotStatus.time()

        SnapshotStatus snapshotStatus = this.currentSnapshotStatus;
        if (snapshotStatus == null) {
            return snapshotStatus;
        }
        if (snapshotStatus.stage() != SnapshotStatus.Stage.DONE || snapshotStatus.stage() != SnapshotStatus.Stage.FAILURE) {
            snapshotStatus.time(System.currentTimeMillis() - snapshotStatus.startTime());
        }
        return snapshotStatus;
    }

    @Override public SnapshotStatus snapshot(final Snapshot snapshot) throws IndexShardGatewaySnapshotFailedException {
View Full Code Here

Examples of org.elasticsearch.index.gateway.SnapshotStatus.time()

                        break;
                    default:
                        stage = GatewaySnapshotStatus.Stage.NONE;
                        break;
                }
                shardStatus.gatewaySnapshotStatus = new GatewaySnapshotStatus(stage, snapshotStatus.startTime(), snapshotStatus.time(),
                        snapshotStatus.index().totalSize(), snapshotStatus.translog().expectedNumberOfOperations());
            }
        }

        return shardStatus;
View Full Code Here

Examples of org.elasticsearch.index.shard.recovery.RecoveryStatus.time()

                        stage = PeerRecoveryStatus.Stage.DONE;
                        break;
                    default:
                        stage = PeerRecoveryStatus.Stage.INIT;
                }
                shardStatus.peerRecoveryStatus = new PeerRecoveryStatus(stage, peerRecoveryStatus.startTime(), peerRecoveryStatus.time(),
                        peerRecoveryStatus.phase1TotalSize(), peerRecoveryStatus.phase1ExistingTotalSize(),
                        peerRecoveryStatus.currentFilesSize(), peerRecoveryStatus.currentTranslogOperations());
            }

            IndexShardGatewayService gatewayService = indexService.shardInjector(request.shardId()).getInstance(IndexShardGatewayService.class);
View Full Code Here

Examples of org.jboss.arquillian.performance.annotation.Performance.time()

                    performance = (Performance) a;

            if(performance != null)
            {
                //System.out.println("For test: "+event.toString()+", it took: "+(result.getEnd()-result.getStart()));
                if(performance.time() > 0 &&
                        performance.time() < (result.getEnd()-result.getStart()))
                {
                    result.setStatus(TestResult.Status.FAILED);
                    result.setThrowable(
                            new PerformanceException("The test didnt finish within the specified time: "
View Full Code Here

Examples of org.jquantlib.processes.GeneralizedBlackScholesProcess.time()

        //Creating the process
        final StochasticProcess1D process = new GeneralizedBlackScholesProcess(handleToStockQuote,new RelinkableHandle<YieldTermStructure>(dividendTermStructure),new RelinkableHandle<YieldTermStructure>(riskFreeTermStructure),new RelinkableHandle<BlackVolTermStructure>(varianceCurve),new EulerDiscretization());

        //Calculating the drift of the stochastic process after time = 18th day from today with value of the stock as specified from the quote
        //The drift = (riskFreeForwardRate - dividendForwardRate) - (Variance/2)
        System.out.println("The drift of the process after time = 18th day from today with value of the stock as specified from the quote = "+process.drift(process.time(date18.clone()), handleToStockQuote.currentLink().value()));

        //Calculating the diffusion of the process after time = 18th day from today with value of the stock as specified from the quote
        //The diffusion = volatiltiy of the stochastic process
        System.out.println("The diffusion of the process after time = 18th day from today with value of the stock as specified from the quote = "+process.diffusion(process.time(date18.clone()), handleToStockQuote.currentLink().value()));
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.