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
- Alphabetic
- By Inheritance
- PoissonModel
- Model
- Identifiable
- Error
- Modelable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
-
case class
Arrival
(call: Entity, delay: Double) extends Event with Product with Serializable
Arrival
is a subclass ofEventNode
for handling arrival events.Arrival
is a subclass ofEventNode
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
-
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
The number of seconds in one hour
The number of seconds in one hour
- Attributes
- protected
- Definition Classes
- Modelable
-
val
MINUTE: Double
The number of seconds in one minute
The number of seconds in one minute
- Attributes
- protected
- Definition Classes
- Modelable
-
val
_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
- val aLink: Array[CausalLink]
- val aLoc: Array[Double]
- val aProto: EventNode
-
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
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cancel(event: Event): Unit
Cancel the specified 'event' so it will not occur.
-
def
clock: Double
Return the current value of the director's clock.
Return the current value of the director's clock.
- Definition Classes
- Modelable
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
Determine whether Identifiable object 'this' equals Identifiable object 'that'.
Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.
- 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
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
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
-
def
hashCode(): Int
Return the hashCode as the unique id.
Return the hashCode as the unique id.
- Definition Classes
- Identifiable → AnyRef → Any
-
val
id: Int
The globally unique integer identifier
The globally unique integer identifier
- Definition Classes
- Identifiable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
def
me: String
Return the full identity.
Return the full identity.
- Definition Classes
- Identifiable
- var nArr: Double
-
def
name: String
Get the name.
Get the name.
- Definition Classes
- Identifiable
-
def
name_=(name: String): Unit
Set the name.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
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
-
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
-
def
simType: String
Get the type of the simulation object.
Get the type of the simulation object.
- Definition Classes
- Identifiable
-
def
simulate(startTime: Double = 0.0): Unit
Run the simulation by iteratively processing events in time order.
-
val
simulating: Boolean
Simulation execution/termination flag
Simulation execution/termination flag
- Attributes
- protected
- Definition Classes
- Modelable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val t_a_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
- @throws( ... )