Package org.evoludo.simulator.modules
Interface Features.Groups
- All Superinterfaces:
Features,Features.Pairs
- All Known Subinterfaces:
IBS.HasIBS.CGroups,IBS.HasIBS.DGroups,IBS.HasIBS.MCGroups,Model.HasDE.DGroups
- Enclosing interface:
Features
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface Features
Features.Groups, Features.Multispecies, Features.Pairs, Features.Payoffs, Features.Static -
Method Summary
Modifier and TypeMethodDescriptionintGet the interaction group size.default booleanReturns whether interactions are restricted to pairs (falseby default).Methods inherited from interface Features
getTitle, isMultispecies, isStatic
-
Method Details
-
getNGroup
int getNGroup()Get the interaction group size.- Returns:
- the interaction group size
-
isPairwise
default boolean isPairwise()Description copied from interface:FeaturesReturns whether interactions are restricted to pairs (falseby default). For modules that allow interactions in larger groups this returnstrueonly if the group size parameter is set to2.- Specified by:
isPairwisein interfaceFeatures- Specified by:
isPairwisein interfaceFeatures.Pairs- Returns:
trueif pairwise interactions- See Also:
-