<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to chat</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>Recent changes to chat</description><atom:link href="https://sourceforge.net/p/floctrl/wiki/chat/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 03 Apr 2012 19:10:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/floctrl/wiki/chat/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v13 
+++ v14 
@@ -41,32 +41,13 @@
 
 Communication
 ------
-- The communication system is not complete as it depends on the connection manager and the publish subscribe system, so many of the functions are shells which will need to be filled in with the appropriate function from the publish subscribe system.
-- The Chat System uses the publish/subscribe system to send and receive messages
-- Communication is mediated through a chatUser object. (chatUser.java)
-&gt; private chatUser user = new chatUser();
-
-- Currently messages are received the following way (though changes will need to be made):
- &gt; while(true) { &lt;br /&gt;
-     String message = user.receiveMessage(); &lt;br /&gt;
-     if(message != null)  &lt;br /&gt;
-         writeReceivedMessage() //writes the message to the screen   &lt;br /&gt;
-     Thread.sleep(100);   &lt;br /&gt;
- } &lt;br /&gt;
-
-chatUser.java  |  &lt;br /&gt;
-------------- | -------------
-Method Summary | 
-chatUser() | constructor
-chatUser(String name) | constructor, takes a user name
-public boolean connectToServer() | create a connection to the server (this may be changed as the connection will just be passed into the chat client at initialization)
-public boolean sendMessage(String user, String message) | sends a message using the publish subscribe system to a specific user
-public String recieveMessage() | receives a message from the publish/subscribe system
-public String[] getUserList(String orchestra) | get a list of users for a specific orchestra
-
+-Chat implements publish subscribe and messages are received inside receive function which is part of publish subscribe
+-Chat either receives a message on the Chat Topic, or the Name Space Topic.
+-If a message is received with the Chat Topic, then the message is displayed.
+-If a message is received on the name space topic, then we update the list of orchestras and names. This is stored in a hashset similar to the hashset in used to keep track of nodes in the namespace class.
+
 Subtask Assignments
 -------------------
 - David (dschlesi) - I'm the only one assigned to this group. I'm responsible for writing a GUI for the chat client and receiving and sending messages using the publish/subscribe system.
--Things I still need to do include actual integration with publish subscribe
 
 [Home](/p/floctrl/wiki/)
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Tue, 03 Apr 2012 19:10:57 -0000</pubDate><guid>https://sourceforge.net1c18b88621662457d2dbb83fe3a168bc5aecfbf9</guid></item><item><title>WikiPage chat modified by Roger B. Dannenberg</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v12 
+++ v13 
@@ -34,6 +34,11 @@
 private DefaultListModel orchGroups     | List of orchestras (displayed in JList orchList)
 private DefaultListModel users     | List of users for a given orchestra (displayed in JList userList)
 
+Addresses and Syntax
+--------------------
+
+The communications systems are not providing name lists, so as a (temporary?) work-around, if the message begins with a slash, the text up to the first space is taken as an address, and the text after the first region of white space is the message.
+
 Communication
 ------
 - The communication system is not complete as it depends on the connection manager and the publish subscribe system, so many of the functions are shells which will need to be filled in with the appropriate function from the publish subscribe system.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roger B. Dannenberg</dc:creator><pubDate>Fri, 30 Mar 2012 17:49:48 -0000</pubDate><guid>https://sourceforge.nete131982db7198d6abaa77f2ef798254a734f6b06</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v11 
+++ v12 
@@ -21,6 +21,7 @@
 - public void sendMessage() is called from the event handlers for the send button and pressing enter. It writes the message to the chat window and sends the message using the publish subscribe system
 - public void receiveMessage(String userName, String message) takes a received message and writes it to the text area
 - messages are displayed in different colors to make the chat window easy to read
+- public void updateUsers(int index) takes an index from the orchestra list and updates the user list with the performers in that orchestra. This function will need to be updated.
 
 List of GUI objects and variables  |  &lt;br /&gt;
 ------------- | -------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 22:38:36 -0000</pubDate><guid>https://sourceforge.net94fa5296990c594d529763fb32efe8088d70cdd9</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v10 
