|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hops.og.TalpGen
public class TalpGen
TalpGen.java
Field Summary | |
---|---|
protected java.lang.String |
acro
city acronim for grammars name |
protected java.lang.String |
city
city name for language generator |
protected java.lang.Object |
logger
logging process |
protected java.lang.String |
m_channelId
user channel |
protected java.lang.String |
m_lang
user language |
protected HopsLang |
m_messages
messages for the Language Generator |
protected AttributesTaxonomy |
m_taxonomy
Attributes information |
Constructor Summary | |
---|---|
TalpGen()
Creates a new instance of TalpGen |
|
TalpGen(og_util.NLPParameters param,
HopsLang messages,
AttributesTaxonomy taxonomy)
Creates a new instance of TXMLGen. |
Method Summary | |
---|---|
protected int |
extractPageType(stackact next_moves)
Decides which will be the next page type depending on the moves in the next_moves stack. |
protected ResponseData |
genErrorResponse(java.lang.String msg)
Generation of error pages. |
protected ResponseData |
genLanguageSelectorResponse()
Generation of language selector page. |
protected ResponseData |
genMessageResponse(stackact next_moves)
Generation of End pages If the subclass cannot create the document, an Error page is created. |
protected ResponseData |
genQueryResponse(stackact next_moves)
Generation of simple pages If the subclass cannot create the document, an Error page is created. |
ResponseData |
genResponse(java.lang.String channelId,
java.lang.String Lang,
stackact next_moves,
IS state,
UserModel _um)
Sets the UserModel to the LG module, and selects the type-of-actions next response depending on the actionis in the next_moves stack. |
protected ResponseData |
genResultsListResponse(stackact next_moves)
Generation of list of things page If the subclass cannot create the document, an Error page is created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object logger
protected HopsLang m_messages
protected AttributesTaxonomy m_taxonomy
protected java.lang.String m_lang
protected java.lang.String m_channelId
protected java.lang.String city
protected java.lang.String acro
Constructor Detail |
---|
public TalpGen()
public TalpGen(og_util.NLPParameters param, HopsLang messages, AttributesTaxonomy taxonomy)
param
- the parametersmessages
- the Language Generatortaxonomy
- the attributes informationMethod Detail |
---|
public ResponseData genResponse(java.lang.String channelId, java.lang.String Lang, stackact next_moves, IS state, UserModel _um)
channelId
- the user channelLang
- the user languagenext_moves
- the next moves to generatestate
- the IST from the DM_um
- the user model
ResponseData
protected int extractPageType(stackact next_moves)
next_moves
- the next moves to generate
protected ResponseData genQueryResponse(stackact next_moves)
next_moves
- moves to generate
protected ResponseData genMessageResponse(stackact next_moves)
next_moves
- the stack of moves to generate
protected ResponseData genResultsListResponse(stackact next_moves)
next_moves
- moves to generate
protected ResponseData genErrorResponse(java.lang.String msg)
msg
- the error message
protected ResponseData genLanguageSelectorResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |