cct.modelling
Class BackgroundMinimizer

java.lang.Object
  extended by cct.tools.SwingWorker
      extended by cct.modelling.BackgroundMinimizer
All Implemented Interfaces:
MinimizeProgressInterface

public class BackgroundMinimizer
extends SwingWorker
implements MinimizeProgressInterface

Title:

Description:

Copyright: Copyright (c) 2006

Company: ANU


Field Summary
(package private)  java.awt.Component component
           
(package private)  MinimizationProgressDialog dial
           
(package private)  int frequencyUpdate_for_variables
           
(package private)  java.lang.Object ID
           
(package private)  boolean minimizationCancelled
           
(package private)  MinimizeStructure mS
           
(package private)  java.awt.Frame parentFrame
           
(package private)  ParentInterface parentProcess
           
(package private)  Java3dUniverse visualizer
           
 
Constructor Summary
BackgroundMinimizer(java.lang.Object id, ParentInterface parent, MinimizeStructure ms)
           
 
Method Summary
 void cancelMinimization()
           
 java.lang.Object construct()
          Compute the value to be returned by the get method.
 MoleculeInterface getMolecule()
           
 int getVariablesFrequencyUpdate()
          Frequency for updating optimized variables
 boolean isMinimizationCancelled()
           
 void minimizationCompleted()
           
 void minimizationProgressed(java.lang.String _progress)
           
 void minimizationStarted(java.lang.String _started)
           
 void setVariablesFrequencyUpdate(int n)
           
 void setVisualizer(Java3dUniverse v)
           
 void updateVariables(int n, float[] x)
           
 
Methods inherited from class cct.tools.SwingWorker
finished, get, getValue, interrupt, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentProcess

ParentInterface parentProcess

mS

MinimizeStructure mS

ID

java.lang.Object ID

dial

MinimizationProgressDialog dial

component

java.awt.Component component

parentFrame

java.awt.Frame parentFrame

minimizationCancelled

boolean minimizationCancelled

frequencyUpdate_for_variables

int frequencyUpdate_for_variables

visualizer

Java3dUniverse visualizer
Constructor Detail

BackgroundMinimizer

public BackgroundMinimizer(java.lang.Object id,
                           ParentInterface parent,
                           MinimizeStructure ms)
Method Detail

construct

public java.lang.Object construct()
Description copied from class: SwingWorker
Compute the value to be returned by the get method.

Specified by:
construct in class SwingWorker

setVisualizer

public void setVisualizer(Java3dUniverse v)

getMolecule

public MoleculeInterface getMolecule()

cancelMinimization

public void cancelMinimization()

minimizationStarted

public void minimizationStarted(java.lang.String _started)
Specified by:
minimizationStarted in interface MinimizeProgressInterface

isMinimizationCancelled

public boolean isMinimizationCancelled()
Specified by:
isMinimizationCancelled in interface MinimizeProgressInterface

minimizationProgressed

public void minimizationProgressed(java.lang.String _progress)
Specified by:
minimizationProgressed in interface MinimizeProgressInterface

minimizationCompleted

public void minimizationCompleted()
Specified by:
minimizationCompleted in interface MinimizeProgressInterface

getVariablesFrequencyUpdate

public int getVariablesFrequencyUpdate()
Description copied from interface: MinimizeProgressInterface
Frequency for updating optimized variables

Specified by:
getVariablesFrequencyUpdate in interface MinimizeProgressInterface
Returns:
int

setVariablesFrequencyUpdate

public void setVariablesFrequencyUpdate(int n)
Specified by:
setVariablesFrequencyUpdate in interface MinimizeProgressInterface

updateVariables

public void updateVariables(int n,
                            float[] x)
Specified by:
updateVariables in interface MinimizeProgressInterface