fmorbini / jmNL

modular NL platform for dialogue agents
Other
16 stars 2 forks source link

Multiple Concurrent Sessions #6

Open ashwindharne opened 6 years ago

ashwindharne commented 6 years ago

Hi! I have a question; I'm trying to have multiple sessions running concurrently, but can't seem to figure out how to start them through the ChatInterface UI. I have combed through some of the code and it seems to be implemented, but I can't figure out how to activate it. I see the "addressees" JComboBox at the bottom of the window, but cannot seem to utilize it. Forgive me if there is an obvious method I am missing, but are concurrent sessions supported?

fmorbini commented 6 years ago

Hi, no that feature is not exposed in the UI. You have to do it programmatically when you integrate it with whatever event framework you use. The UI was mostly designed for testing (so single session). But you can extend it to start multiple sessions.

On Mon, Dec 4, 2017 at 11:50 AM, ashwindharne notifications@github.com wrote:

Hi! I have a question; I'm trying to have multiple sessions running concurrently, but can't seem to figure out how to start them through the ChatInterface UI. I have combed through some of the code and it seems to be implemented, but I can't figure out how to activate it. I see the "addressees" JComboBox at the bottom of the window, but cannot seem to utilize it. Forgive me if there is an obvious method I am missing, but are concurrent sessions supported?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fmorbini/jmNL/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AGMFklky58CUmNxPl2p3wL-8QH6PFvjKks5s9E0RgaJpZM4Q1NrA .

ashwindharne commented 6 years ago

Hey!

I successfully implemented multiple users, but I was wondering whether any logout functionality(as opposed to the login event) has already been implemented. This is because it is rather resource-hungry and I would like to have Java's garbage collection clean up the unused objects.

Thanks!

fmorbini commented 6 years ago

Hi, a session gets killed when the policy executes a final operator (one with the final keyword). i forget if this version cleans up everything, but that is the signal to cleanup.