class LoopModel extends Model
The LoopModel
class simulates a two-lane road in two directions, i.e., it
has 2 West-bound lanes and 2 East-bound lanes. It used a composite class called
Route
, which will have a Transport
for each lane.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LoopModel
- Model
- Component
- Locatable
- Identifiable
- Modelable
- Coroutine
- Error
- Runnable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new LoopModel(name: String, nArrivals: Int, iArrivalRV: Variate, moveRV: Variate)
- name
the name of the loop model
- nArrivals
the number of arrivals to generate (stopping condition)
- iArrivalRV
the inter-arrival time distribution
- moveRV
the time distribution for motion along transports
Type Members
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 DIAM: Double
- Definition Classes
- Component
- val HOUR: Double
- Attributes
- protected
- Definition Classes
- Modelable
- val MINUTE: Double
- Attributes
- protected
- Definition Classes
- Modelable
- val RAD: Double
- Definition Classes
- Component
- val _clock: Double
- Attributes
- protected
- Definition Classes
- Modelable
- def accum(value: Double): Unit
- Definition Classes
- Component
- def act(): Unit
- Definition Classes
- Model → Coroutine
- def addComponent(_parts: Component*): Unit
- Definition Classes
- Model
- def addComponents(_parts: List[Component]*): Unit
- Definition Classes
- Model
- def aggregate(): Unit
- Definition Classes
- Component
- def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Component, to: Component, 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 at: Array[Double]
- Definition Classes
- Locatable
- def at_=(at: Array[Double]): Unit
- Definition Classes
- Locatable
- def cleanup(): 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()
- def complete(): Unit
- Definition Classes
- Model
- def composite: Boolean
- Definition Classes
- Component
- def counts: (Int, Int, Int)
- Definition Classes
- Coroutine
- def director: Model
- Definition Classes
- Component
- def director_=(director: Model): Unit
- Definition Classes
- Component
- def display(): Unit
- Definition Classes
- Model → Component
- def durationStat: Statistic
- Definition Classes
- Component
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Identifiable → AnyRef → Any
- final def flaw(method: String, message: String): Unit
- Definition Classes
- Error
- val full: Boolean
- Definition Classes
- Model
- 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
- def initComponent(label: String, loc: Array[Double]): Unit
- Definition Classes
- Component
- def initStats(label: String): Unit
- Definition Classes
- Component
- def interrupt(): Unit
- Definition Classes
- Coroutine
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jun1: Junction
- val jun2: Junction
- def me: String
- Definition Classes
- Identifiable
- 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 persistentStat: TimeStatistic
- Definition Classes
- Component
- val reps: Int
- Definition Classes
- Model
- def reschedule(actor: SimActor): Unit
- Definition Classes
- Model
- def reset(): Unit
- Definition Classes
- Model
- def resetStats(rep: Int): Unit
- Definition Classes
- Model
- val rng: Bernoulli
- val road1a: Route
- val road1b: Route
- val road2a: Route
- val road2b: Route
- def run(): Unit
- Definition Classes
- Coroutine → Runnable
- def simType: String
- Definition Classes
- Identifiable
- def simulate(_startTime: Double): Unit
- Definition Classes
- Model → Modelable
- val simulating: Boolean
- Attributes
- protected
- Definition Classes
- Modelable
- val snk1: Sink
- val snk2: Sink
- val src1: Source
- val src2: Source
- def start(): Future[_]
- Definition Classes
- Coroutine
- val statV: HashMap[String, VectorD]
- Definition Classes
- Model
- var stopTime: Double
- Definition Classes
- Model
- def stopped: Boolean
- Definition Classes
- Model
- val subpart: ListBuffer[Component]
- Definition Classes
- Component
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tally(duration: Double): Unit
- Definition Classes
- Component
- def theActor: SimActor
- Definition Classes
- Model
- 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])
- def yyield(that: Coroutine, quit: Boolean): Unit
- Definition Classes
- Coroutine
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated