net.sourceforge.cilib.util.selection.weighing
Interface Weighing<E>

Type Parameters:
E - The selection type.
All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
SolutionWeighing
All Known Implementing Classes:
AntiClusterWeighing, EntityWeighing, FixedWeighing, LinearWeighing

public interface Weighing<E>
extends Cloneable

Interface defining how weighing for selections are to operate.

Author:
Wiehann Matthysen

Method Summary
 Weighing<E> getClone()
          Create a cloned copy of the current object and return it.
 boolean weigh(List<Selection.Entry<E>> elements)
          Perform a weighing on the provided list of entries.
 

Method Detail

getClone

Weighing<E> getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

weigh

boolean weigh(List<Selection.Entry<E>> elements)
Perform a weighing on the provided list of entries.

Parameters:
elements - The entries to weigh.
Returns:
true if successful, false otherwise.


Copyright © 2009 CIRG. All Rights Reserved.