Class

com.generativists.thirdway.core

LocallyParallelActivity

Related Doc: package core

Permalink

case class LocallyParallelActivity[Env](activities: Seq[Activity[Env]]) extends Activity[Env] with Product with Serializable

Runs a set of activities in parallel using Scala's parallel collections.

Note

Building simulations with truly-concurrent agents is *really* hard. As a design assumption, ThirdWay considers thread-based, parallel simulations to be a bad idea. However, there are situations that demand true concurrency. For example, the cognitive component of thick agents may be embarrassingly parallel. Rather than using synchronized-based locking, schedule the heavy operation separately. For example, create an activity that calls some agent's think() method. This method should do no environmental or schedule mutation. Then, schedule it repeatedly, with an ordering that comes after mutating and interacting activities.

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

Instance Constructors

  1. new LocallyParallelActivity(activities: Seq[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. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val activities: Seq[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
    LocallyParallelActivityActivity
  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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Activity[Env]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped