Interface Features.Groups

All Superinterfaces:
Features, Features.Pairs
All Known Subinterfaces:
IBS.HasIBS.CGroups, IBS.HasIBS.DGroups, IBS.HasIBS.MCGroups, Model.HasDE.DGroups
All Known Implementing Classes:
CDL, CDLP, CDLPQ, EcoPGG, simCDL, simCDLP, simCDLPQ
Enclosing interface:
Features

public static interface Features.Groups extends Features.Pairs
All modules that admit interactions in larger groups (as opposed to interactions in pairs) should implement this interface. The voluntary public goods game is an example, see CDL.
  • Method Details

    • getNGroup

      int getNGroup()
      Get the interaction group size.
      Returns:
      the interaction group size
    • isPairwise

      default boolean isPairwise()
      Description copied from interface: Features
      Returns whether interactions are restricted to pairs (false by default). For modules that allow interactions in larger groups this returns true only if the group size parameter is set to 2.
      Specified by:
      isPairwise in interface Features
      Specified by:
      isPairwise in interface Features.Pairs
      Returns:
      true if pairwise interactions
      See Also: