Package org.evoludo.simulator.modules
Interface Features
- All Known Subinterfaces:
Features.Groups,Features.Multispecies,Features.Pairs,Features.Payoffs,Features.Static,IBS.HasIBS.CGroups,IBS.HasIBS.CPairs,IBS.HasIBS.DGroups,IBS.HasIBS.DPairs,IBS.HasIBS.MCGroups,IBS.HasIBS.MCPairs,Model.HasDE.DGroups,Model.HasDE.DPairs
- All Known Implementing Classes:
ATBT,CDL,CDLP,CDLPQ,Centipede,CLabour,Continuous,CSD,DemesTBT,Discrete,EcoPGG,LV,Module,Moran,NetGames,Predator,RSP,scanCSD,simCDL,simCDLP,simCDLPQ,simMoran,simTBT,simTraits,SIR,TBT,Traits
public interface Features
Interface to query features of the Module.
- Author:
- Christoph Hauert
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAll modules that admit interactions in larger groups (as opposed to interactions in pairs) should implement this interface.static interfaceAll modules that admit multiple species should implement this interface.static interfaceAll modules that admit interactions in pairs (as opposed to larger groups) should implement this interface.static interfaceInterface that all modules with frequency dependent fitness/payoffs should implement.static interfaceInterface that all modules with static fitness/payoffs should implement. -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()Returns title of active module, e.g.default booleanReturns whether the module implements multiple species.default booleanReturns whether interactions are restricted to pairs (falseby default).default booleanisStatic()Modules that are based on static fitness should implement theFeatures.Staticinterface and thus returntrue.
-
Method Details
-
getTitle
String getTitle()Returns title of active module, e.g. 2x2 games inTBTreturns "2x2 Games".- Returns:
- the title of active module
-
isStatic
default boolean isStatic()Modules that are based on static fitness should implement theFeatures.Staticinterface and thus returntrue. TheMoranmodules is an example. All other modules must returnfalse.- Returns:
falseby default- See Also:
-
isPairwise
default boolean isPairwise()Returns 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.- Returns:
trueif pairwise interactions- See Also:
-
isMultispecies
default boolean isMultispecies()Returns whether the module implements multiple species.- Returns:
truefor multiple species
-