Comments added

ktn10 [2001-05-17 16:06:59]
Comments added
Filename
DBAccessApplet.java
DBAccessApplication.java
DBInterfaceFrame.java
InvalidSchemaFormatException.java
SchemaFragment.java
SendOracleReply.java
SendTriKXSignal.java
SendWorklet.java
diff --git a/DBAccessApplet.java b/DBAccessApplet.java
index b28c9ce..e1af5c4 100644
--- a/DBAccessApplet.java
+++ b/DBAccessApplet.java
@@ -1,6 +1,6 @@
 /**
  * Title: DBAccessApplet
- * Description: A main frame to access Oracle database. It provides user
+ * Description: A main frame to access Oracle database from an Applet. It provides user
  *              an option of adding or deleting the tags to the database.
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
   *                              All Rights Reserved.
diff --git a/DBAccessApplication.java b/DBAccessApplication.java
index 117e34a..d10888b 100644
--- a/DBAccessApplication.java
+++ b/DBAccessApplication.java
@@ -1,6 +1,6 @@
 /**
  * Title: DBAccessApplication
- * Description: A main frame to access Oracle database. It provides user
+ * Description: A main frame to access Oracle database using a Java application. It provides user
  *              an option of adding or deleting the tags to the database.
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
   *                              All Rights Reserved.
diff --git a/DBInterfaceFrame.java b/DBInterfaceFrame.java
index 90ab7c4..a4f4213 100644
--- a/DBInterfaceFrame.java
+++ b/DBInterfaceFrame.java
@@ -1,6 +1,7 @@
 /**
  * Title: DBInterfaceFrame
  * Description: This class provides an interface to the HSQL database.
+ *              It is used by GUI in order to access the database.
  *              It provides essential methods like put(key, data), get(key),
  *              remove(key) and shutdown().
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
diff --git a/InvalidSchemaFormatException.java b/InvalidSchemaFormatException.java
index bc5414d..2391c6d 100644
--- a/InvalidSchemaFormatException.java
+++ b/InvalidSchemaFormatException.java
@@ -1,7 +1,7 @@
 /**
  * Title: InvalidSchemaFormatException
  * Description: Exception is thrown when a schema information format stored
- *              in the database is not valid. Proper format ise: <fragment>,
+ *              in the database is not valid. Proper format is: <fragment>,
  *              <moduleInfo>
  *              ModuleInfo must contain module name, if persistent and instance name
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
diff --git a/SchemaFragment.java b/SchemaFragment.java
index 8e2aa39..66d9b05 100644
--- a/SchemaFragment.java
+++ b/SchemaFragment.java
@@ -1,27 +1,15 @@
 /**
-
  * Title: SchemaFragment
-
  * Description: Defines an object which is used to store a schema
-
  *              definition and module information. It stores element name,
-
  *              schema fragment, modulename associated with an element, if
-
  *              a module is persistent or  not and instance name if it is
-
  *              persistent. (Metaparser will keep an instance if a module
-
  *              if it is persistent).
-
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
-
-  *                              All Rights Reserved.
-
+ *                              All Rights Reserved.
  * @author Kanan Naik
-
  * @version 1.0
-
  */

 package psl.oracle;
@@ -29,41 +17,23 @@ package psl.oracle;
 import java.util.*;

 public class SchemaFragment
-
 {
-
     String name;
-
     String description;
-
     Vector moduleName = null;
-
     boolean isPersistent = false;
-
     String instanceName = null;

-
-
     public SchemaFragment()
-
     {
-
 	name = null;
-
 	description = null;
-
         moduleName = new Vector();
-
         isPersistent = false;
-
         instanceName = null;
-
     }

-
-
     public String toString()
-
     {
         String moduleString = "";
 	    for(Enumeration e = moduleName.elements();e.hasMoreElements();)
@@ -75,95 +45,65 @@ public class SchemaFragment
         }
         return "\n" + description + "\n" + isPersistent + "," + instanceName
                     + "," + moduleString;
-
     }


-
     public String getName()
-
     {
-
 	return name;
-
     }

     public void setName(String name)
