|
FantasySportsModule 0.0.2-dev | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.fanfoot.scoring.Scores
Calculates the score for each Event in a given events
collection.
| Constructor Summary | |
Scores(Events evts,
ScoringConfiguration sc)
Creates a new instance of calculator |
|
Scores(Events evts,
ScoringConfiguration sc,
java.lang.String db)
Creates a new instance of calculator |
|
| Method Summary | |
org.w3c.dom.Document |
calculate()
Calculate the scores. |
ScoringConfiguration |
getConfiguration()
Getter for property conf. |
Events |
getEvents()
Getter for property events. |
org.w3c.dom.Document |
getScoresDocument()
Getter for property scoresDocument. |
void |
setConfiguration(ScoringConfiguration conf)
Setter for property conf. |
void |
setEvents(Events events)
Setter for property events. |
void |
setScoresDocument(org.w3c.dom.Document scoresDocument)
Setter for property scoresDocument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Scores(Events evts,
ScoringConfiguration sc)
throws ScoringConfigurationException,
DBException
evts - the events to calculate the score fromsc - Description of the Parameter
ScoringConfigurationException - Description of the
Exception
DBException - Description of the Exception
ScoringConfigurationException - if unable to calculate
scores
DBEsception - if there is a problem connecting to the
database
public Scores(Events evts,
ScoringConfiguration sc,
java.lang.String db)
throws ScoringConfigurationException,
DBException
evts - the events to calculate the score fromsc - Description of the Parameterdb - the URI of the DB to use for recording info
ScoringConfigurationException - Description of the
Exception
DBException - Description of the Exception
ScoringConfigurationException - if unable to calculate
scores
DBEsception - if there is a problem connecting to the
database| Method Detail |
public Events getEvents()
public void setEvents(Events events)
events - New value of property events.public ScoringConfiguration getConfiguration()
public void setConfiguration(ScoringConfiguration conf)
conf - New value of property conf.
public org.w3c.dom.Document calculate()
throws ScoringConfigurationException
ScoringConfigurationException - if unalb to calculate
scorespublic org.w3c.dom.Document getScoresDocument()
public void setScoresDocument(org.w3c.dom.Document scoresDocument)
scoresDocument - New value of property scoresDocument.
|
FantasySportsModule 0.0.2-dev | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||