public class PopulationServiceImpl extends AbstractPopulationService
Constructor and Description |
---|
PopulationServiceImpl(InstanceService instanceService)
Create a population service instance.
|
Modifier and Type | Method and Description |
---|---|
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 |
resetPopulation(DataSet dataSet)
Reset the population of the given data set
|
addListener, firePopulationChanged, removeListener
public PopulationServiceImpl(InstanceService instanceService)
instanceService
- the instance servicepublic Population getPopulation(EntityDefinition entity)
PopulationService
entity
- the entityPopulationService.getPopulation(EntityDefinition)
public boolean hasPopulation(SchemaSpaceID schemaSpace)
PopulationService
schemaSpace
- the schema spacePopulationService.hasPopulation(SchemaSpaceID)
public void addToPopulation(Instance instance)
PopulationService
instance
- the instance, it has to have a valid associated data setPopulationService.addToPopulation(Instance)
public void addToPopulation(Instance instance, DataSet dataSet)
PopulationService
instance
- the instancedataSet
- the data set the instance belongs toPopulationService.addToPopulation(Instance, DataSet)
public void resetPopulation(DataSet dataSet)
PopulationService
dataSet
- the data setPopulationService.resetPopulation(DataSet)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a