babase.ranker.ranking
Class RankingChangeEvent.Swap

java.lang.Object
  extended by babase.ranker.ranking.RankingChangeEvent
      extended by babase.ranker.ranking.RankingChangeEvent.Swap
Enclosing class:
RankingChangeEvent

public static class RankingChangeEvent.Swap
extends RankingChangeEvent

An event representing the operation of swapping two individuals' ranks, caused by Ranking.swap(int, int, Object).

Author:
junyang

Nested Class Summary
 
Nested classes/interfaces inherited from class babase.ranker.ranking.RankingChangeEvent
RankingChangeEvent.Permute, RankingChangeEvent.Slide, RankingChangeEvent.Swap
 
Field Summary
 int i
          One of the ranks (0-based) involved in the swap.
 int j
          The other rank (0-based) involved in the swap.
 
Fields inherited from class babase.ranker.ranking.RankingChangeEvent
ranks, source
 
Constructor Summary
RankingChangeEvent.Swap(java.lang.Object swapper, Ranking ranks, int i, int j)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

i

public final int i
One of the ranks (0-based) involved in the swap.


j

public final int j
The other rank (0-based) involved in the swap.

Constructor Detail

RankingChangeEvent.Swap

public RankingChangeEvent.Swap(java.lang.Object swapper,
                               Ranking ranks,
                               int i,
                               int j)
Parameters:
swapper -
ranks -
i -
j -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object