Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.common.service.population
Interface PopulationService

All Known Implementing Classes:
AbstractPopulationService, PopulationServiceImpl

public interface PopulationService

Service for tracking instance population.

Author:
Simon Templer

Method Summary
 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
 

Method Detail

getPopulation

Population getPopulation(EntityDefinition entity)
Get the population count for the given entity.

Parameters:
entity - the entity
Returns:
the population

addToPopulation

void addToPopulation(Instance instance)
Add an instance to the population.

Parameters:
instance - the instance, it has to have a valid associated data set

addToPopulation

void addToPopulation(Instance instance,
                     DataSet dataSet)
Add an instance to the population, explicitly specifying the associated data set.

Parameters:
instance - the instance
dataSet - the data set the instance belongs to

resetPopulation

void resetPopulation(DataSet dataSet)
Reset the population of the given data set

Parameters:
dataSet - the data set

addListener

void addListener(PopulationListener listener)
Adds a listener for population events.

Parameters:
listener - the listener

removeListener

void removeListener(PopulationListener listener)
Removes a listener for population events.

Parameters:
listener - the listener

hasPopulation

boolean hasPopulation(SchemaSpaceID schemaSpace)
Determines if there is any population for the given schema space.

Parameters:
schemaSpace - the schema space
Returns:
if there is any population for the schema space

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d