Source

scalation.simulation.process.Source
See theSource companion class
object Source

The Source companion object provides a builder method for sources.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Source.type

Members list

Value members

Concrete methods

def apply(name: String, director: Model, makeEntity: () => SimActor, esubtype: Int, units: Int, iArrivalTime: Variate, xy: (Int, Int)): Source

Create a source using defaults for width 'w' and height 'h'.

Create a source using defaults for width 'w' and height 'h'.

Value parameters

director

the director controlling the model

esubtype

indicator of the subtype of the entities to me made

iArrivalTime

the inter-arrival time distribution

makeEntity

the function to make entities of a specified type

name

the name of the source

units

the number of entities to make

xy

the (x, y) coordinates for the top-left corner of the source.

Attributes

def group(director: Model, makeEntity: () => SimActor, units: Int, xy: (Int, Int), src: (String, Int, Variate, (Int, Int))*): List[Source]

Create a group of related sources using defaults for width 'w' and height 'h'.

Create a group of related sources using defaults for width 'w' and height 'h'.

Value parameters

director

the director controlling the model

makeEntity

the function to make entities of a specified type

src

repeated source specific info: name, subtype, distribution, offset

units

the number of entities to make

xy

the (x, y) coordinates for the top-left corner of the reference source.

Attributes