object Gate
The Gate
companion object provides a builder method for gates.
- Alphabetic
- By Inheritance
- Gate
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(name: String, director: Model, line: WaitQueue, units: Int, onTime: Variate, offTime: Variate, xy: (Int, Int), shut0: Boolean = false, cap: Int = 10): Gate
Create a gate using defaults for width 'w' and height 'h'.
Create a gate using defaults for width 'w' and height 'h'.
- name
the name of the gate
- director
the model/container for this gate
- line
the queue holding entities waiting for this gate to open
- units
number of units/phases of operation
- onTime
distribution of time that gate will be open
- offTime
distribution of time that gate will be closed
- xy
the (x, y) coordinates for the top-left corner of the sink.
- shut0
Boolean
indicating if the gate is initially opened or closed- cap
the maximum number of entities that will be released when the gate is opened
-
def
group(director: Model, units: Int, onTime: Variate, offTime: Variate, xy: (Int, Int), gte: (String, WaitQueue, (Int, Int))*): List[Gate]
Create a group of related gates using defaults for width 'w' and height 'h'.
Create a group of related gates using defaults for width 'w' and height 'h'.
- director
the director controlling the model
- units
number of units/phases of operation
- onTime
distribution of time that gate will be open
- offTime
distribution of time that gate will be closed
- xy
the (x, y) coordinates for the top-left corner of the reference gate.
- gte
repeated gate specific info: name, line, offset