RandomFlowFactory
case
class RandomFlowFactory(andProbability: Float, resources: Seq[TaskResource], numTasks: Distribution, durations: LongDistribution, numResources: Distribution, cost: Distribution, priority: Distribution)
Factory for making random flows given some parameters
- Value Params
- andProbability
Probability that a flow node is an And. Must be in range [0,1]. The inverse probability yeilds Then nodes.
- cost
Distribution determining cost of a task
- durations
Distribution determining task duration.
- numResources
Distribution determining number of resources required by each task. Distribution values must not exceed
Int.MaxValue
due to truncation during rounding from Long to Int- numTasks
Distribution determining the number of tasks in the flow. Distribution values must not exceed
Int.MaxValue
due to truncation during rounding from Long to Int- priority
Distribution determining priority of a task
- resources
The list of available resources
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any