Packages

c

apps.event

BankModel

class BankModel extends Model

The BankModel class defines a simple Event-Scheduling model of a Bank where service is provided by one teller and models an M/M/1 queue.

Linear Supertypes
Model, Identifiable, Error, Modelable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BankModel
  2. Model
  3. Identifiable
  4. Error
  5. Modelable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BankModel(name: String, nArrivals: Int, iArrivalRV: Variate, serviceRV: Variate)

    name

    the name of the simulation model

    nArrivals

    the number of arrivals to generate (stopping condition)

    iArrivalRV

    the inter-arrival time distribution

    serviceRV

    the service time distribution

Type Members

  1. case class Arrival(customer: Entity, delay: Double) extends Event with Product with Serializable

    Arrival is a subclass of Event for handling arrival events.

    Arrival is a subclass of Event for handling arrival events. The 'occur' method triggers future events and updates the current state.

    customer

    the entity that arrives, in this case a bank customer

    delay

    the time delay for this event's occurrence

  2. case class Departure(customer: Entity, delay: Double) extends Event with Product with Serializable

    Departure is a subclass of Event for handling departure events.

    Departure is a subclass of Event for handling departure events. The 'occur' method triggers future events and updates the current state.

    customer

    the entity that departs, in this case a bank customer

    delay

    the time delay for this event's occurrence

Value Members

  1. def addStats(stat: Statistic*): Unit
    Definition Classes
    Model
  2. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Event, to: Event, at: Array[Double]): Unit
    Definition Classes
    Model
  3. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, at: Array[Double]): Unit
    Definition Classes
    Model
  4. def cancel(event: Event): Unit
    Definition Classes
    Model
  5. def clock: Double
    Definition Classes
    Modelable
  6. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  7. val firstArrival: Entity
  8. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  9. def getStatistics: ListBuffer[Statistic]
    Definition Classes
    Model
  10. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  11. val id: Int
    Definition Classes
    Identifiable
  12. def leave(entity: Entity): Unit
    Definition Classes
    Model
  13. def me: String
    Definition Classes
    Identifiable
  14. var nArr: Double
  15. var nIn: Double
  16. var nOut: Double
  17. def name: String
    Definition Classes
    Identifiable
  18. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  19. def report(vars: (String, Double)*): Unit
    Definition Classes
    Model
  20. def reportStats(): Unit
    Definition Classes
    Model
  21. def schedule(event: Event): Unit
    Definition Classes
    Model
  22. def simType: String
    Definition Classes
    Identifiable
  23. def simulate(startTime: Double): Unit
    Definition Classes
    Model → Modelable
  24. val t_a_stat: Statistic
  25. val t_s_stat: Statistic
  26. val waitQueue: WaitQueue