class IntersectionModel extends Model
The IntersectionModel
class simulates an intersection with four traffic lights
(Gates
) and four roads. Each road consists of two routes with one in each
direction. Each Route
has two lanes (Transport
s).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- IntersectionModel
- Model
- Component
- Locatable
- Identifiable
- Modelable
- Coroutine
- Error
- Runnable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new IntersectionModel(name: String, nArrivals: Int, iArrivalRV: Variate, onTimeRV: Variate, offTimeRV: Variate, moveRV: Variate)
- name
the name of the bank model
- nArrivals
the number of arrivals to generate (stopping condition)
- iArrivalRV
the inter-arrival time distribution
- onTimeRV
the on (green-light) time distribution for North-South traffic
- offTimeRV
the off (red-light) time distribution for North-South traffic
- moveRV
the time distribution for motion along transports
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 light: List[Gate]
- 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 queue: List[WaitQueue]
- 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 road: ListBuffer[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 sink: List[Sink]
- val source: List[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