class CallCenterModel extends Model
The CallCenterModel
class defines a simple Event-Scheduling model of a
Call Center where service is provided by one tele-service representative and
models an M/M/1/1 queue.
- Alphabetic
- By Inheritance
- CallCenterModel
- Model
- Identifiable
- Error
- Modelable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CallCenterModel(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 (Random Variate)
- serviceRV
the service time distribution (Random Variate)
Type Members
-
case class
Arrival(call: Entity, delay: Double) extends Event with Product with Serializable
Arrival
is a subclass ofEvent
for handling arrival events 'MakeCall'.Arrival
is a subclass ofEvent
for handling arrival events 'MakeCall'.- call
the entity that arrives, in this case a call
- delay
the time delay for this event's occurrence
-
case class
Departure(call: Entity, delay: Double) extends Event with Product with Serializable
Departure
is a subclass ofEvent
for handling departure events 'HangUp'.Departure
is a subclass ofEvent
for handling departure events 'HangUp'.- call
the entity that departs, in this case a call
- 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
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Identifiable → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val firstArrival: Entity
-
final
def
flaw(method: String, message: String): Unit
- Definition Classes
- Error
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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 nLost: 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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )