How to implement program like MSN chat with JADE?

Discussions about design and architecture principles, including native JADE systems and JADE interoperating with other technologies
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by Jay >> Wed, 14 Jan 2004 2:00:56 GMT

Hi
I'd like to implement program like MSN chat with JADE. Any idea how to start? Thanks

Regards,
Jay.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by allistar >> Thu, 15 Jan 2004 2:56:20 GMT

You would employ notifications to send messages between open clients (which would be thin clients I would expect). The notification would contain the text of the message, which would get displayed on a form on the client screen. It would be an interesting project although I'd imagine no good for real life because of the licensing requirements of JADE.

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by Jay >> Thu, 15 Jan 2004 7:10:10 GMT

Suppose, this's for study purpose,which documents or book should I read first? And what mean by "the licensing requirements of JADE"?


Regards,
Jay.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by allistar >> Thu, 15 Jan 2004 8:47:12 GMT

I would recommend doing any online courses available, which you should be able to find no the JADE website.

By "licensing requirements" I was commenting on the fact that a fee needs to be paid to Jade for every user process in a multiuser system. I am not making a statement against this, just pointing out that it wouldn't be feasible to implement a chat type program in JADE from a financial perspective. It would be a good way to learn the JADE development system though.

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by dr >> Thu, 15 Jan 2004 22:02:06 GMT
By "licensing requirements" I was commenting on the fact that a fee needs to be paid to Jade for every user process in a multiuser system.

Have you made some architectural assumptions here? Licence cost is certainly an issue if you want to pay for the simplicity, etc of Jade thin client when targetting the general public. However a CHAT business model could conceivably support this for specific user groups (e.g. business users).

However, implementing a D.I.Y. client to target a non-paying public audience (e.g. based on activeX, web services, etc), would incur a licence fee only for open connections to the database (similar to some RDBMS licence models). Is this closer to the MSN Chat model?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by allistar >> Fri, 16 Jan 2004 0:57:44 GMT

You could always develop the client using C++ (or similar environment) that connects to a node running on the JADE database server using TCP/IP to do communications. That wouldn't be overly difficult to achieve (TCP/IP communications between processes is fairly straight forward). You would need some sort of worker thread pool on the JADE node to handle multiple simulateous requests, and each of those threads would still incur a license fee. If the messages could be kept brief then you could probably handle dozens of connected clients with each worker thread.

The point is that aside from a learning experience JADE would not be the best chouice for such an application. Don't get me wrong, I'm very pro JADE, but I wouldn't use it to write device drivers either.

Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by Jay >> Sun, 18 Jan 2004 15:06:46 GMT

Thanks everyone, as Jade has smart thin client why is it not easy to do this? , and if Jade is as good as its advertisment,then it could be possible to implement this kind of application. I just wanna learn whether it can do chatting stuffs and how to start it because most of tutorials on the web or in the book focusing on only database.And if what allistar mentioned that "I wouldn't use it to write device drivers either." is true, there's is useless to build chat application with JADE unless talking about "licencing" or business talk then I'll give up JADE.

Regards,
Jay

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by allistar >> Mon, 19 Jan 2004 0:37:36 GMT

Hi Jay,
Using the thin client capability would be a good idea for a system like this, here is how I would develop it:

- each user logs into the system as a thin client
- make a "User" class that has at least these properties:
- name, userId, emailAddress, allFriendlyUsers (this would be a collection of all users that are a "friend" of this user), isOnline
- have a dialog form that lists all "friend" users of this user, and displays whether or not they are online (red = offline, green = online or somethnig like that). When the form loads register an object notifications for each user that is displayed on the form. This is so if any details of that user changes (like their name or more importantly whether they are online) the current client will receive a notification (via the sysNotify event). On catehing that event update the display of the user (from red to green or whatever).
- on application startup register for a particular event that you will use to receive messages on the current user object (that is the user object for the current user).
- to send a message to a particular user call the "causeEvent" method on the object for the other user and pass through the details of the message. That user will receive a notification for that event, and on catching it you would display the message (or flash an icon or play a sound or however you decide to handle messages).

That's will get you started on a very basic messaging application. You could use a similar notification structure to handle live chat between multiple connected users at once.

Hope this helps,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by Jay >> Mon, 19 Jan 2004 1:06:37 GMT

Thank you Allistar to get me clear about this.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to implement program like MSN chat with JADE?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:30 am

by cnwjhp1 >> Fri, 16 Jan 2004 1:02:47 GMT

Sounds to me like Jay is learning Jade and chose chat as a project, so he doesn't care about licencing, just learning.


Return to “Design and Architecture”

Who is online

Users browsing this forum: No registered users and 0 guests

cron