class MachineModel extends Model
The MachineModel
class defines an Event-Scheduling model of a two-stage
manufacturing process, which consists of two machines in series M1 and M2.
- Alphabetic
- By Inheritance
- MachineModel
- Model
- Identifiable
- Error
- Modelable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MachineModel(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
- serviceRV
the service time distribution
Type Members
-
case class
Arrival
(part: Entity, delay: Double) extends Event with Product with Serializable
Arrival
is a subclass ofEvent
for handling arrival events.Arrival
is a subclass ofEvent
for handling arrival events. The 'occur' method triggers future events and updates the current state.- part
the entity that arrives, in this case a part
- delay
the time delay for this event's occurrence
-
case class
Departure_M1
(part: Entity, delay: Double) extends Event with Product with Serializable
Departure_M1
is a subclass ofEvent
for handling departure events from machine M1.Departure_M1
is a subclass ofEvent
for handling departure events from machine M1. The 'occur' method triggers future events and updates the current state.- part
the entity that departs, in this case a part
- delay
the time delay for this event's occurrence
-
case class
Departure_M2
(part: Entity, delay: Double) extends Event with Product with Serializable
Departure_M2
is a subclass ofEvent
for handling departure events.Departure_M2
is a subclass ofEvent
for handling departure events. from machine M2. The 'occur' method triggers future events and updates the current state.- part
the entity that departs, in this case a part
- 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
- Attributes
- protected
- Definition Classes
- Modelable
-
val
MINUTE: Double
- Attributes
- protected
- Definition Classes
- Modelable
-
val
_clock: Double
- Attributes
- protected
- Definition Classes
- Modelable
-
def
addStats(stat: Statistic*): Unit
- Definition Classes
- Model
-
def
animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Event, to: Event, 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
cancel(event: Event): Unit
- Definition Classes
- Model
-
def
clock: Double
- 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
- 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
- Definition Classes
- Error
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getStatistics: ListBuffer[Statistic]
- Definition Classes
- Model
-
def
hashCode(): Int
- Definition Classes
- Identifiable → AnyRef → Any
-
val
id: Int
- Definition Classes
- Identifiable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
leave(entity: Entity): Unit
- Definition Classes
- Model
-
def
me: String
- Definition Classes
- Identifiable
- var nArr: Int
- var nIn: Int
- var nM1: Int
- var nM2: Int
- var nOut: Int
- val nScrap: Int
-
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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
report(vars: (String, Double)*): Unit
- Definition Classes
- Model
-
def
reportStats(): Unit
- Definition Classes
- Model
-
def
schedule(event: Event): Unit
- Definition Classes
- Model
-
def
simType: String
- Definition Classes
- Identifiable
-
def
simulate(startTime: Double): Unit
- Definition Classes
- Model → Modelable
-
val
simulating: Boolean
- Attributes
- protected
- Definition Classes
- Modelable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val t_a_stat: Statistic
- val t_s1_stat: Statistic
- val t_s2_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( ... )
- val waitQueue_M1: WaitQueue
- val waitQueue_M2: WaitQueue