SafetyMutex and rocket optimization updates
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / Visitable.java
index cb516a5ee22182aa4fa3c629e11a9d39aa22cd17..5f46b7ff97c5f3d029378d98853f529def51d5e2 100644 (file)
@@ -8,11 +8,11 @@ package net.sf.openrocket.rocketcomponent;
  * The elements of the concrete object hierarchy are only visitable by an associated hierarchy of visitors, 
  * while these visitors are only able to visit the elements of that hierarchy. 
  * 
- * The key concept regarding the Visitor pattern is to realize that Java will only ÒdiscriminateÓ the type of an 
+ * The key concept regarding the Visitor pattern is to realize that Java will only "discriminate" the type of an 
  * object being called, not the type of an object being passed.
  *
  * In order for the type of two objects to be determinable to the JVM, each object must be the receiver of an
- * invocation. Here, when accept is called on a Visitable, the concrete type of the Visitable becomes ÒknownÓ but the 
+ * invocation. Here, when accept is called on a Visitable, the concrete type of the Visitable becomes "known" but the 
  * concrete type of the argument is still unknown.  <code>visit</code> is then called on the parameter object, passing 
  * the Visitable back, which has type and identity. Flow of control has now been 'double-dispatched' such that the 
  * type (and identity) of both objects are known. 
@@ -28,14 +28,14 @@ package net.sf.openrocket.rocketcomponent;
  * <T> The visitable (the concrete class that implements this interface)
  */
 public interface Visitable<V extends Visitor<V, T>, T extends Visitable<V, T>> {
-
-    /**
-     * Any class in the hierarchy that allows itself to be visited will implement this method.  The normal
-     * behavior is that the visitor will invoke this method of a Visitable, passing itself.  The Visitable 
-     * turns around calls the Visitor back. This idiom is also known as 'double-dispatching'.
-     * 
-     * @param visitor  the visitor that will be called back
-     */
-    public void accept(V visitor);
-
+       
+       /**
+        * Any class in the hierarchy that allows itself to be visited will implement this method.  The normal
+        * behavior is that the visitor will invoke this method of a Visitable, passing itself.  The Visitable 
+        * turns around calls the Visitor back. This idiom is also known as 'double-dispatching'.
+        
+        * @param visitor  the visitor that will be called back
+        */
+       public void accept(V visitor);
+       
 }