ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/staticProps/RadialDistrFunc.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/staticProps/RadialDistrFunc.hpp (file contents):
Revision 1993 by tim, Thu Feb 10 14:15:52 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 46 | Line 46 | namespace oopse {
46  
47   #include "selection/SelectionEvaluator.hpp"
48   #include "selection/SelectionManager.hpp"
49 + #include "utils/NumericConstant.hpp"
50   namespace oopse {
51  
52 < /**
53 < * @class RadialDistrFunc
54 < * @brief Radial Distribution Function
55 < */
56 < class RadialDistrFunc {
57 <    public:
58 <        RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2. double len);
52 >  /**
53 >   * @class RadialDistrFunc
54 >   * @brief Radial Distribution Function
55 >   */
56 >  class RadialDistrFunc {
57 >  public:
58 >    RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2);
59  
60 <        void process();        
60 >    virtual ~RadialDistrFunc() {}
61 >        
62 >    void process();        
63  
64 <        void setNBins(int nbins) {
65 <            assert(nbins > 0);
66 <            nbins_ = nbins;
64 <            deltaR_ = len_ / nbins_;
65 <        }
64 >    void setOutputName(const std::string& filename) {
65 >      outputFilename_ = filename;
66 >    }
67  
68 <        int getNBins() {
69 <            return nbins_;
70 <        }
68 >    const std::string& getOutputFileName() const {
69 >      return outputFilename_;
70 >    }
71 >
72 >    void setStep(int step) {
73 >      assert(step > 0);
74 >      step_ =step;    
75 >    }
76          
77 <        void setOutputName(const std::string& filename) {
72 <            outputFilename_ = filename;
73 <        }
77 >  protected:
78  
79 <        const std::string& getOutputFileName() const {
80 <            return outputFilename_;
77 <        }
79 >    virtual void preProcess() {}
80 >    virtual void postProcess() {}
81  
82 <        void setStep(int step) {
80 <            assert(step > 0);
81 <            step_ =step;    
82 <        }
82 >    int getNPairs() { return nPairs_;}
83          
84 <    protected:
84 >    SimInfo* info_;
85 >    Snapshot* currentSnapshot_;
86  
87 <        virtual void preProcess() {}
88 <        virtual void postProcess() {}
87 >    std::string dumpFilename_;
88 >    std::string outputFilename_;
89 >    int step_;
90 >    std::string selectionScript1_;
91 >    std::string selectionScript2_;
92 >    int nProcessed_;
93 >    SelectionManager seleMan1_;
94 >    SelectionManager seleMan2_;
95 >        
96 >  private:
97  
98 <        SimInfo* info_;
99 <        Snapshot* currentSnapshot_;
100 <        double len_;
101 <        int nbins_;
102 <        double deltaR_;
94 <        std::string dumpFilename_;
95 <        std::string outputFilename_;
96 <        int step_;
97 <        std::string selectionScript1_;
98 <        std::string selectionScript2_;
99 <        int nProcessed_;
100 <    private:
98 >    virtual void initalizeHistogram() {}
99 >    virtual void collectHistogram(StuntDouble* sd1, StuntDouble* sd2) =0;
100 >    virtual void processHistogram() {}
101 >    void processNonOverlapping(SelectionManager& sman1, SelectionManager& sman2);
102 >    void processOverlapping(SelectionManager& sman);
103  
104 <        virtual void initalizeHistogram() {}
105 <        virtual void collectHistogram(StuntDouble* sd1, StuntDouble* sd2) =0;
106 <        virtual void processHistogram() = 0;
104 >    virtual void validateSelection1(SelectionManager& sman) {}
105 >    virtual void validateSelection2(SelectionManager& sman) {}
106 >    virtual void writeRdf() = 0;
107  
106        virtual void writeRdf() = 0;
107
108          
109 <        SelectionEvaluator evaluator1_;
110 <        SelectionEvaluator evaluator2_;
111 <        SelectionManager seleMan1_;
112 <        SelectionManager seleMan2_;
113 <        
114 < };
109 >    SelectionEvaluator evaluator1_;
110 >    SelectionEvaluator evaluator2_;
111  
112 +    SelectionManager sele1_minus_common_;
113 +    SelectionManager sele2_minus_common_;
114 +    SelectionManager common_;        
115 +    int nPairs_;
116 +  };
117  
118 +
119   }
120   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines