EndOfWindowCriterion

public class EndOfWindowCriterion implements Criterion

Criterion used to filter enrollments by the window end date from the the current milestone.

Constructors

EndOfWindowCriterion

public EndOfWindowCriterion(WindowName windowName, DateTime start, DateTime end)

Creates a EndOfWindowCriterion with the windowName attribute set to windowName, the start attribute set to start, the end attribute to end.

Parameters:
  • windowName – the name of the milestone window
  • start – the begin of the time range
  • end – the end of the time range

Methods

fetch

public List<Enrollment> fetch(AllEnrollments allEnrollments)

filter

public List<Enrollment> filter(List<Enrollment> enrollments)