Class PoissonAllocation

    • Constructor Detail

      • PoissonAllocation

        public PoissonAllocation​(java.util.Collection<Allocatable> allocatableChoices,
                                 double dropRate,
                                 Allocation.AllocType type)
        Creates an allocation between certain resources with a simple rule: the probability to pick the second one is dropRate times the probability of the first one, and so on.
        Parameters:
        allocatableChoices - choices to pick from.
        dropRate - a factor (between 0 and 1) that makes the next choice less likely than the previous in the list
        type -
    • Method Detail

      • getAllocation

        public java.util.Set<Allocatable> getAllocation()
      • getProbabilitiesOfAllocations

        public java.util.Map<java.lang.String,​java.lang.Double> getProbabilitiesOfAllocations()
      • getAllAllocatables

        public java.util.Set<Allocatable> getAllAllocatables()
      • getAllocation

        public java.util.Set<Allocatable> getAllocation​(java.lang.String allocString)