net.sourceforge.cilib.util.selection.ordering
Interface Ordering<E>

Type Parameters:
E - The type to apply the ordering to.
All Known Implementing Classes:
ProportionalOrdering, RandomOrdering, ReverseOrdering, RingBasedOrdering, SortedOrdering

public interface Ordering<E>

An ordering is a construct to define how a list of elements should be ordered. The ordering is a simple function that does a single action.

Author:
gpampara

Method Summary
 boolean order(List<Selection.Entry<E>> elements)
          Apply the ordering on the provided list.
 

Method Detail

order

boolean order(List<Selection.Entry<E>> elements)
Apply the ordering on the provided list.

Parameters:
elements - The list to be ordered.
Returns:
true if successful, false otherwise.


Copyright © 2009 CIRG. All Rights Reserved.