Package ffx.realspace
Class RealSpaceData
java.lang.Object
ffx.realspace.RealSpaceData
- All Implemented Interfaces:
DataContainer
RealSpaceData class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Constructor Summary
ConstructorDescriptionRealSpaceData
(MolecularAssembly[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, RealSpaceFile... dataFile) Construct a real space data molecularAssemblies.RealSpaceData
(MolecularAssembly[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, DiffractionData diffractionData) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecularAssemblies.RealSpaceData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecular molecularAssemblies.RealSpaceData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, RealSpaceFile... datafile) Construct a real space data molecularAssemblies.RealSpaceData
(MolecularAssembly molecularAssembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, DiffractionData diffractionData) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecular molecularAssemblies. -
Method Summary
Modifier and TypeMethodDescriptionboolean
destroy()
Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.Atom[]
getActiveAtomArraygetAltMoleculesgetAltResiduesAtom[]
getAtomArrayCrystal[]
Getter for the fieldcrystal
.double
Getter for the fieldlambda
.getMolecularAssembliesdouble[]
getRealSpaceGradient
(double[] gradient) Getter for the fieldrealSpaceGradient
.Getter for the fieldrefinementData
.getRefinementModeldouble
getWeightprintEnergyUpdateprintOptimizationHeaderprintOptimizationUpdatevoid
setCrystal
(Crystal[] crystal) Setter for the fieldcrystal
.void
setLambda
(double lambda) Set the current value of the state variable.void
setRefinementData
(RealSpaceRefinementData[] refinementData) Setter for the fieldrefinementData
.void
setWeight
(double weight) setWeight
-
Constructor Details
-
RealSpaceData
public RealSpaceData(MolecularAssembly molecularAssembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, DiffractionData diffractionData) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecular molecularAssemblies.- Parameters:
molecularAssembly
-molecular molecularAssemblies
object, used as the atomic model for comparison against the dataproperties
- system properties fileparallelTeam
- aParallelTeam
object.diffractionData
-diffraction data
-
RealSpaceData
public RealSpaceData(MolecularAssembly[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, DiffractionData diffractionData) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecularAssemblies.- Parameters:
molecularAssemblies
-molecular molecularAssemblies
object, used as the atomic model for comparison against the dataproperties
- system properties fileparallelTeam
- aParallelTeam
object.diffractionData
-diffraction data
-
RealSpaceData
public RealSpaceData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam) Construct a real space data molecularAssemblies, assumes a real space map with a weight of 1.0 using the same name as the molecular molecularAssemblies.- Parameters:
assembly
-molecular molecularAssemblies
object, used as the atomic model for comparison against the dataproperties
- system properties fileparallelTeam
- aParallelTeam
object.
-
RealSpaceData
public RealSpaceData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, RealSpaceFile... datafile) Construct a real space data molecularAssemblies.- Parameters:
assembly
-molecular molecularAssemblies
object, used as the atomic model for comparison against the dataproperties
- system properties fileparallelTeam
- aParallelTeam
object.datafile
- one or moreRealSpaceFile
to be refined against
-
RealSpaceData
public RealSpaceData(MolecularAssembly[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, RealSpaceFile... dataFile) Construct a real space data molecularAssemblies.- Parameters:
molecularAssemblies
-molecular molecularAssemblies
object array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties
- system properties fileparallelTeam
- aParallelTeam
object.dataFile
- one or moreRealSpaceFile
to be refined against
-
-
Method Details
-
destroy
public boolean destroy()Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.- Returns:
- If assets successfully freed.
-
getActiveAtomArray
getActiveAtomArray- Specified by:
getActiveAtomArray
in interfaceDataContainer
- Returns:
- an array of
Atom
objects.
-
getAltMolecules
getAltMolecules- Specified by:
getAltMolecules
in interfaceDataContainer
- Returns:
- a
List
object.
-
getAltResidues
getAltResidues- Specified by:
getAltResidues
in interfaceDataContainer
- Returns:
- a
List
object.
-
getAtomArray
getAtomArray- Specified by:
getAtomArray
in interfaceDataContainer
- Returns:
- an array of
Atom
objects.
-
getCrystal
Getter for the fieldcrystal
.- Returns:
- the crystal
-
setCrystal
Setter for the fieldcrystal
.- Parameters:
crystal
- the crystal to set
-
getLambda
public double getLambda()Getter for the fieldlambda
.- Returns:
- the lambda
-
setLambda
public void setLambda(double lambda) Set the current value of the state variable.- Parameters:
lambda
- a double.
-
getMolecularAssemblies
getMolecularAssemblies- Specified by:
getMolecularAssemblies
in interfaceDataContainer
- Returns:
- an array of
MolecularAssembly
objects.
-
getRealSpaceGradient
public double[] getRealSpaceGradient(double[] gradient) Getter for the fieldrealSpaceGradient
.- Parameters:
gradient
- an array ofinvalid reference
double
- Returns:
- an array of
invalid reference
double
-
getRefinementData
Getter for the fieldrefinementData
.- Returns:
- the refinementData
-
setRefinementData
Setter for the fieldrefinementData
.- Parameters:
refinementData
- the refinementData to set
-
getRefinementModel
getRefinementModel- Specified by:
getRefinementModel
in interfaceDataContainer
- Returns:
- a
RefinementModel
object.
-
getWeight
public double getWeight()getWeight- Specified by:
getWeight
in interfaceDataContainer
- Returns:
- the current data weight.
-
setWeight
public void setWeight(double weight) setWeight- Specified by:
setWeight
in interfaceDataContainer
- Parameters:
weight
- set the overall weight of the data.
-
printEnergyUpdate
printEnergyUpdate- Specified by:
printEnergyUpdate
in interfaceDataContainer
- Returns:
- a
String
object.
-
printOptimizationHeader
printOptimizationHeader- Specified by:
printOptimizationHeader
in interfaceDataContainer
- Returns:
- a
String
object.
-
printOptimizationUpdate
printOptimizationUpdate- Specified by:
printOptimizationUpdate
in interfaceDataContainer
- Returns:
- a
String
object.
-