RandomElement

abstract class RandomElement @JvmOverloads constructor(parent: ModelElement, rSource: RandomIfc, name: String? = null) : ModelElement, RandomElementIfc, RandomSourceCIfc, StreamNumberIfc(source)

Constructors

Link copied to clipboard
constructor(parent: ModelElement, rSource: RandomIfc, name: String? = null)

Properties

Link copied to clipboard

If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers

Link copied to clipboard
open override var antithetic: Boolean

Tells the stream to start producing antithetic variates

Link copied to clipboard
open override var initialRandomSource: RandomIfc

Provides a reference to the underlying source of randomness to initialize each replication. Controls the underlying RandomIfc source for the element. This is the source to which each replication will be initialized. This is only used when the replication is initialized.

Link copied to clipboard

Provides a reference to the underlying source of randomness during the replication. Controls the underlying RandomIfc source. This changes the source for the current replication only. The random variable will start to use this source immediately; however if a replication is started after this method is called, the random source will be reassigned to the initial random source before the next replication is executed. To change the random source for the entire experiment (all replications) use the initialRandomSource property

Link copied to clipboard
open override var resetStartStreamOption: Boolean

If true, the stream will automatically participate in having its stream reset to its start stream via stream managers

Link copied to clipboard
open override val streamNumber: Int

Functions

Link copied to clipboard
open override fun advanceToNextSubStream()

Positions the RNG at the beginning of its next substream

Link copied to clipboard
open override fun asString(): String
Link copied to clipboard
open override fun resetStartStream()

The resetStartStream method will position the RNG at the beginning of its stream. This is the same location in the stream as assigned when the RNG was created and initialized.

Link copied to clipboard
open override fun resetStartSubStream()

Resets the position of the RNG at the start of the current substream