Class Filters

java.lang.Object
simpaths.data.filters.Filters

public class Filters extends Object
Collection of Person filters.
  • Method Details

    • gender

      public static Predicate<Person> gender(Gender gender)
      Filter the requested gender.
    • male

      public static Predicate<Person> male()
      Filter male persons.
    • female

      public static Predicate<Person> female()
      Filter female persons.
    • youngerStrict

      public static Predicate<Person> youngerStrict(int age)
      Filter persons strictly younger than given age.
    • youngerOr

      public static Predicate<Person> youngerOr(int age)
      Filter persons younger than given age, that age included.
    • olderOr

      public static Predicate<Person> olderOr(int age)
      Filter persons older than given age, that age included.
    • ageRange

      public static Predicate<Person> ageRange(int from, int to)
      Filter given age range (both ends are included).
    • hasChildInAgeRange

      public static Predicate<Person> hasChildInAgeRange(int from, int to)
      Filter persons with at least one child in the given age range (both ends included).
    • child

      public static Predicate<Person> child()
      Filter children (i.e. strictly younger than Parameters.AGE_TO_BECOME_RESPONSIBLE).
    • region

      public static Predicate<Person> region(Region region)
      Filter by region.
    • education

      public static Predicate<Person> education(Education education)
      Filter by education.
    • employment

      public static Predicate<Person> employment(Les_c4 status)
      Filter by employment status.
    • employmentHistory

      public static Predicate<Person> employmentHistory(Les_c4 employmentLag1)
      Filter by employment history.
    • single

      public static Predicate<Person> single()
      Filter persons without a partner.
    • fertile

      public static Predicate<Person> fertile()
      Filter women susceptible to becoming pregnant.
    • validIncome

      public static Predicate<Person> validIncome()
      Filter persons with a non-negative disposable income.
    • grossEarningsYearlyAtLeast

      public static Predicate<Person> grossEarningsYearlyAtLeast(double value)
      Filter persons by minimum yearly gross earnings (included).
    • hasLongTermDisability

      public static Predicate<Person> hasLongTermDisability()
      Filter persons with long term disability.
    • flexibleLabourSupply

      public static Predicate<Person> flexibleLabourSupply()

      Filter persons who are "flexible in labour supply".

      The conditions are the following:

      • of working age
      • not a student nor retired
      • not disabled