RavenclawDev: returning frame from a back end

Dan Bohus dbohus at cs.cmu.edu
Tue Oct 10 17:51:41 EDT 2006


Hi Svetlana, 

 

I think this is the same problem with "Ravenclaw frames" and "galaxy
frames" but on the output side. Basically what you're doing in the code
below is constructing a galaxy frame. Instead ravenclaw expects a single
string in that galaxy frame which contains the information in a single
string in the "string Ravenclaw frame" format... 

 

If this message is too cryptic, let me know and I can send you more
details,

Dan

 

________________________________

From: ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu
[mailto:ravenclaw-developers-bounces at LOGANBERRY.srv.cs.cmu.edu] On
Behalf Of Svetlana Stenchikova
Sent: Tuesday, October 10, 2006 5:41 PM
To: ravenclaw-developers at cs.cmu.edu
Subject: RavenclawDev: returning frame from a back end

 

Hi,

How should a  back-end function of a ravenclaw dialog manager format a
frame?

For example,  I am expecting to get a "error" parameter from:

CALL("java_be.add_event <event_add error>backend_error")

backend_error is declared as:
BOOL_SYSTEM_CONCEPT(backend_error)

In the java back-end:

public GFrame serverOpAddEvent(GFrame f) {
...

    GFrame eventAdded = new Clause("event_add");
    
    eventAdded.setProperty("error", "false");

    return eventAdded;
}


But the backend_error in DM does not get initialized. 

Is there a particular way that the return GFrame from the backend server
has to be generated?

Thank you,
Svetlana

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/ravenclaw-developers/attachments/20061010/22f51aa8/attachment.html


More information about the Ravenclaw-developers mailing list