PopulationThreshold

public enum PopulationThreshold

An enum for specifying limits on the population of Replicators in Ecosystems

  • allow as many as possible

    Declaration

    Swift

    case unlimited
  • one

    allow at most one

    Declaration

    Swift

    case one
  • allow a fixed number of individuals

    Declaration

    Swift

    case fixedPool(ofSize: Int, withPicker: (Int) -> Int)
  • Returns true if the population threshold value on the first argument is less than the second

    Declaration

    Swift

    public static func < (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool
  • Returns true if the population threshold values match

    Declaration

    Swift

    public static func == (lhs: PopulationThreshold, rhs: PopulationThreshold) -> Bool