Class

com.generativists.thirdway.core

Event

Related Doc: package core

Permalink

case class Event[Env](time: Double, group: Int, activity: Activity[Env]) extends Ordered[Event[Env]] with Serializable with Product

Defines an activity to run at a specific, scheduled time and group.

Linear Supertypes
Product, Equals, Serializable, Serializable, Ordered[Event[Env]], Comparable[Event[Env]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Event
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Event(time: Double, group: Int, activity: Activity[Env])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(that: Event[Env]): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: Event[Env]): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: Event[Env]): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: Event[Env]): Boolean

    Permalink
    Definition Classes
    Ordered
  8. val activity: Activity[Env]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compare(that: Event[Env]): Int

    Permalink

    Defines the order over (time, group).

    Defines the order over (time, group).

    Definition Classes
    Event → Ordered
    Note

    In this method, a time of 5 is less than a time of 10, which is unsurprising. However, this class exists for use in a priority queue. In the priority queue, a time of 5 should have a higher priority than a time of 10. When instantiating the queue, reverse the order.

  12. def compareTo(that: Event[Env]): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. val group: Int

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. val time: Double

    Permalink
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[Event[Env]]

Inherited from Comparable[Event[Env]]

Inherited from AnyRef

Inherited from Any

Ungrouped