Constant

case
class Constant(value: Double) extends Distribution

A constant value generator.

Always generates the same value.

Value Params
value

The value to generate.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def estimate: Double

Provides an estimate of the constant value, i.e. the value itself.

Provides an estimate of the constant value, i.e. the value itself.

Returns

The constant value as an estimate of itself.

Definition Classes
override
def get: Double

Provides the constant value.

Provides the constant value.

Returns

The constant value.

Definition Classes

Inherited methods

override
def getLong: Long

Provides a sample Long value.

Provides a sample Long value.

Simply rounds a Double sample.

Returns

A sample Long value.

Definition Classes
Inherited from
Distribution
override
def longEstimate: Long

Provides an estimate of the Long values that can be generated.

Provides an estimate of the Long values that can be generated.

This could be the mean of the distribution for instance. It can help create an environment of imperfect knowledge. For example, the Scheduler does not know the actual durations of tasks, which can vary from the expected estimate for various reasons.

Returns

An estimate of the values that can be generated.

Definition Classes
Inherited from
Distribution
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product