object Source
The Source
companion object provides a builder method for sources.
- Alphabetic
- By Inheritance
- Source
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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'.
- name
the name of the source
- director
the director controlling the model
- makeEntity
the function to make entities of a specified type
- esubtype
indicator of the subtype of the entities to me made
- units
the number of entities to make
- iArrivalTime
the inter-arrival time distribution
- xy
the (x, y) coordinates for the top-left corner of the source.
-
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'.
- director
the director controlling the model
- makeEntity
the function to make entities of a specified type
- units
the number of entities to make
- xy
the (x, y) coordinates for the top-left corner of the reference source.
- src
repeated source specific info: name, subtype, distribution, offset