Class AllocationDistribution
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.external.AbstractAllocation
-
- org.processmining.plugins.stochasticpetrinet.external.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.processmining.plugins.stochasticpetrinet.external.Allocation
Allocation.AllocType
-
-
Constructor Summary
Constructors Constructor Description AllocationDistribution(Allocation.AllocType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllocationOption(java.util.Set<Allocatable> allocation, double weight)java.util.Set<Allocatable>getAllAllocatables()java.util.Set<Allocatable>getAllocation()randomly draws an allocation from the distributionjava.util.Set<Allocatable>getAllocation(java.lang.String allocString)java.util.Map<java.lang.String,java.lang.Double>getProbabilitiesOfAllocations()-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.external.AbstractAllocation
getEntropy, getString, getType
-
-
-
-
Constructor Detail
-
AllocationDistribution
public AllocationDistribution(Allocation.AllocType type)
-
-
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)
-
-