Packages

object Gate

The Gate companion object provides a builder method for gates.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Gate
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

  2. 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