Betty v1.1.0

christophedelory.betty.model.rank
Class LocalHighestResultRankProcessor

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

public class LocalHighestResultRankProcessor
extends AbstractLocalRankProcessor
implements Comparator<PlayerRank>

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

Version:
$Revision$
Author:
Christophe Delory

Constructor Summary
LocalHighestResultRankProcessor()
           
 
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

LocalHighestResultRankProcessor

public LocalHighestResultRankProcessor()
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.