Class

com.generativists.thirdway.core

TentativeActivity

Related Doc: package core

Permalink

case class TentativeActivity[Env](activity: Activity[Env], stopped: Boolean = false) extends Stoppable[Env] with Product with Serializable

An Activity that will run once, but only if it has not been stop()ed.

Note

The initial implementation used had activity: Option[Activity]. Calling stop set this field to None. It felt like proper Scala. However, it also allows for substitution of an activity, which is wrong. An immutable activity is better.

,

Calling stop does not remove the TentativeActivity from the schedule. Instead, once dequeued, it simply fails to take any action on apply(env, schedule).

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

Instance Constructors

  1. new TentativeActivity(activity: Activity[Env], stopped: Boolean = false)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val activity: Activity[Env]

    Permalink
  5. def apply(env: Env, schedule: Schedule[Env]): Unit

    Permalink

    Run this activity over some environment and given a schedule.

    Run this activity over some environment and given a schedule.

    Definition Classes
    TentativeActivityActivity
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def stop(): Unit

    Permalink

    Prevent this activity from running once dequeued from the schedule

    Prevent this activity from running once dequeued from the schedule

    Definition Classes
    TentativeActivityStoppable
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Stoppable[Env]

Inherited from Activity[Env]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped