Betty v1.1.0

christophedelory.betty.model.rank
Class LocalHighestResultDifferenceRankProcessor

java.lang.Object
  extended by christophedelory.betty.model.rank.AbstractLocalRankProcessor
      extended by christophedelory.betty.model.rank.LocalHighestResultDifferenceRankProcessor
All Implemented Interfaces:
RankProcessor, Comparator<PlayerRank>

public class LocalHighestResultDifferenceRankProcessor
extends AbstractLocalRankProcessor
implements Comparator<PlayerRank>

A rank processor which scope is only a given list of players, and based on the difference of player results.

Version:
$Revision$
Author:
Christophe Delory

Constructor Summary
LocalHighestResultDifferenceRankProcessor()
           
 
Method Summary
 int compare(PlayerRank o1, PlayerRank o2)
           
 void processPhasePlayerRanks(LocalPhase dbPhase, Collection<LocalEvent> dbEvents, int initialRank, List<PlayerRank> playerRanksToBeResolved)
           
 
Methods inherited from class christophedelory.betty.model.rank.AbstractLocalRankProcessor
buildSpecificPlayerRanks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LocalHighestResultDifferenceRankProcessor

public LocalHighestResultDifferenceRankProcessor()
Method Detail

processPhasePlayerRanks

public void processPhasePlayerRanks(LocalPhase dbPhase,
                                    Collection<LocalEvent> dbEvents,
                                    int initialRank,
                                    List<PlayerRank> playerRanksToBeResolved)
                             throws Exception
Specified by:
processPhasePlayerRanks in interface RankProcessor
Throws:
Exception

compare

public int compare(PlayerRank o1,
                   PlayerRank o2)
Specified by:
compare in interface Comparator<PlayerRank>

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.