class BankModel2 extends Model
The BankModel2
class defines a simple Event Graph model of a Bank where
service is provided by one teller and models an M/M/1 queue.
- Alphabetic
- By Inheritance
- BankModel2
- Model
- Identifiable
- Error
- Modelable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BankModel2(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
- case class Arrival(customer: Entity, delay: Double) extends Event with Product with Serializable
Arrival
is a subclass ofEvent
for handling arrival events.Arrival
is a subclass ofEvent
for handling arrival events.- customer
the entity that arrives, in this case a bank customer
- delay
the time delay for this event's occurrence
- case class Departure(customer: Entity, delay: Double) extends Event with Product with Serializable
Departure
is a subclass ofEvent
for handling departure events.Departure
is a subclass ofEvent
for handling departure events.- customer
the entity that arrives, in this case a bank customer
- delay
the time delay for this event's occurrence
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val HOUR: Double
- Attributes
- protected
- Definition Classes
- Modelable
- val MINUTE: Double
- Attributes
- protected
- Definition Classes
- Modelable
- val _clock: Double
- Attributes
- protected
- Definition Classes
- Modelable
- val aLink: Array[CausalLink]
- val aLoc: Array[Double]
- val aProto: EventNode
- def addStats(stat: Statistic*): Unit
- Definition Classes
- Model
- def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Event, to: Event, at: Array[Double]): Unit
- Definition Classes
- Model
- def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, at: Array[Double]): Unit
- Definition Classes
- Model
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancel(event: Event): Unit
- Definition Classes
- Model
- def clock: Double
- Definition Classes
- Modelable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val dLink: Array[CausalLink]
- val dLoc: Array[Double]
- val dProto: EventNode
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Identifiable → AnyRef → Any
- val firstArrival: Entity
- final def flaw(method: String, message: String): Unit
- Definition Classes
- Error
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getStatistics: ListBuffer[Statistic]
- Definition Classes
- Model
- def hashCode(): Int
- Definition Classes
- Identifiable → AnyRef → Any
- val id: Int
- Definition Classes
- Identifiable
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leave(entity: Entity): Unit
- Definition Classes
- Model
- def me: String
- Definition Classes
- Identifiable
- var nArr: Double
- var nIn: Double
- var nOut: Double
- def name: String
- Definition Classes
- Identifiable
- def name_=(name: String): Unit
- Definition Classes
- Identifiable
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def report(vars: (String, Double)*): Unit
- Definition Classes
- Model
- def reportStats(): Unit
- Definition Classes
- Model
- def schedule(event: Event): Unit
- Definition Classes
- Model
- def simType: String
- Definition Classes
- Identifiable
- def simulate(startTime: Double): Unit
- Definition Classes
- Model → Modelable
- val simulating: Boolean
- Attributes
- protected
- Definition Classes
- Modelable
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val t_a_stat: Statistic
- val t_s_stat: Statistic
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val waitQueue: WaitQueue
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated