Class AllocationDistribution

  • All Implemented Interfaces:
    Allocation

    public class AllocationDistribution
    extends AbstractAllocation
    A distribution of possible allocation options for some activity/task in a process. Locations could be allocated to an activity (usually we want the allocation sets to be singletons in this case) Or resource sets, e.g., {nurseA, doctorB}, or only {doctorB} can be allocated to an activity.
    Author:
    Andreas Rogge-Solti
    • Method Detail

      • addAllocationOption

        public void addAllocationOption​(java.util.Set<Allocatable> allocation,
                                        double weight)
      • getAllocation

        public java.util.Set<Allocatable> getAllocation()
        randomly draws an allocation from the distribution
      • 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)