Model

scalation.simulation.tableau.Model
See theModel companion object
class Model(name: String, m: Int, rv: Array[Variate], label_: Array[String]) extends Modelable

The Model class support tableau oriented simulation models in which each simulation entity's events are recorded in tabular form (in a matrix). This is analogous to Spreadsheet simulation.

Value parameters

label_

the column labels for the matrix

m

the number entities to process before stopping

name

the name of simulation model

rv

the random variate generators to use

Attributes

See also
Companion
object
Graph
Supertypes
trait Modelable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def report(): Unit

Report the simulation results as a entity time trace followed by column sums and averages.

Report the simulation results as a entity time trace followed by column sums and averages.

Attributes

def save(): Unit

Save the table/matrix in a Comma Separated Value (.csv) file suitable for opening in a spreadsheet. Note, the file 'data/tableau.csv' is overwritten.

Save the table/matrix in a Comma Separated Value (.csv) file suitable for opening in a spreadsheet. Note, the file 'data/tableau.csv' is overwritten.

Attributes

def simulate(startTime: Double): Unit

Perform tableau-based simulation by recording timing information about the i-th entity in the i-th row of the matrix. This method may need to be overridden for other models: Copy this code and modify the equations as needed.

Perform tableau-based simulation by recording timing information about the i-th entity in the i-th row of the matrix. This method may need to be overridden for other models: Copy this code and modify the equations as needed.

Value parameters

startTime

may be used to initilize a start time other than zero

Attributes

def summary(): Unit

Summarize the number and time in the queue (q), service (s) and system (y). Must call report before summary. Override as needed.

Summarize the number and time in the queue (q), service (s) and system (y). Must call report before summary. Override as needed.

Attributes

Produce a time-line of the simualtion giving all the event times in order and occupancy of (number in) the system L_y(t) at these event times.

Produce a time-line of the simualtion giving all the event times in order and occupancy of (number in) the system L_y(t) at these event times.

Attributes

Inherited methods

def clock: Double

Return the current value of the director's clock.

Return the current value of the director's clock.

Attributes

Inherited from:
Modelable

Concrete fields

val e_a: Int
val e_d: Int

Inherited fields

protected var _clock: Double

The clock that keep track of the current simulation time

The clock that keep track of the current simulation time

Attributes

Inherited from:
Modelable
protected var simulating: Boolean

Simulation execution/termination flag

Simulation execution/termination flag

Attributes

Inherited from:
Modelable