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
ConstructorsConstructorDescriptionRealSpaceData(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 TypeMethodDescriptionbooleandestroy()Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.Atom[]getActiveAtomArraygetAltMoleculesgetAltResiduesAtom[]getAtomArrayCrystal[]Getter for the fieldcrystal.doubleGetter for the fieldlambda.getMolecularAssembliesdouble[]getRealSpaceGradient(double[] gradient) Getter for the fieldrealSpaceGradient.Getter for the fieldrefinementData.getRefinementModeldoublegetWeightprintEnergyUpdateprintOptimizationHeaderprintOptimizationUpdatevoidsetCrystal(Crystal[] crystal) Setter for the fieldcrystal.voidsetLambda(double lambda) Set the current value of the state variable.voidsetRefinementData(RealSpaceRefinementData[] refinementData) Setter for the fieldrefinementData.voidsetWeight(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 molecularAssembliesobject, used as the atomic model for comparison against the dataproperties- system properties fileparallelTeam- aParallelTeamobject.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 molecularAssembliesobject, used as the atomic model for comparison against the dataproperties- system properties fileparallelTeam- aParallelTeamobject.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 molecularAssembliesobject, used as the atomic model for comparison against the dataproperties- system properties fileparallelTeam- aParallelTeamobject.
-
RealSpaceData
public RealSpaceData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, ParallelTeam parallelTeam, RealSpaceFile... datafile) Construct a real space data molecularAssemblies.- Parameters:
assembly-molecular molecularAssembliesobject, used as the atomic model for comparison against the dataproperties- system properties fileparallelTeam- aParallelTeamobject.datafile- one or moreRealSpaceFileto 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 molecularAssembliesobject array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties- system properties fileparallelTeam- aParallelTeamobject.dataFile- one or moreRealSpaceFileto 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:
getActiveAtomArrayin interfaceDataContainer- Returns:
- an array of
Atomobjects.
-
getAltMolecules
getAltMolecules- Specified by:
getAltMoleculesin interfaceDataContainer- Returns:
- a
Listobject.
-
getAltResidues
getAltResidues- Specified by:
getAltResiduesin interfaceDataContainer- Returns:
- a
Listobject.
-
getAtomArray
getAtomArray- Specified by:
getAtomArrayin interfaceDataContainer- Returns:
- an array of
Atomobjects.
-
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:
getMolecularAssembliesin interfaceDataContainer- Returns:
- an array of
MolecularAssemblyobjects.
-
getRealSpaceGradient
public double[] getRealSpaceGradient(double[] gradient) Getter for the fieldrealSpaceGradient.- Parameters:
gradient- the gradient array.- Returns:
- the real space gradient added to the input gradient array, or a new array if the gradient is null or too small.
-
getRefinementData
Getter for the fieldrefinementData.- Returns:
- the refinementData
-
setRefinementData
Setter for the fieldrefinementData.- Parameters:
refinementData- the refinementData to set
-
getRefinementModel
getRefinementModel- Specified by:
getRefinementModelin interfaceDataContainer- Returns:
- a
RefinementModelobject.
-
getWeight
public double getWeight()getWeight- Specified by:
getWeightin interfaceDataContainer- Returns:
- the current data weight.
-
setWeight
public void setWeight(double weight) setWeight- Specified by:
setWeightin interfaceDataContainer- Parameters:
weight- set the overall weight of the data.
-
printEnergyUpdate
printEnergyUpdate- Specified by:
printEnergyUpdatein interfaceDataContainer- Returns:
- a
Stringobject.
-
printOptimizationHeader
printOptimizationHeader- Specified by:
printOptimizationHeaderin interfaceDataContainer- Returns:
- a
Stringobject.
-
printOptimizationUpdate
printOptimizationUpdate- Specified by:
printOptimizationUpdatein interfaceDataContainer- Returns:
- a
Stringobject.
-