Packages

  • package root

    For detailed documentation on using the framework please see the README.md file at the Github repository at https://github.com/markblokpoel/lanag-core.

    Language Agents Simulation framework

    For detailed documentation on using the framework please see the README.md file at the Github repository at https://github.com/markblokpoel/lanag-core.

    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package markblokpoel
    Definition Classes
    com
  • package lanag
    Definition Classes
    markblokpoel
  • package core

    Provides classes, objects and traits that specify the com.markblokpoel.lanag.core architecture of the simulation framework.

    Provides classes, objects and traits that specify the com.markblokpoel.lanag.core architecture of the simulation framework.

    Overview

    Most of the classes, objects and traits in this packages cannot be used on their own. Instead, they specify what minimally should be implemented in any Lanag agent-based simulation.

    See also

    For an example implementation, see the source code of project ambiguity helps.

  • package jupyterdisplayers

    This package contains a collection of Displayer classes for nice html formatted output in Jupyter notebooks.

  • package math

    A collection of com.markblokpoel.lanag.math utility functions, grouped by topic.

  • package rsa

    This package contains the implementation for the mathematical foundations of Rational Speech Act theory (Frank & Goodman, 2012).

  • package util

    Provides classes and objects for dealing with the simulation infrastructure.

    Provides classes and objects for dealing with the simulation infrastructure.

    Overview

    Spark simulations

    Use com.markblokpoel.lanag.util.SparkSimulation to create an instance of Spark running locally on your machine:

    import com.markblokpoel.lanag.com.markblokpoel.lanag.coreg.util.LocalSparkSimulation
    import LocalSparkSimulation.spark.implicits._
    
    val sequenceToBeParallelized = Seq(...)
    val rdd = LocalSparkSimulation.parallelize(sequenceToBeParallelized)

    You can now RDD functions like org.apache.spark.rdd.RDD.flatMap() and org.apache.spark.rdd.RDD.map() to apply transformations to the sequence.

    rdd.map(a => a +1)

    These will be executed lazily and in parallel. Until you write the results to file, or otherwise collect them, nothing will be executed. For a tutorial on Spark see the Apache Spark website https://spark.apache.org/docs/latest/quick-start.html.

    Global number generators

    The object com.markblokpoel.lanag.util.InteractionIdentifier is used in com.markblokpoel.lanag.core.Interaction to identify pairs of agents.

    The object com.markblokpoel.lanag.util.RNG specifies a global random number generator. Implementations of com.markblokpoel.lanag.core.Interaction that use this object exclusive will be repeatable for specific RNG seeds.

package lanag

Ungrouped