public interface PopulationService
Modifier and Type | Method and Description |
---|---|
void |
addListener(PopulationListener listener)
Adds a listener for population events.
|
void |
addToPopulation(Instance instance)
Add an instance to the population.
|
void |
addToPopulation(Instance instance,
DataSet dataSet)
Add an instance to the population, explicitly specifying the associated
data set.
|
Population |
getPopulation(EntityDefinition entity)
Get the population count for the given entity.
|
boolean |
hasPopulation(SchemaSpaceID schemaSpace)
Determines if there is any population for the given schema space.
|
void |
removeListener(PopulationListener listener)
Removes a listener for population events.
|
void |
resetPopulation(DataSet dataSet)
Reset the population of the given data set
|
Population getPopulation(EntityDefinition entity)
entity
- the entityvoid addToPopulation(Instance instance)
instance
- the instance, it has to have a valid associated data setvoid addToPopulation(Instance instance, DataSet dataSet)
instance
- the instancedataSet
- the data set the instance belongs tovoid resetPopulation(DataSet dataSet)
dataSet
- the data setvoid addListener(PopulationListener listener)
listener
- the listenervoid removeListener(PopulationListener listener)
listener
- the listenerboolean hasPopulation(SchemaSpaceID schemaSpace)
schemaSpace
- the schema spaceBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a