View Javadoc

1   package org.lcsim.recon.tracking.trfbase;
2   /** NullInteractor does not modify the track when called.
3    *
4    * @author Norman A. Graf
5    * @version 1.0
6    */
7   public class NullInteractor extends Interactor
8   {
9       
10      // Static methods
11      
12      //
13      
14      /**
15       *Return the type name.
16       *
17       * @return String representation of this class type
18       *Included for completeness with C++ version
19       */
20      public static String typeName()
21      { return "NullInteractor"; }
22      
23      //
24      
25      /**
26       *Return the type.
27       *
28       * @return String representation of this class type
29       *Included for completeness with C++ version
30       */
31      public static String staticType()
32      { return typeName(); }
33      
34      // Non-static methods
35      
36      //
37      
38      /**
39       *Constructor
40       *
41       */
42      
43      public NullInteractor()
44      {
45      }
46      
47      //
48      
49      /**
50       *Return the generic type.
51       * This is only needed at this level.
52       *
53       * @return String representation of this class type
54       *Included for completeness with C++ version
55       */
56      public String genericType()
57      { return staticType(); }
58      
59      //
60      
61      /**
62       *Return the type.
63       *
64       * @return String representation of this class type
65       *Included for completeness with C++ version
66       */
67      public String type()
68      { return staticType(); }
69      
70      //
71      
72      /**
73       *Interact: modify the track vector and error matrix.
74       *
75       * @param   tre ETrack to interact
76       */
77      public void interact(ETrack tre)
78      {
79      }
80      
81      //
82      
83      /**
84       *Make a clone of this object.
85       *
86       * @return new copy of this Interactor
87       */
88      public Interactor newCopy()
89      {
90          return new NullInteractor();
91      }
92      
93      //
94      
95      /**
96       *output stream
97       *
98       * @return String representation of this class
99       */
100     public String toString()
101     {
102         String className = getClass().getName();
103         int lastDot = className.lastIndexOf('.');
104         if(lastDot!=-1)className = className.substring(lastDot+1);
105         
106         return className;
107     }
108     
109 }