-
     {
-
        	this.name = name;
-
     }



     public String getDescription()
-
     {
-
 	return description;
-
     }

     public void setDescription(String description)
-
     {
-
 	this.description = description;
-
     }



-    public Vector getModuleName()
-
+    public Vector getMoudleName()
     {
     	return moduleName;
     }

-    public void setModuleName(Vector module)

+    public void setModuleName(Vector module)
     {
     if(module != null)
 	    this.moduleName = module;
-
     }


-
     public boolean isPersistent()
-
     {
-
 	return isPersistent;
-
     }

     public void setIsPersistent(boolean persistent)
-
     {
-
 	this.isPersistent = persistent;
-
     }


-
     public String getInstanceName()
-
     {
-
 	return instanceName;
-
     }

     public void setInstanceName(String instance)
-
     {
-
 	this.instanceName = instance;
-
     }

 }
diff --git a/SendOracleReply.java b/SendOracleReply.java
index d6e59d8..bae4085 100644
--- a/SendOracleReply.java
+++ b/SendOracleReply.java
@@ -2,15 +2,11 @@

  * Title: SendOracleReply

- * Description: This class will be used to implement a mechanism to
+ * Description: This class is used to implement a mechanism to

- *              send the modules or module URI to Metaparser. At present
+ *              send the modules to Metaparser.

- *              it is not used but it will be modify to incorporate
-
- *              Worklets functionality or other mechanism used to transfer
-
- *              the data to Metaparser.
+ *              It uses Worklets functionality to transfer the data to Metaparser.

  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.

diff --git a/SendTriKXSignal.java b/SendTriKXSignal.java
index 05de26d..4593f36 100644
--- a/SendTriKXSignal.java
+++ b/SendTriKXSignal.java
@@ -1,8 +1,8 @@
 /**
  * Title: SendTriKXSignal
  * Description: This class is used to generate a Siena event for TriKX.
- *              It should be used to when Oracle needs to change its
- *              TriKX portal. The modified portal file be taken from the
+ *              It should be used when Oracle needs to change its
+ *              TriKX portal. The modified portal file is taken from the
  *              predefined location.
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
  *                              All Rights Reserved.
diff --git a/SendWorklet.java b/SendWorklet.java
index f4c2363..e84f10f 100644
--- a/SendWorklet.java
+++ b/SendWorklet.java
@@ -1,19 +1,11 @@
 /*
-
  * Title: SendWorklet
-
  * Description:  This class is used to send a Worklet to MP. This Worklet
-
  *               carries tag-processors with it.
-
  * Copyright (c) 2000: The Trustees of Columbia University and the City of New York.
-
  *                              All Rights Reserved.
-
  * @author Kanan Naik
-
  * @version 1.0
-
  */


@@ -21,73 +13,34 @@
 package psl.oracle;


-
 import psl.worklets.*;
-
 import psl.codetransfer.*;

-
-
 import java.util.*;

-
-
-public class SendWorklet {
-
-
-
+public class SendWorklet
+{
     static WVM wvm;

-
-
     public SendWorklet (String host, String name)
-
     {
-
 	wvm = new WVM(this, host, name);
-
     }


-
-    public static void send(String key, String rHost, String rName, Vector moduleName) {
-
-    //WVM wvm = new WVM(this, host, name);
-
+    public static void send(String key, String rHost, String rName, Vector moduleName)
     {
-
       // this code block creates the Vector of classfile locations to send out

       Worklet wkl = new Worklet(null);
-
-      //System.out.println("module " +moduleName);
-
-      //Vector v = new Vector();
-
-      //v.add(moduleName);
-
       System.out.println("Creating CFRWJ");
-
       CFRWJ wj = new CFRWJ(key, moduleName, rHost, rName);
-
-
-
       System.out.println("Adding CFRWJ to WKL");
-
       wkl.addJunction(wj);
-
-
-
       System.out.println("Deploying WKL w/ CFRWJ");
-
       wkl.deployWorklet(wvm);
-
     }

-  }
-
-
-
 }