+++ v11 
@@ -19,23 +19,23 @@
 - the main function is chat() which calls populateForm() and waits for received messages.
 - public void populateForm() is called once at the beginning of execution and prepares GUI objects and places them on the JFrame.
 - public void sendMessage() is called from the event handlers for the send button and pressing enter. It writes the message to the chat window and sends the message using the publish subscribe system
--public void receiveMessage(String userName, String message) takes a received message and writes it to the text area
--messages are displayed in different colors to make the chat window easy to read
-
+- public void receiveMessage(String userName, String message) takes a received message and writes it to the text area
+- messages are displayed in different colors to make the chat window easy to read
+
 List of GUI objects and variables  |  &lt;br /&gt;
 ------------- | -------------
 Object Summary (Chat.java) | 
 private JTextPane textArea | Displays a users chat history
 private JTextArea typeArea | This is the field which a user types into to send a message
 private JButton btnSend    | Sends a Message
 private JList orchList     | List of available orchestras
 private JList userList     | List of available users for an orchestra
 private DefaultListModel orchGroups     | List of orchestras (displayed in JList orchList)
 private DefaultListModel users     | List of users for a given orchestra (displayed in JList userList)
 
 Communication
 ------
--The communication system is not complete as it depends on the connection manager and the publish subscribe system, so many of the functions are shells which will need to be filled in with the appropriate function from the publish subscribe system.
+- The communication system is not complete as it depends on the connection manager and the publish subscribe system, so many of the functions are shells which will need to be filled in with the appropriate function from the publish subscribe system.
 - The Chat System uses the publish/subscribe system to send and receive messages
 - Communication is mediated through a chatUser object. (chatUser.java)
 &gt; private chatUser user = new chatUser();
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 22:36:18 -0000</pubDate><guid>https://sourceforge.net4b2b21943fe4f66e3dc8fd3f9c5abb5ab2c470c5</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v9 
+++ v10 
@@ -39,6 +39,7 @@
 - The Chat System uses the publish/subscribe system to send and receive messages
 - Communication is mediated through a chatUser object. (chatUser.java)
 &gt; private chatUser user = new chatUser();
