Interface HasS3

All Known Implementing Classes:
ATBT, CDL, CDLP, CDLPQ, Centipede, EcoPGG, RSP, simCDL, simCDLP, simCDLPQ

public interface HasS3
Modules that implement the HasS3 interface request a graphical view to visualize the mean state of the population in the simplex \(S_3\) as a function of time in their GUI: S3 for GWT and MVDS3 for JRE.

Important: Implementations have to be agnostic of the runtime environment (JRE vs GWT).

Author:
Christoph Hauert
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The index of the bottom left corner.
    static final int
    The index of the bottom right corner.
    static final int
    The index of the top corner.
    static final int
    The index of the bottom edge.
    static final int
    The index of the left edge.
    static final int
    The index of the right edge.
  • Method Summary

    Modifier and Type
    Method
    Description
    default S3Map
    getS3Map(int role)
    Get the map that transforms the data of the model to a 2D phase plane (projection).
    default void
    Set the map that transforms the data of the model to a 2D phase plane (projection) to map.
  • Field Details

    • CORNER_LEFT

      static final int CORNER_LEFT
      The index of the bottom left corner.
      See Also:
    • CORNER_RIGHT

      static final int CORNER_RIGHT
      The index of the bottom right corner.
      See Also:
    • CORNER_TOP

      static final int CORNER_TOP
      The index of the top corner.
      See Also:
    • EDGE_LEFT

      static final int EDGE_LEFT
      The index of the left edge.
      See Also:
    • EDGE_RIGHT

      static final int EDGE_RIGHT
      The index of the right edge.
      See Also:
    • EDGE_BOTTOM

      static final int EDGE_BOTTOM
      The index of the bottom edge.
      See Also:
  • Method Details

    • getS3Map

      default S3Map getS3Map(int role)
      Get the map that transforms the data of the model to a 2D phase plane (projection).
      Parameters:
      role - the role of the players
      Returns:
      the map
    • setS3Map

      default void setS3Map(S3Map map)
      Set the map that transforms the data of the model to a 2D phase plane (projection) to map. This provides an opportunity for implementing classes to change settings of the map.
      Parameters:
      map - the map