2323import org .biojava .nbio .structure .Atom ;
2424import org .biojava .nbio .structure .Structure ;
2525import org .biojava .nbio .structure .StructureException ;
26- import org .biojava .nbio .structure .StructureTools ;
2726import org .biojava .nbio .structure .align .gui .AlignmentCalculationRunnable ;
2827import org .biojava .nbio .structure .symmetry .internal .CESymmParameters ;
2928import org .biojava .nbio .structure .symmetry .internal .CeSymm ;
3029import org .biojava .nbio .structure .symmetry .internal .CeSymmResult ;
30+ import org .biojava .nbio .structure .symmetry .utils .SymmetryTools ;
3131import org .slf4j .Logger ;
3232import org .slf4j .LoggerFactory ;
3333
3434/**
35- * Calculates a symmetry analysis and displays the results.
36- * Linked to the SymmetryGUI.
37- * Does not generalize, uses CeSymm class directly to allow
38- * for the symmetry axis recovery.
35+ * Calculates a symmetry analysis and displays the results. Linked to the
36+ * SymmetryGUI. Does not generalize, uses CeSymm class directly to allow for the
37+ * symmetry axis recovery.
3938 *
4039 * @author Aleix Lafita
4140 * @since 4.2.0
4241 *
4342 */
4443public class SymmetryCalc implements AlignmentCalculationRunnable {
4544
46- private static final Logger logger =
47- LoggerFactory .getLogger (SymmetryCalc .class );
45+ private static final Logger logger = LoggerFactory
46+ .getLogger (SymmetryCalc .class );
4847
4948 boolean interrupted = false ;
5049
5150 private Structure structure ;
5251 private SymmetryGui parent ;
5352
54- /** Requests for a structure to analyze.
53+ /**
54+ * Requests for a structure to analyze.
5555 */
5656 public SymmetryCalc (SymmetryGui p , Structure s ) {
5757 parent = p ;
@@ -65,11 +65,12 @@ public void run() {
6565
6666 try {
6767
68- Atom [] atoms = StructureTools .getRepresentativeAtomArray (structure );
68+ Atom [] atoms = SymmetryTools .getRepresentativeAtoms (structure );
69+
6970 CeSymmResult result = CeSymm .analyze (atoms , params );
7071 SymmetryDisplay .display (result );
7172
72- } catch (StructureException e ){
73+ } catch (StructureException e ) {
7374 logger .warn (e .getMessage ());
7475 }
7576 parent .notifyCalcFinished ();
@@ -89,5 +90,6 @@ public void cleanup() {
8990 }
9091
9192 @ Override
92- public void setNrCPUs (int useNrCPUs ) {}
93+ public void setNrCPUs (int useNrCPUs ) {
94+ }
9395}
0 commit comments