apps.event

CallCenterModel2

class CallCenterModel2 extends Model

The CallCenterModel2 class defines a simple Event Graph model of a Call Center where service is provided by one tele-service representative and models an M/M/1/1 queue.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CallCenterModel2
  2. Model
  3. Identifiable
  4. Error
  5. Modelable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CallCenterModel2(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

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

    Arrival is a subclass of EventNode for handling arrival events (MakeCall).

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

    Departure is a subclass of EventNode for handling departure events (HangUp).

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val HOUR: Double

    The number of seconds in one hour

    The number of seconds in one hour

    Attributes
    protected
    Definition Classes
    Modelable
  7. val MINUTE: Double

    The number of seconds in one minute

    The number of seconds in one minute

    Attributes
    protected
    Definition Classes
    Modelable
  8. var _clock: Double

    The clock that keep track of the current simulation time

    The clock that keep track of the current simulation time

    Attributes
    protected
    Definition Classes
    Modelable
  9. val aLink: Array[CausalLink]

  10. val aLoc: Array[Double]

  11. val aProto: EventNode

  12. def addStats(stat: Statistic*): Unit

    Add statistical collector to the model.

    Add statistical collector to the model.

    stat

    one or more statistical collectors

    Definition Classes
    Model
  13. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Event, to: Event, at: Array[Double] = Array ()): Unit

    Put a edge command on the animation queue.

    Put a edge command on the animation queue.

    who

    who is being animated

    what

    what animation command

    color

    the color the edge

    shape

    the shape of the edge

    from

    the location of the origination node

    to

    the location of the destination node

    at

    the location of the edge (empty array => implicitly determined)

    Definition Classes
    Model
  14. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, at: Array[Double]): Unit

    Put a node/token command on the animation queue.

    Put a node/token command on the animation queue.

    who

    who is being animated

    what

    what animation command

    color

    the color the node/token

    shape

    the shape of the node/token

    at

    the location of the node/token

    Definition Classes
    Model
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def cancel(event: Event): Unit

    Cancel the specified 'event' so it will not occur.

    Cancel the specified 'event' so it will not occur.

    event

    the event to cancel

    Definition Classes
    Model
  17. def clock: Double

    Return the current value of the director's clock.

    Return the current value of the director's clock.

    Definition Classes
    Modelable
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. val dLoc: Array[Double]

  20. val dProto: EventNode

  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. val firstArrival: Entity

  25. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def getStatistics: ListBuffer[Statistic]

    Return the statistical results of the simulation (statistics for each part).

    Return the statistical results of the simulation (statistics for each part).

    Definition Classes
    Model
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def id: Int

    Get the id (unique identifier).

    Get the id (unique identifier).

    Definition Classes
    Identifiable
  30. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  31. def leave(entity: Entity): Unit

    Leave the model recording the entity's time in the sYstem.

    Leave the model recording the entity's time in the sYstem.

    entity

    the entity leaving the model

    Definition Classes
    Model
  32. def me: String

    Return the full identity.

    Return the full identity.

    Definition Classes
    Identifiable
  33. var nArr: Double

  34. var nIn: Double

  35. var nLost: Double

  36. var nOut: Double

  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def report(vars: (String, Double)*): Unit

    Report values of the specified model result/output variables.

    Report values of the specified model result/output variables.

    vars

    the result/output variables for the simulation

    Definition Classes
    Model
  41. def reportStats: Unit

    Report statistical results of the simulation for all the collectors.

    Report statistical results of the simulation for all the collectors.

    Definition Classes
    Model
  42. def schedule(event: Event): Unit

    Place an event on the Future Event List (FEL) for later execution, thus scheduling the event to occur sometime in the future.

    Place an event on the Future Event List (FEL) for later execution, thus scheduling the event to occur sometime in the future. Events are ordered by their event/act time.

    event

    the event to schedule

    Definition Classes
    Model
  43. def setName(label: String): Unit

    Set the name.

    Set the name.

    label

    the name to assign

    Definition Classes
    Identifiable
  44. def simType: String

    Get the type of the simulation object.

    Get the type of the simulation object.

    Definition Classes
    Identifiable
  45. def simulate(startTime: Double = 0.0): Unit

    Run the simulation by iteratively processing events in time order.

    Run the simulation by iteratively processing events in time order. Requires at least one to already be scheduled (see next method).

    startTime

    the time at which the simulation is to begin

    Definition Classes
    ModelModelable
  46. var simulating: Boolean

    Simulation execution/termination flag

    Simulation execution/termination flag

    Attributes
    protected
    Definition Classes
    Modelable
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. val t_a_stat: Statistic

  49. val t_s_stat: Statistic

  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Model

Inherited from Identifiable

Inherited from Error

Inherited from Modelable

Inherited from AnyRef

Inherited from Any

Ungrouped