Commit in GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util on MAIN
Define.java+30-261.1 -> 1.2
Method added to get a Constant.

GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd/util
Define.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- Define.java	28 Feb 2005 07:33:47 -0000	1.1
+++ Define.java	30 Jun 2005 00:36:10 -0000	1.2
@@ -10,30 +10,34 @@
  */
 public class Define extends Element
 {
-   private Map rotations = new HashMap();
-   private Map constants = new HashMap();
-   private Map positions = new HashMap();
-   public Define()
-   {
-      super("define");
-   }
-   public void addConstant(Constant constant)
-   {
-      addContent(constant);
-      constants.put(constant.getRefName(),constant);
-   }
-   public void addPosition(Position position)
-   {
-      addContent(position);
-      positions.put(position.getRefName(),position);
-   }
-   public void addRotation(Rotation rotation)
-   {
-      addContent(rotation);
-      rotations.put(rotation.getRefName(),rotation);
-   }
-   public Rotation getRotation(String name)
-   {
-      return (Rotation) rotations.get(name);
-   }
+    private Map rotations = new HashMap();
+    private Map constants = new HashMap();
+    private Map positions = new HashMap();
+    public Define()
+    {
+        super("define");
+    }
+    public void addConstant(Constant constant)
+    {
+        addContent(constant);
+        constants.put(constant.getRefName(),constant);
+    }
+    public void addPosition(Position position)
+    {
+        addContent(position);
+        positions.put(position.getRefName(),position);
+    }
+    public void addRotation(Rotation rotation)
+    {
+        addContent(rotation);
+        rotations.put(rotation.getRefName(),rotation);
+    }
+    public Rotation getRotation(String name)
+    {
+        return (Rotation) rotations.get(name);
+    }
+    public Constant getConstant(String name)
+    {
+        return (Constant) constants.get(name);
+    }
 }
CVSspam 0.2.8