public class SubPopulation extends Object implements Serializable
Constructor and Description |
---|
SubPopulation()
Default constructor.
|
SubPopulation(String name,
boolean jumpOffPop,
boolean additive,
boolean consistOfDescGenerations)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Gets the name.
|
String |
getSimplifiedName()
Gets the simplified name of the sub-population.
|
int |
hashCode() |
boolean |
isAdditive()
Checks if sub-population is additive.
|
boolean |
isConsistingOfDescendantGenerations()
Checks if sub-population is consisting of descendant generations.
|
boolean |
isJumpOffPopulation() |
SubPopulation |
newSubPopulation()
Creates new sub-population with same properties.
|
void |
setAdditive(boolean additive)
Sets the 'additive'-flag.
|
void |
setConsistingOfDescendantGenerations(boolean consistingOfDescendantGenerations)
Sets the 'consisting of descendant generations'-flag.
|
void |
setJumpOffPopulation(boolean jumpOffPopulation) |
void |
setName(String name)
Sets the name.
|
String |
toString() |
public SubPopulation()
public SubPopulation(String name, boolean jumpOffPop, boolean additive, boolean consistOfDescGenerations)
name
- the name of the sub-populationjumpOffPop
- flag to indicate that this population is part of the jump-off
populationadditive
- the flag to determine whether this sub-population adds to the
overall populationconsistOfDescGenerations
- the flag to determine whether this sub-population consists of
descendant generationspublic SubPopulation newSubPopulation()
public String getName()
public void setName(String name)
name
- the new namepublic boolean isAdditive()
public void setAdditive(boolean additive)
additive
- the new additivepublic boolean isConsistingOfDescendantGenerations()
public void setConsistingOfDescendantGenerations(boolean consistingOfDescendantGenerations)
consistingOfDescendantGenerations
- the new consisting of descendant generationspublic boolean isJumpOffPopulation()
public void setJumpOffPopulation(boolean jumpOffPopulation)
public String getSimplifiedName()
Copyright © 2013. All Rights Reserved.