Packages

c

apps.event

MachineModel

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.

Linear Supertypes
Model, Identifiable, Error, Modelable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MachineModel
  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 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

  1. case class Arrival(part: Entity, delay: Double) extends Event with Product with Serializable

    Arrival is a subclass of Event for handling arrival events.

    Arrival is a subclass of Event 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

  2. case class Departure_M1(part: Entity, delay: Double) extends Event with Product with Serializable

    Departure_M1 is a subclass of Event for handling departure events from machine M1.

    Departure_M1 is a subclass of Event 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

  3. case class Departure_M2(part: Entity, delay: Double) extends Event with Product with Serializable

    Departure_M2 is a subclass of Event for handling departure events.

    Departure_M2 is a subclass of Event 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val HOUR: Double
    Attributes
    protected
    Definition Classes
    Modelable
  5. val MINUTE: Double
    Attributes
    protected
    Definition Classes
    Modelable
  6. val _clock: Double
    Attributes
    protected
    Definition Classes
    Modelable
  7. def addStats(stat: Statistic*): Unit
    Definition Classes
    Model
  8. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, from: Event, to: Event, at: Array[Double]): Unit
    Definition Classes
    Model
  9. def animate(who: Identifiable, what: scalation.animation.CommandType.Value, color: Color, shape: Shape, at: Array[Double]): Unit
    Definition Classes
    Model
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def cancel(event: Event): Unit
    Definition Classes
    Model
  12. def clock: Double
    Definition Classes
    Modelable
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(that: Any): Boolean
    Definition Classes
    Identifiable → AnyRef → Any
  16. val firstArrival: Entity
  17. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def getStatistics: ListBuffer[Statistic]
    Definition Classes
    Model
  20. def hashCode(): Int
    Definition Classes
    Identifiable → AnyRef → Any
  21. val id: Int
    Definition Classes
    Identifiable
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def leave(entity: Entity): Unit
    Definition Classes
    Model
  24. def me: String
    Definition Classes
    Identifiable
  25. var nArr: Int
  26. var nIn: Int
  27. var nM1: Int
  28. var nM2: Int
  29. var nOut: Int
  30. val nScrap: Int
  31. def name: String
    Definition Classes
    Identifiable
  32. def name_=(name: String): Unit
    Definition Classes
    Identifiable
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def report(vars: (String, Double)*): Unit
    Definition Classes
    Model
  37. def reportStats(): Unit
    Definition Classes
    Model
  38. def schedule(event: Event): Unit
    Definition Classes
    Model
  39. def simType: String
    Definition Classes
    Identifiable
  40. def simulate(startTime: Double): Unit
    Definition Classes
    Model → Modelable
  41. val simulating: Boolean
    Attributes
    protected
    Definition Classes
    Modelable
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. val t_a_stat: Statistic
  44. val t_s1_stat: Statistic
  45. val t_s2_stat: Statistic
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. val waitQueue_M1: WaitQueue
  51. val waitQueue_M2: WaitQueue

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Model

Inherited from Identifiable

Inherited from Error

Inherited from Modelable

Inherited from AnyRef

Inherited from Any

Ungrouped