Author: maurelio1234
Date: 2008-07-09 13:41:08-0700
New Revision: 15223
Modified:
branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java
branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java
branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java
Log:
code comments
Modified: branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java?view=diff&rev=15223&p1=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java&p2=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java&r1=15222&r2=15223
==============================================================================
--- branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java (original)
+++ branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/CrOCL.java 2008-07-09 13:41:08-0700
@@ -38,10 +38,6 @@
*
* @author maurelio1234
*/
-/**
- *
- * @author maas
- */
public class CrOCL extends CrUML {
/**
Modified: branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java?view=diff&rev=15223&p1=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java&p2=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java&r1=15222&r2=15223
==============================================================================
--- branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java (original)
+++ branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/ModelInterpreter.java 2008-07-09 13:41:08-0700
@@ -27,7 +27,9 @@
import java.util.HashMap;
/**
- * Actually interprets the feature and operations in the model
+ * Actually interprets the feature and operations in the model, in the sense
+ * that the OclInterpreter is only responsible for interpreting the OCL
+ * constructors
*
* @author maurelio1234
*/
@@ -36,13 +38,17 @@
/**
* Actually interprets the feature and operations in the model
*
- * @param vt
- * @param subject
- * @param feature
- * @param type
- * @param parameters
+ * @param vt the variable table
+ * @param subject the subject (the object from which the feature is
+ * accessed)
+ * @param feature the feature name (operation, attribute or collection
+ * operation)
+ * @param type the type of feature ("." for operations and attributes and
+ * "->" for collection operations)
+ * @param parameters the parameters for this invokation
* @return the return value
*/
- Object invokeFeature(HashMap<String, Object> vt, Object subject, String feature, String type, Object[] parameters);
+ Object invokeFeature(HashMap<String, Object> vt, Object subject,
+ String feature, String type, Object[] parameters);
}
Modified: branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java?view=diff&rev=15223&p1=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java&p2=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java&r1=15222&r2=15223
==============================================================================
--- branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java (original)
+++ branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/profile/internal/ocl/OclInterpreter.java 2008-07-09 13:41:08-0700
@@ -29,6 +29,7 @@
import java.util.Vector;
import org.apache.log4j.Logger;
+import org.argouml.cognitive.Critic;
import tudresden.ocl.parser.OclParser;
import tudresden.ocl.parser.lexer.Lexer;
@@ -105,7 +106,11 @@
}
/**
- * @return the triggers for this OCL
+ * Computes and returns the set of triggers for this
+ * constraint.
+ *
+ * @see Critic#addTrigger(String)
+ * @return the set of triggers
*/
public Vector<String> getTriggers() {
ComputeTriggers ct = new ComputeTriggers();
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.