|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hops.og.TalpGen
org.hops.og.FREEGen
public class FREEGen
This class builts a complex Object ResponseData containing the information that must be shown to the user. This is a subclass of TalpGen that concretely do not built a document, but only the list of sentences.
ResponseData| Field Summary |
|---|
| Fields inherited from class org.hops.og.TalpGen |
|---|
acro, city, logger, m_channelId, m_lang, m_messages, m_taxonomy |
| Constructor Summary | |
|---|---|
FREEGen()
Creates a new instance of FreeGen |
|
FREEGen(og_util.NLPParameters param,
HopsLang messages,
AttributesTaxonomy taxonomy)
Creates a new instance of FreeGen. |
|
| Method Summary | |
|---|---|
protected ResponseData |
genErrorResponse(java.lang.String message)
Generation of error pages. |
protected ResponseData |
genLanguageSelectorResponse()
Generation of language selector page. |
protected ResponseData |
genMessageResponse(stackact next_moves)
Generation of End pages This is the way for generating an ending page with a message |
protected ResponseData |
genQueryResponse(stackact next_moves)
Generation of simple pages. |
protected ResponseData |
genResultsListResponse(stackact next_moves)
Generation of list-of-things page This is the way for matching a general not ending page with a list-of-results The next_moves stach containg a pagination action. |
protected void |
matchPrompts(java.lang.String attr_name,
stackact next_moves,
ResponseData rd)
generate the prompts save them in the ResponseData |
| Methods inherited from class org.hops.og.TalpGen |
|---|
extractPageType, genResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FREEGen()
public FREEGen(og_util.NLPParameters param,
HopsLang messages,
AttributesTaxonomy taxonomy)
param - the parametersmessages - the Language Generatortaxonomy - the attributes information| Method Detail |
|---|
protected ResponseData genMessageResponse(stackact next_moves)
genMessageResponse in class TalpGennext_moves - the stack of moves to generate
protected ResponseData genQueryResponse(stackact next_moves)
genQueryResponse in class TalpGennext_moves - moves to generate
protected ResponseData genErrorResponse(java.lang.String message)
genErrorResponse in class TalpGenmessage - the error message
protected ResponseData genResultsListResponse(stackact next_moves)
genResultsListResponse in class TalpGennext_moves - moves to generate
protected ResponseData genLanguageSelectorResponse()
genLanguageSelectorResponse in class TalpGen
protected void matchPrompts(java.lang.String attr_name,
stackact next_moves,
ResponseData rd)
attr_name - the main attribute used for help messagenext_moves - the moves to generaterd - the RespondeData object that is updated
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||