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
- 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.Pairs, Features.Static
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the interaction group size.default boolean
Returns whether interactions are restricted to pairs (false
by default).
-
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 returnstrue
only if the group size parameter is set to2
.- Specified by:
isPairwise
in interfaceFeatures
- Specified by:
isPairwise
in interfaceFeatures.Pairs
- Returns:
true
if pairwise interactions- See Also:
-