model
Class AbstractRotation

java.lang.Object
  extended by model.AbstractRotation
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
DirectSwap, NavyDirectSwap, NavySpecial, NoRotation, StandardSwap

public abstract class AbstractRotation
extends java.lang.Object
implements java.lang.Comparable


Constructor Summary
AbstractRotation(java.lang.String shortName, java.lang.String fullName, boolean racesPerSwapNeeded)
           
AbstractRotation(java.lang.String shortName, java.lang.String fullName, boolean racesPerSwapNeeded, boolean needsTwoDivisions)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFullName()
           
 java.lang.String getShortName()
           
 int hashCode()
           
 boolean isNeedsTwoDivisions()
           
 boolean isRacesPerSwapNeeded()
           
abstract  void setupRotation(int numRacesPerSwap, java.util.HashMap<Team,Boat> boatMap, java.util.ArrayList<Division> divisions, java.util.ArrayList<Team> teams)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRotation

public AbstractRotation(java.lang.String shortName,
                        java.lang.String fullName,
                        boolean racesPerSwapNeeded)

AbstractRotation

public AbstractRotation(java.lang.String shortName,
                        java.lang.String fullName,
                        boolean racesPerSwapNeeded,
                        boolean needsTwoDivisions)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getFullName

public java.lang.String getFullName()

getShortName

public java.lang.String getShortName()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isNeedsTwoDivisions

public boolean isNeedsTwoDivisions()

isRacesPerSwapNeeded

public boolean isRacesPerSwapNeeded()

setupRotation

public abstract void setupRotation(int numRacesPerSwap,
                                   java.util.HashMap<Team,Boat> boatMap,
                                   java.util.ArrayList<Division> divisions,
                                   java.util.ArrayList<Team> teams)