org.jgap.eval
Class PopulationHistoryIndexed
- java.lang.Object
-
- org.jgap.eval.PopulationHistoryIndexed
-
- All Implemented Interfaces:
- java.io.Serializable
public class PopulationHistoryIndexed extends java.lang.Object implements java.io.SerializableManages populations. See class EvolutionMonitor for a description of events and how populations are tracked.- Since:
- 3.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PopulationHistoryIndexed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPopulation(int a_index, int a_event, PopulationContext a_pop)PopulationContextgetPopulation(int a_index, int a_event)java.util.Map<java.lang.Integer,PopulationContext>getPopulations(int a_index)java.util.Map<java.lang.Integer,java.util.Map>getPopulationsHistory()
-
-
-
Method Detail
-
addPopulation
public void addPopulation(int a_index, int a_event, PopulationContext a_pop)- Parameters:
a_index- evolution number or any other appropriate indexa_event- unique identifier of an event (if needed). See class EvolutionMonitor for event constantsa_pop- the population to add- Since:
- 3.5
-
getPopulations
public java.util.Map<java.lang.Integer,PopulationContext> getPopulations(int a_index)
- Parameters:
a_index- evolution number or any other appropriate index- Returns:
- Map with tuples
- Since:
- 3.5
-
getPopulationsHistory
public java.util.Map<java.lang.Integer,java.util.Map> getPopulationsHistory()
- Returns:
- complete population history
- Since:
- 3.5
-
getPopulation
public PopulationContext getPopulation(int a_index, int a_event)
- Parameters:
a_index- evolution number or any other appropriate indexa_event- unique identifier of an event (if needed). See class EvolutionMonitor for event constants- Returns:
- the population together with its context
- Since:
- 3.5
-
-
DMelt 3.0 © DataMelt by jWork.ORG