org.opt4j.core
Interface IndividualSetListener


public interface IndividualSetListener

The IndividualSetListener receives notifications if an Individual is added to or removed from an IndividualSet.

See Also:
IndividualSet

Method Summary
 void individualAdded(IndividualSet collection, Individual individual)
          Invoked if the Individual is added to the IndividualSet.
 void individualRemoved(IndividualSet collection, Individual individual)
          Invoked if the Individual is removed from the IndividualSet.
 

Method Detail

individualAdded

void individualAdded(IndividualSet collection,
                     Individual individual)
Invoked if the Individual is added to the IndividualSet.

Parameters:
collection - the observed collection
individual - the added individual

individualRemoved

void individualRemoved(IndividualSet collection,
                       Individual individual)
Invoked if the Individual is removed from the IndividualSet.

Parameters:
collection - the observed collection
individual - the removed individual