|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsrc.server.ModuleClass
src.modules.WordGameModule
Provides a simple little word game. The object of the game is to take letters provided by the module and form a word. The number of letters that should be provided by the server can be specified in the query. The time that the user has to make a word is timelimited. The module shows the modules' ability to remember things about users and have a time perception. Example queries:
| Constructor Summary | |
WordGameModule()
Constructor for WordGameModule. |
|
| Method Summary | |
boolean |
isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Checks if a cached result is valid or not based on how long ago the result was cached. |
Package |
processQuery(ModuleQuery query)
Process a user sent query. |
Package |
processSettingRequest(QueryPackage query)
This is the default setting handler. |
| Methods inherited from class src.server.ModuleClass |
getModuleMeta, processSettingRequest, setModuleMeta |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WordGameModule()
| Method Detail |
public boolean isValidCache(ModuleQuery query,
java.lang.String cachedUserId,
long cacheAge)
Module
query - The user query that resulted in the cached result. The
user's query parameters are identical to the cached query parameters.cachedUserId - The userId of the query that is cached.cacheAge - The number of seconds that has elapsed since the cached
version was cached.
public Package processQuery(ModuleQuery query)
Module
query - The user sent query.
public Package processSettingRequest(QueryPackage query)
ModuleClass
processSettingRequest in interface ModuleprocessSettingRequest in class ModuleClassquery - The query to be processed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||