Examples of Period


Examples of org.optaplanner.examples.examination.domain.Period

    public void afterEntityRemoved(ScoreDirector scoreDirector, LeadingExam leadingExam) {
        // Do nothing
    }

    protected void updatePeriod(ScoreDirector scoreDirector, LeadingExam leadingExam) {
        Period period = leadingExam.getPeriod();
        for (FollowingExam followingExam : leadingExam.getFollowingExamList()) {
            scoreDirector.beforeVariableChanged(followingExam, "period");
            followingExam.setPeriod(period);
            scoreDirector.afterVariableChanged(followingExam, "period");
        }
View Full Code Here

Examples of org.seleniumhq.selenium.fluent.Period

public class PeriodTest {

    @Test
    public void testMillis() {
        Period period = Period.millis(123);
        assertThat(period.timeUnit(), equalTo(TimeUnit.MILLISECONDS));
        assertThat(period.howLong(), equalTo(123));
        assertThat(period.toString(), equalTo("millis(123)"));
    }
View Full Code Here

Examples of org.sonar.batch.components.Period

    fiveDaysAgo = DateUtils.addDays(rightNow, -5);
    afterFiveDaysAgo = DateUtils.addDays(fiveDaysAgo, 1);
    sameSecond = DateUtils.truncate(rightNow, Calendar.SECOND);

    timeMachineConfiguration = mock(TimeMachineConfiguration.class);
    when(timeMachineConfiguration.periods()).thenReturn(newArrayList(new Period(1, afterFiveDaysAgo), new Period(2, afterTenDaysAgo)));

    project = mock(Project.class);
    resource = mock(Resource.class);
    context = mock(DecoratorContext.class);
    when(context.getResource()).thenReturn(resource);
View Full Code Here

Examples of org.threeten.bp.Period

        return (ChronoLocalDateTime<JapaneseDate>)super.atTime(localTime);
    }

    @Override
    public ChronoPeriod until(ChronoLocalDate endDate) {
        Period period = isoDate.until(endDate);
        return getChronology().period(period.getYears(), period.getMonths(), period.getDays());
    }
View Full Code Here

Examples of pspdash.EVSchedule.Period

    protected synchronized void preparePeriods(List histPeriods) {
        cleanUp();

        Date effDate = getEffectiveDate();
        Period p;

        // grow the schedule until the final schedule period falls
        // after the effective date.
        if (defaultPlanDirectTime != 0)
            while (true) {
                p = get(periods.size()-1);
                if (p.getBeginDate().compareTo(effDate) >= 0)
                    break;

                double newCumTime =
                    p.cumPlanDirectTime + defaultPlanDirectTime;
                super.getPlannedCompletionDate(newCumTime, newCumTime);
            }

        p = getLast();
        lastPeriodEnd = p.endDate.getTime();
        long lastPeriodStart = p.getBeginDate().getTime();
        defaultPeriodLen = lastPeriodEnd - lastPeriodStart;

        splitAt(effDate);
        rewriteHistory(effDate, histPeriods);
        recalcCumPlanTimes();
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.