+
 - Currently messages are received the following way (though changes will need to be made):
  &gt; while(true) { &lt;br /&gt;
      String message = user.receiveMessage(); &lt;br /&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 22:35:21 -0000</pubDate><guid>https://sourceforge.net2aae736573e386412e21647324d455be1847d741</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v8 
+++ v9 
@@ -35,27 +35,31 @@
 
 Communication
 ------
+-The communication system is not complete as it depends on the connection manager and the publish subscribe system, so many of the functions are shells which will need to be filled in with the appropriate function from the publish subscribe system.
 - The Chat System uses the publish/subscribe system to send and receive messages
 - Communication is mediated through a chatUser object. (chatUser.java)
 &gt; private chatUser user = new chatUser();
 - Currently messages are received the following way (though changes will need to be made):
  &gt; while(true) { &lt;br /&gt;
      String message = user.receiveMessage(); &lt;br /&gt;
      if(message != null)  &lt;br /&gt;
          writeReceivedMessage() //writes the message to the screen   &lt;br /&gt;
      Thread.sleep(100);   &lt;br /&gt;
  } &lt;br /&gt;
 
 chatUser.java  |  &lt;br /&gt;
 ------------- | -------------
 Method Summary | 
 chatUser() | constructor
 chatUser(String name) | constructor, takes a user name
+public boolean connectToServer() | create a connection to the server (this may be changed as the connection will just be passed into the chat client at initialization)
 public boolean sendMessage(String user, String message) | sends a message using the publish subscribe system to a specific user
-
+public String recieveMessage() | receives a message from the publish/subscribe system
+public String[] getUserList(String orchestra) | get a list of users for a specific orchestra
 
 Subtask Assignments
 -------------------
 - David (dschlesi) - I'm the only one assigned to this group. I'm responsible for writing a GUI for the chat client and receiving and sending messages using the publish/subscribe system.
+-Things I still need to do include actual integration with publish subscribe
 
 [Home](/p/floctrl/wiki/)
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 22:34:51 -0000</pubDate><guid>https://sourceforge.net8887985434ca8c9e8d1dc3928637d8685266f360</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v7 
+++ v8 
@@ -36,6 +36,23 @@
 Communication
 ------
 - The Chat System uses the publish/subscribe system to send and receive messages
+- Communication is mediated through a chatUser object. (chatUser.java)
+&gt; private chatUser user = new chatUser();
+- Currently messages are received the following way (though changes will need to be made):
+ &gt; while(true) { &lt;br /&gt;
+     String message = user.receiveMessage(); &lt;br /&gt;
+     if(message != null)  &lt;br /&gt;
+         writeReceivedMessage() //writes the message to the screen   &lt;br /&gt;
+     Thread.sleep(100);   &lt;br /&gt;
+ } &lt;br /&gt;
+
+chatUser.java  |  &lt;br /&gt;
+------------- | -------------
+Method Summary | 
+chatUser() | constructor
+chatUser(String name) | constructor, takes a user name
+public boolean sendMessage(String user, String message) | sends a message using the publish subscribe system to a specific user
+
 
 Subtask Assignments
 -------------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 21:57:45 -0000</pubDate><guid>https://sourceforge.net778dfad835bc29396807c1b04f11be6074d35065</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v6 
+++ v7 
@@ -13,17 +13,29 @@
 
 The conductor is a special case: It should be easy to send a messsage to the conductor. Work with the [server-side connection manager](server-connection) group to work out how each node will discover the conductor. 
 
-Design
-------
-- I am splitting this up into sections
-
-GUI DESIGN   |  &lt;br /&gt;
+GUI Design
+------
+- the gui is contained in chat.java and uses a JFrame populated by swing objects.
+- the main function is chat() which calls populateForm() and waits for received messages.
+- public void populateForm() is called once at the beginning of execution and prepares GUI objects and places them on the JFrame.
+- public void sendMessage() is called from the event handlers for the send button and pressing enter. It writes the message to the chat window and sends the message using the publish subscribe system
+-public void receiveMessage(String userName, String message) takes a received message and writes it to the text area
+-messages are displayed in different colors to make the chat window easy to read
+
+List of GUI objects and variables  |  &lt;br /&gt;
 ------------- | -------------
 Object Summary (Chat.java) | 
 private JTextPane textArea | Displays a users chat history
 private JTextArea typeArea | This is the field which a user types into to send a message
+private JButton btnSend    | Sends a Message
 private JList orchList     | List of available orchestras
-private JList userList     | Displays users for a selected orchestra
+private JList userList     | List of available users for an orchestra
+private DefaultListModel orchGroups     | List of orchestras (displayed in JList orchList)
+private DefaultListModel users     | List of users for a given orchestra (displayed in JList userList)
+
+Communication
+------
+- The Chat System uses the publish/subscribe system to send and receive messages
 
 Subtask Assignments
 -------------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 19:37:37 -0000</pubDate><guid>https://sourceforge.netbf2c174c0f6a24006d553d65ff5fd024416fa09e</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v5 
+++ v6 
@@ -20,7 +20,7 @@
 GUI DESIGN   |  &lt;br /&gt;
 ------------- | -------------
 Object Summary (Chat.java) | 
-private JTextArea textArea | Displays a users chat history
+private JTextPane textArea | Displays a users chat history
 private JTextArea typeArea | This is the field which a user types into to send a message
 private JList orchList     | List of available orchestras
 private JList userList     | Displays users for a selected orchestra
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 19:21:25 -0000</pubDate><guid>https://sourceforge.net9846a635f2bfd6b0dd54b2cd66d5571c8ed1e307</guid></item><item><title>WikiPage chat modified by David Schlesinger</title><link>https://sourceforge.net/p/floctrl/wiki/chat/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -15,7 +15,15 @@
 
 Design
 ------
-- Put a design here
+- I am splitting this up into sections
+
+GUI DESIGN   |  &lt;br /&gt;
+------------- | -------------
+Object Summary (Chat.java) | 
+private JTextArea textArea | Displays a users chat history
+private JTextArea typeArea | This is the field which a user types into to send a message
+private JList orchList     | List of available orchestras
+private JList userList     | Displays users for a selected orchestra
 
 Subtask Assignments
 -------------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Schlesinger</dc:creator><pubDate>Thu, 08 Mar 2012 18:43:25 -0000</pubDate><guid>https://sourceforge.net3aab1e89d6b9755624fc47ab70365a4209755b33</guid></item></channel></rss>