Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.service.population.internal
Class PopulationServiceImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.common.service.population.impl.AbstractPopulationService
      extended by eu.esdihumboldt.hale.ui.service.population.internal.PopulationServiceImpl
All Implemented Interfaces:
PopulationService

public class PopulationServiceImpl
extends AbstractPopulationService

Service that stores information about population count.

Author:
Simon Templer

Constructor Summary
PopulationServiceImpl(InstanceService instanceService)
          Create a population service instance.
 
Method Summary
 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
 
Methods inherited from class eu.esdihumboldt.hale.ui.common.service.population.impl.AbstractPopulationService
addListener, firePopulationChanged, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopulationServiceImpl

public PopulationServiceImpl(InstanceService instanceService)
Create a population service instance.

Parameters:
instanceService - the instance service
Method Detail

getPopulation

public Population getPopulation(EntityDefinition entity)
Description copied from interface: PopulationService
Get the population count for the given entity.

Parameters:
entity - the entity
Returns:
the population
See Also:
PopulationService.getPopulation(EntityDefinition)

hasPopulation

public boolean hasPopulation(SchemaSpaceID schemaSpace)
Description copied from interface: PopulationService
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
See Also:
PopulationService.hasPopulation(SchemaSpaceID)

addToPopulation

public void addToPopulation(Instance instance)
Description copied from interface: PopulationService
Add an instance to the population.

Parameters:
instance - the instance, it has to have a valid associated data set
See Also:
PopulationService.addToPopulation(Instance)

addToPopulation

public void addToPopulation(Instance instance,
                            DataSet dataSet)
Description copied from interface: PopulationService
Add an instance to the population, explicitly specifying the associated data set.

Parameters:
instance - the instance
dataSet - the data set the instance belongs to
See Also:
PopulationService.addToPopulation(Instance, DataSet)

resetPopulation

public void resetPopulation(DataSet dataSet)
Description copied from interface: PopulationService
Reset the population of the given data set

Parameters:
dataSet - the data set
See Also:
PopulationService.resetPopulation(DataSet)

Humboldt Alignment Editor 2.5.0

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