more changes to adapt Centroid to the framework

jg253 [2003-06-06 20:21:35]
more changes to adapt Centroid to the framework
Filename
Context.java
ConversationLogIterator.java
ConversationMessage.java
Keyword.java
KeywordContainer.java
KeywordFinder.java
SuggestionManagerKeywordCallback.java
User.java
XMLContainer.java
diff --git a/Context.java b/Context.java
deleted file mode 100644
index 5c18aa7..0000000
--- a/Context.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package psl.conversation;
-
-/**
- * @author jg253
- */
-public class Context {
-
-}
diff --git a/ConversationLogIterator.java b/ConversationLogIterator.java
deleted file mode 100644
index 05dbf61..0000000
--- a/ConversationLogIterator.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package psl.conversation;
-
-import java.util.Iterator;
-
-/**
- * @author jg253
- */
-public interface ConversationLogIterator extends Iterator {
-
-	/**
-	 * @see java.util.Iterator#hasNext()
-	 */
-	public boolean hasNext();
-
-	/**
-	 * @see java.util.Iterator#next()
-	 */
-	public Object next();
-
-	/**
-	 * @see java.util.Iterator#remove()
-	 */
-	public void remove();
-
-	/**
-	 * Method next2.
-	 * @return ConversationMessage
-	 */
-	public ConversationMessage next2();
-}
diff --git a/ConversationMessage.java b/ConversationMessage.java
deleted file mode 100644
index 6469db2..0000000
--- a/ConversationMessage.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package psl.conversation;
-/**
- * @author jg253
- */
-public class ConversationMessage {
-
-	private User _sender;
-
-	private String _message;
-
-	/**
-	 * CTOR
-	 * @param sender
-	 * @param message
-	 */
-	public ConversationMessage(User sender, String message) {
-		_sender = sender;
-		_message = message;
-	}
-
-	/**
-	 * Method getUser.
-	 * @return User
-	 */
-	public User getUser() {
-		return _sender;
-	}
-
-	/**
-	 * Method getMessage.
-	 * @return String
-	 */
-	public String getMessage() {
-		return _message;
-	}
-}
diff --git a/Keyword.java b/Keyword.java
deleted file mode 100644
index e45591e..0000000
--- a/Keyword.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package psl.conversation;
-
-/**
- * @author jg253
- */
-public class Keyword {
-
-	private Context _context;
-	private String word; // <-- Add this because it seems like the Keyword object should contain a keyword.
-
-	public Keyword(Context c) {
-		_context = c;
-	}
-
-	public Keyword(String k, Context c) {
-		_context = c;
-		word = k;
-	}
-
-	public void changeContext(Context c) {
-		_context = c;
-	}
-
-	public Context getContext() {
-		return _context;
-	}
-	/**
-	 * Returns the word.
-	 * @return String
-	 */
-	public String getWord() {
-		return word;
-	}
-
-	/**
-	 * Sets the word.
-	 * @param word The word to set
-	 */
-	public void setWord(String word) {
-		this.word = word;
-	}
-
-}
\ No newline at end of file
diff --git a/KeywordContainer.java b/KeywordContainer.java
deleted file mode 100644
index 12ff4b2..0000000
--- a/KeywordContainer.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package psl.conversation;
-
-import java.util.ArrayList;
-
-/**
- * @author jg253
- */
-public class KeywordContainer {
-
-	private ArrayList _keywords;
-	private SuggestionManagerKeywordCallback _smkc;
-
-	public KeywordContainer(SuggestionManagerKeywordCallback smkc) {
-		_keywords = new ArrayList();
-		_smkc = smkc;
-	}
-
-	public void add(Keyword s) {
-		_keywords.add(s);
-		System.out.println("KEYWORD_CONTAINER: ADD " + s.getWord());
-	}
-
-	public int size() {
-		return _keywords.size();
-	}
-
-	public Keyword get(int i) {
-		return (Keyword) _keywords.get(i);
-	}
-
-	public void close() {
-		_smkc.signal(this);
-	}
-}
\ No newline at end of file
diff --git a/KeywordFinder.java b/KeywordFinder.java
deleted file mode 100644
index 098133a..0000000
--- a/KeywordFinder.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package psl.conversation;
-
-/**
- * @author jg253
- */
-public interface KeywordFinder extends Runnable {
-
-	/**
-	 * Start the underlying analysis algorithm.
-	 *
-	 * @param xmlc Contains an implementation of XMLContainer with the
-	 * parameters for a particular KeywordFinder implementation
-	 * @throws Exception If the XMLContainer is not of the correct type for this
-	 * KeywordFinder implementation
-	 */
-	public void start(XMLContainer xmlc, ConversationLogIterator cli) throws Exception;
-
-	/**
-	 * For some algorithms, the concept of a "reset" is useful. This forces the
-	 * underlying implementation to ignore all information prior to the reset.
-	 * This can be thought of as a restart where the algorithm's config remains
-	 * unchanged.
-	 */
-	public void reset();
-
-	/**
-	 * Same as reset() except we load up the algorithm with a different
-	 * configuration.
-	 *
-	 * @param xmlc Contains an implementation of XMLContainer with the
-	 * parameters for a particular KeywordFinder implementation
-	 * @throws Exception If the XMLContainer is not of the correct type for this
-	 * KeywordFinder implementation
-	 */
-	public void reset(XMLContainer xmlc) throws Exception;
-
-	/**
-	 * This signals the analysis algorithm for the most recent keywords.
-	 *
-	 * @param kc
-	 * @throws Exception
-	 */
-	public void signal(KeywordContainer kc) throws Exception;
-}
\ No newline at end of file
diff --git a/SuggestionManagerKeywordCallback.java b/SuggestionManagerKeywordCallback.java
deleted file mode 100644
index 6d82e8d..0000000
--- a/SuggestionManagerKeywordCallback.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package psl.conversation;
-
-/**
- * Dummy Interface.
- */
-public interface SuggestionManagerKeywordCallback {
-	public void signal(KeywordContainer kc);
-}
diff --git a/User.java b/User.java
deleted file mode 100644
index 3966cd8..0000000
--- a/User.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package psl.conversation;
-/**
- * Dummy user class.
- */
-public class User {
-
-	/**
-	 * Constructor for User.
-	 */
-	public User() {
-		super();
-	}
-
-}
diff --git a/XMLContainer.java b/XMLContainer.java
deleted file mode 100644
index d94381c..0000000
--- a/XMLContainer.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package psl.conversation;
-import org.w3c.dom.Node;
-
-/**
- * @author jg253
- */
-public interface XMLContainer {
-
-	public Node getRootNode();
-}
\ No newline at end of file