|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.util.selection.weighing.entity.EntityWeighing<E>
E
- The entity type.public class EntityWeighing<E extends Entity>
Apply a weighing based on the Fitness
of Entity
instances.
Constructor Summary | |
---|---|
EntityWeighing()
Create a new instance. |
|
EntityWeighing(EntityFitness<E> entityFitness)
Create a new instance with the provided EntityFitness strategy. |
|
EntityWeighing(EntityWeighing copy)
Create a copy of the provided instance. |
Method Summary | |
---|---|
EntityWeighing |
getClone()
Create a cloned copy of the current object and return it. |
boolean |
weigh(List<Selection.Entry<E>> entities)
Perform a weighing on the provided list of entries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityWeighing()
public EntityWeighing(EntityFitness<E> entityFitness)
EntityFitness
strategy.
entityFitness
- The value to set.public EntityWeighing(EntityWeighing copy)
copy
- The instance to copy.Method Detail |
---|
public EntityWeighing getClone()
getClone
in interface Cloneable
getClone
in interface Weighing<E extends Entity>
Object.clone()
public boolean weigh(List<Selection.Entry<E>> entities)
weigh
in interface Weighing<E extends Entity>
entities
- The entities to weigh.
true
if successful, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |