StartOfWindowCriterion

public class StartOfWindowCriterion implements Criterion

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

Constructors

StartOfWindowCriterion

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

Creates a StartOfWindowCriterion 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)