org.hops.og
Class og
java.lang.Object
org.hops.og.og
public class og
- extends java.lang.Object
This class is the interface between DM and LG.
It generates a complex ResponseData containing XML document for complex front-ends
and messages for simple front-ends as chat.
The needed information from the DM is:
- the next moves proposed by the DM
- the user history
Constructor Summary |
og(og_util.NLPParameters param)
Creates a new instance of og
Creates the two channels generator: vxml and txml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
og
public og(og_util.NLPParameters param)
- Creates a new instance of og
Creates the two channels generator: vxml and txml
- Parameters:
param
- the og parameters
genResponse
public ResponseData genResponse(java.lang.String channelId,
java.lang.String Lang,
stackact next_moves,
IS state,
UserModel um)
- Calls the TalpGen requesting a new page.
Takes into account the channel.
- Parameters:
channelId
- the user channelLang
- the user languagenext_moves
- the system moves to generate
- Returns:
- a ResponseData object containing the xml document
- See Also:
channel_type