Class PoissonAllocation
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.external.AbstractAllocation
-
- org.processmining.plugins.stochasticpetrinet.external.PoissonAllocation
-
- All Implemented Interfaces:
Allocation
public class PoissonAllocation extends AbstractAllocation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.processmining.plugins.stochasticpetrinet.external.Allocation
Allocation.AllocType
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Allocatable>getAllAllocatables()java.util.Set<Allocatable>getAllocation()java.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
-
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 listtype-
-
-
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)
-
-