Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: joelib/math/symmetry/SymStatistic.java


1   ///////////////////////////////////////////////////////////////////////////////
2   //  Filename: $RCSfile: SymStatistic.java,v $
3   //  Purpose:  Brute force symmetry analyzer.
4   //  Language: Java
5   //  Compiler: JDK 1.4
6   //  Authors:  Joerg K. Wegner
7   //  Original author: (C) 1996, 2003 S. Patchkovskii, Serguei.Patchkovskii@sympatico.ca
8   //  Version:  $Revision: 1.2 $
9   //            $Date: 2003/08/19 13:11:27 $
10  //            $Author: wegner $
11  //
12  //  Copyright (c) Dept. Computer Architecture, University of Tuebingen, Germany
13  //
14  //  This program is free software; you can redistribute it and/or modify
15  //  it under the terms of the GNU General Public License as published by
16  //  the Free Software Foundation; either version 2 of the License, or
17  //  (at your option) any later version.
18  //
19  //  This program is distributed in the hope that it will be useful,
20  //  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  //  GNU General Public License for more details.
23  //
24  //  You should have received a copy of the GNU General Public License
25  //  along with this program; if not, write to the Free Software
26  //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  ///////////////////////////////////////////////////////////////////////////////
28  package joelib.math.symmetry;
29  
30  
31  /*==========================================================================*
32   * IMPORTS
33   *========================================================================== */
34  /*==========================================================================*
35   * CLASS DECLARATION
36   *========================================================================== */
37  
38  /**
39   * SymStatistic.
40   *
41   * @author     Serguei Patchkovskii
42   * @author     wegnerj
43   * @license GPL
44   * @cvsversion    $Revision: 1.2 $, $Date: 2003/08/19 13:11:27 $
45   */
46  public class SymStatistic
47  {
48      //~ Instance fields ////////////////////////////////////////////////////////
49  
50      public long accepted;
51      public long earlyRemovedCandidates;
52      public long removedDuplicates;
53      public long removedInitialMating;
54      public long removedUnsuccOpt;
55      public long removedWrongTransOrder;
56  
57      //
58      //    Statistics
59      //
60      public long totalExaminedCandidates;
61  
62      //~ Constructors ///////////////////////////////////////////////////////////
63  
64      /*
65       * + totalExaminedCandidates
66                      + " candidates examined\n"
67                      + "  "
68                      + earlyRemovedCandidates
69                      + " removed early\n"
70                      + "  "
71                      + removedInitialMating
72                      + " removed during initial mating stage\n"
73                      + "  "
74                      + removedDuplicates
75                      + " removed as duplicates\n"
76                      + "  "
77                      + removedWrongTransOrder
78                      + " removed because of the wrong transformation order\n"
79                      + "  "
80                      + removedUnsuccOpt
81                      + " removed after unsuccessful optimization\n"
82                      + "  "
83                      + accepted
84                      + " accepted");
85       */
86      /*-------------------------------------------------------------------------*
87       * constructor
88       *------------------------------------------------------------------------- */
89  
90      /**
91       *  Constructor for the AtomIntInt object
92       *
93       */
94      public SymStatistic()
95      {
96      }
97  
98      //~ Methods ////////////////////////////////////////////////////////////////
99  
100     public void clear()
101     {
102         totalExaminedCandidates = 0;
103         earlyRemovedCandidates = 0;
104         removedInitialMating = 0;
105         removedDuplicates = 0;
106         removedWrongTransOrder = 0;
107         removedUnsuccOpt = 0;
108         accepted = 0;
109     }
110 }
111 ///////////////////////////////////////////////////////////////////////////////
112 //  END OF FILE.
113 ///////////////////////////////////////////////////////////////////////////////