Humboldt Alignment Editor 2.5.0

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

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.service.population.internal.PopulationImpl
All Implemented Interfaces:
Population

public class PopulationImpl
extends Object
implements Population

Default implementation instance/property Population

Author:
Simon Templer

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.common.service.population.Population
UNKNOWN
 
Constructor Summary
PopulationImpl(int parents, int overall)
          Create a population.
 
Method Summary
 int getOverallCount()
          Get the overall count of the instance or property values.
 int getParentsCount()
          Get how many of the parents of the property actually have at least one value for this property.
 void increaseOverall(int count)
          Increase the overall count.
 void increaseParents()
          Increase the parents count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopulationImpl

public PopulationImpl(int parents,
                      int overall)
Create a population.

Parameters:
parents - the initial parent count
overall - the initial overall count
Method Detail

getOverallCount

public int getOverallCount()
Description copied from interface: Population
Get the overall count of the instance or property values.

Specified by:
getOverallCount in interface Population
Returns:
the overall count
See Also:
Population.getOverallCount()

getParentsCount

public int getParentsCount()
Description copied from interface: Population
Get how many of the parents of the property actually have at least one value for this property. For instances the overall count is returned as they have no parents.

Specified by:
getParentsCount in interface Population
Returns:
the count of parents that have such a property value, or the overall count if the population is associated to an instance
See Also:
Population.getParentsCount()

increaseParents

public void increaseParents()
Increase the parents count.


increaseOverall

public void increaseOverall(int count)
Increase the overall count.

Parameters:
count - the number by which to increase the overall count

Humboldt Alignment Editor 2.5.0

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