Print

Print


Commit in lcsim-contrib/src/main/java/org/lcsim/contrib/onoprien/crux/infrastructure on MAIN
CruxTrackNode.java+19-41.1.1.1 -> 1.2
ITrackNode.java+6-51.1.1.1 -> 1.2
+25-9
2 modified files
Support for associating track node with an anchor

lcsim-contrib/src/main/java/org/lcsim/contrib/onoprien/crux/infrastructure
CruxTrackNode.java 1.1.1.1 -> 1.2
diff -u -r1.1.1.1 -r1.2
--- CruxTrackNode.java	10 Dec 2008 22:03:06 -0000	1.1.1.1
+++ CruxTrackNode.java	27 Feb 2009 18:03:58 -0000	1.2
@@ -6,7 +6,7 @@
  * Basic implementation of {@link ITtrackNode}.
  *
  * @author D. Onoprienko
- * @version $Id: CruxTrackNode.java,v 1.1.1.1 2008/12/10 22:03:06 jeremy Exp $
+ * @version $Id: CruxTrackNode.java,v 1.2 2009/02/27 18:03:58 onoprien Exp $
  */
 public class CruxTrackNode implements ITrackNode {
   
@@ -15,7 +15,13 @@
   public CruxTrackNode(Helix helix) {
     _helix = helix;
   }
-  
+
+  public CruxTrackNode(Helix helix, ITrackAnchor anchor) {
+    _helix = helix;
+    _anchor = anchor;
+  }
+
+
 // -- Implementing ITrackNode :  -----------------------------------------------
   
   /**
@@ -25,9 +31,18 @@
   public Helix getTrajectory() {
     return _helix;
   }
-  
+
+  /**
+   * Returns an anchor associated with this node, if any.
+   * Returns <tt>null</tt> if this node is not associated with any anchors.
+   */
+  public ITrackAnchor getAnchor() {
+    return _anchor;
+  }
+
+
 // -- Private parts :  ---------------------------------------------------------
   
   private Helix _helix;
-  
+  private ITrackAnchor _anchor;
 }

lcsim-contrib/src/main/java/org/lcsim/contrib/onoprien/crux/infrastructure
ITrackNode.java 1.1.1.1 -> 1.2
diff -u -r1.1.1.1 -r1.2
--- ITrackNode.java	10 Dec 2008 22:03:06 -0000	1.1.1.1
+++ ITrackNode.java	27 Feb 2009 18:03:58 -0000	1.2
@@ -6,7 +6,7 @@
  * Pivot point on a track.
  *
  * @author D. Onoprienko
- * @version $Id: ITrackNode.java,v 1.1.1.1 2008/12/10 22:03:06 jeremy Exp $
+ * @version $Id: ITrackNode.java,v 1.2 2009/02/27 18:03:58 onoprien Exp $
  */
 public interface ITrackNode {
   
@@ -16,9 +16,10 @@
    */
   Helix getTrajectory();
   
-//  /**
-//   * Returns track momentum amplitude at the node.
-//   */
-//  double getP();
+  /**
+   * Returns an anchor associated with this node, if any.
+   * Returns <tt>null</tt> if this node is not associated with any anchors.
+   */
+  ITrackAnchor getAnchor();
   
 }
CVSspam 0.2.8