Examples of FixedPoint


Examples of org.apache.sqoop.schema.type.FixedPoint

      .addColumn(new Bit("c"))
      .addColumn(new Date("d"))
      .addColumn(new DateTime("e"))
      .addColumn(new Decimal("f"))
      .addColumn(new Enum("g", new Text()))
      .addColumn(new FixedPoint("h"))
      .addColumn(new FloatingPoint("i"))
      .addColumn(new Map("j", new Text(), new Text()))
      .addColumn(new Set("k", new Text()))
      .addColumn(new Text("l"))
      .addColumn(new Time("m"))
View Full Code Here

Examples of org.libreplan.business.calendars.entities.AvailabilityTimeLine.FixedPoint

        AvailabilityTimeLine timeLine = AvailabilityTimeLine.allValid();
        timeLine.invalidFrom(contemporaryExample);
        List<Interval> validPeriods = timeLine.getValidPeriods();

        assertThat(validPeriods, definedBy(StartOfTime.create(),
                new FixedPoint(contemporaryExample)));
    }
View Full Code Here

Examples of org.libreplan.business.calendars.entities.AvailabilityTimeLine.FixedPoint

                point(contemporaryExample), point(contemporaryExample
                        .plusDays(1)), EndOfTime.create()));
    }

    private static FixedPoint point(LocalDate param) {
        return new FixedPoint(param);
    }
View Full Code Here

Examples of org.libreplan.business.calendars.entities.AvailabilityTimeLine.FixedPoint

    private static CapacityResult thereIsCapacityOn(ICalendar calendar,
            EffortDuration effortToAllocate,
            ResourcesPerDay resourcesPerDay, List<Interval> validPeriods) {
        EffortDuration sum = zero();
        for (Interval each : validPeriods) {
            FixedPoint start = (FixedPoint) each.getStart();
            FixedPoint end = (FixedPoint) each.getEnd();
            EffortDuration pending = effortToAllocate.minus(sum);
            sum = sum.plus(sumDurationUntil(calendar, pending,
                    resourcesPerDay, start.getDate(), end.getDate()));
            if (sum.compareTo(effortToAllocate) >= 0) {
                return new CapacityAvailable();
            }
        }
        return new ValidPeriodsDontHaveCapacity(validPeriods, sum,
View Full Code Here

Examples of org.libreplan.business.calendars.entities.AvailabilityTimeLine.FixedPoint

                        endExclusive.asExclusiveEnd()),
                new IEffortFrom<Interval>() {

                    @Override
                    public EffortDuration from(Interval each) {
                        FixedPoint intervalStart = (FixedPoint) each.getStart();
                        FixedPoint intervalEnd = (FixedPoint) each.getEnd();
                        return getAssignedDuration(
                                IntraDayDate.convert(intervalStart.getDate(), startInclusive),
                                IntraDayDate.convert(intervalEnd.getDate(), endExclusive));
                    }
                });
    }
View Full Code Here

Examples of org.libreplan.business.calendars.entities.AvailabilityTimeLine.FixedPoint

    private static DateAndHour convert(DateAndHour possibleMatch,
            DatePoint datePoint) {
        if (datePoint instanceof StartOfTime || datePoint instanceof EndOfTime) {
            return null;
        }
        FixedPoint p = (FixedPoint) datePoint;
        if (possibleMatch != null
                && possibleMatch.getDate().equals(p.getDate())) {
            return possibleMatch;
        }
        return DateAndHour.from(p.getDate());
    }
View Full Code Here

Examples of org.rascalmpl.interpreter.TraversalEvaluator.FIXEDPOINT

      Strategy s = this.getStrategy();

      DIRECTION direction = DIRECTION.BottomUp;
      PROGRESS progress = PROGRESS.Continuing;
      FIXEDPOINT fixedpoint = FIXEDPOINT.No;

      if (s.isBottomUp()) {
        direction = DIRECTION.BottomUp;
      } else if (s.isBottomUpBreak()) {
        direction = DIRECTION.BottomUp;
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.