|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.pbemengine.engine.ng.blueprint.Ruleset
public abstract class Ruleset
Basic game class - describes all information required to run a PBEM.
| Constructor Summary | |
|---|---|
Ruleset(java.lang.String name,
java.lang.String context,
java.lang.Class<? extends TurnProcessor> turnProcessor,
java.lang.Class<? extends ReportMailGenerator> reportMailGenerator)
Creates a new ruleset with the indicated settings |
|
| Method Summary | |
|---|---|
java.lang.String |
getContext()
Returns the context path of this ruleset |
abstract java.lang.Class<? extends MailProcessor> |
getMailProcessor(Mail m)
A MailProcessor class appropriate for a given mail |
java.lang.String |
getName()
Get the name of this Ruleset |
java.lang.Class<? extends ReportMailGenerator> |
getReportMailGenerator()
A ReportMailGenerator class for creating reports |
freemarker.template.Configuration |
getReportTemplateConfiguration()
Returns the Hibernate configuration object for reports for this Ruleset |
java.lang.Class<? extends TurnProcessor> |
getTurnProcessor()
Get the class used for processing a Turn, which can be autowired |
void |
setReportTemplateConfiguration(freemarker.template.Configuration reportTemplateConfiguration)
Sets the Freemarker Configuration object for this Ruleset, used by the Engine to create a TemplateConvertor for ReportMailGenerator objects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ruleset(java.lang.String name,
java.lang.String context,
java.lang.Class<? extends TurnProcessor> turnProcessor,
java.lang.Class<? extends ReportMailGenerator> reportMailGenerator)
name - The name of the Rulesetcontext - The web-context path of the RulesetturnProcessor - The class used for processing turnsreportMailGenerator - The class used for generating reports| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getContext()
public freemarker.template.Configuration getReportTemplateConfiguration()
public void setReportTemplateConfiguration(freemarker.template.Configuration reportTemplateConfiguration)
reportTemplateConfiguration - The Configurationpublic java.lang.Class<? extends TurnProcessor> getTurnProcessor()
public abstract java.lang.Class<? extends MailProcessor> getMailProcessor(Mail m)
m - The mail to check for an appropriate processor
public java.lang.Class<? extends ReportMailGenerator> getReportMailGenerator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||