Packages

  • package root
    Definition Classes
    root
  • package scalation
    Definition Classes
    root
  • package event

    The event package contains classes, traits and objects for event oriented simulation models (for example, event scheduling or event graphs).

    The event package contains classes, traits and objects for event oriented simulation models (for example, event scheduling or event graphs).

    Definition Classes
    scalation
  • object ModelTest extends App

    The ModelTest object is used to test the Model class.

    The ModelTest object is used to test the Model class. > runMain scalation.event.ModelTest

    Definition Classes
    event
  • PoissonModel

class PoissonModel extends Model

The PoissonModel models the detection of particles (e.g., gamma rays) from the decay of radioactive atoms as a Poisson Process.

See also

http://stuff.mit.edu/afs/sipb/user/biyeun/Public/8.13/poisson/poisson_statistics_biyeun.pdf

Linear Supertypes
Model, Identifiable, Error, Modelable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PoissonModel
  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 PoissonModel(name: String, nArrivals: Int, iArrivalRV: 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)

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.

    Arrival is a subclass of EventNode for handling arrival events.

    call

    the entity that arrives, in this case a phone call

    delay

    the time delay for this event's occurrence

Value Members

  1. val aLink: Array[CausalLink]
  2. val aLoc: Array[Double]
  3. val aProto: EventNode
  4. 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
  5. def animate(who: Identifiable, what: 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
  6. def animate(who: Identifiable, what: 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
  7. 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
  8. def clock: Double

    Return the current value of the director's clock.

    Return the current value of the director's clock.

    Definition Classes
    Modelable
  9. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  10. val firstArrival: Entity
  11. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  12. 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
  13. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  14. val id: Int
    Definition Classes
    Identifiable
  15. 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
  16. def me: String
    Definition Classes
    Identifiable
  17. var nArr: Double
  18. def name: String
    Definition Classes
    Identifiable
  19. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  20. 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
  21. 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
  22. 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
  23. def simType: String
    Definition Classes
    Identifiable
  24. 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
  25. val t_a_stat: Statistic