Package ffx.potential.terms
Class AngleTorsionPotentialEnergy
java.lang.Object
ffx.potential.terms.EnergyTerm
ffx.potential.terms.AngleTorsionPotentialEnergy
Angle-Torsion potential energy term using
AngleTorsion
instances.-
Field Summary
Fields inherited from class ffx.potential.terms.EnergyTerm
energy, forceGroup, name
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an AngleTorsionPotentialEnergy with the provided name.AngleTorsionPotentialEnergy
(String name, int forceGroup) Create an AngleTorsionPotentialEnergy with the provided name and force group.AngleTorsionPotentialEnergy
(String name, int forceGroup, List<AngleTorsion> angleTorsions) Create an AngleTorsionPotentialEnergy initialized with a list of terms and force group.AngleTorsionPotentialEnergy
(String name, Collection<AngleTorsion> angleTorsions) Create an AngleTorsionPotentialEnergy initialized with a collection of terms. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAngleTorsion
(AngleTorsion angleTorsion) Add an AngleTorsion to this term.boolean
addAngleTorsions
(AngleTorsion[] angleTorsions) Add an array of AngleTorsions to this term.boolean
addAngleTorsions
(List<AngleTorsion> angleTorsions) Add a list of AngleTorsions to this term.getAngleTorsion
(int index) Get the AngleTorsion at a given index.Get an array of AngleTorsions in this term.Get an unmodifiable view of the AngleTorsions in this term.Get an array of BondedTerms in this term.int
Get the number of AngleTorsions in this term.int
Get the number of BondedTerms in this term.void
log()
Log the details of Angle-Torsion interactions.boolean
removeAngleTorsion
(AngleTorsion angleTorsion) Remove an AngleTorsion from this term.Get a PDB-style REMARK representation of this energy term.toString()
Get a string representation of this energy term.Methods inherited from class ffx.potential.terms.EnergyTerm
addAndGetEnergy, addAndGetRMSD, getEnergy, getForceGroup, getName, getRMSD, getTime, setEnergy, setForceGroup, setName, setRMSD, startTime, stopTime
-
Constructor Details
-
AngleTorsionPotentialEnergy
Create an AngleTorsionPotentialEnergy with the provided name.- Parameters:
name
- Name for this term.
-
AngleTorsionPotentialEnergy
Create an AngleTorsionPotentialEnergy with the provided name and force group.- Parameters:
name
- Name for this term.forceGroup
- Integer force group identifier.
-
AngleTorsionPotentialEnergy
Create an AngleTorsionPotentialEnergy initialized with a list of terms and force group.- Parameters:
name
- Name for this term.forceGroup
- Force group identifier.angleTorsions
- List of AngleTorsion instances to add (null-safe).
-
AngleTorsionPotentialEnergy
Create an AngleTorsionPotentialEnergy initialized with a collection of terms.- Parameters:
name
- Name for this term (may be null).angleTorsions
- Collection of AngleTorsion instances to add (null-safe).
-
-
Method Details
-
getNumberOfTerms
public int getNumberOfTerms()Get the number of BondedTerms in this term.- Specified by:
getNumberOfTerms
in classEnergyTerm
- Returns:
- The number of BondedTerms.
-
getBondedTermsArray
Get an array of BondedTerms in this term.- Specified by:
getBondedTermsArray
in classEnergyTerm
- Returns:
- Array of BondedTerms.
-
addAngleTorsion
Add an AngleTorsion to this term.- Parameters:
angleTorsion
- AngleTorsion to add (ignored if null).- Returns:
- true if it was added.
-
addAngleTorsions
Add an array of AngleTorsions to this term.- Parameters:
angleTorsions
- Array of AngleTorsion instances to add.- Returns:
- true if they were added.
-
addAngleTorsions
Add a list of AngleTorsions to this term.- Parameters:
angleTorsions
- List of AngleTorsion instances to add.- Returns:
- true if they were added.
-
removeAngleTorsion
Remove an AngleTorsion from this term.- Parameters:
angleTorsion
- AngleTorsion to remove (ignored if null).- Returns:
- true if it was present and removed.
-
getAngleTorsion
Get the AngleTorsion at a given index.- Parameters:
index
- Index in the internal list.- Returns:
- AngleTorsion at the specified index.
- Throws:
IndexOutOfBoundsException
- if index is invalid.
-
getAngleTorsions
Get an unmodifiable view of the AngleTorsions in this term.- Returns:
- Unmodifiable List of AngleTorsions.
-
getAngleTorsionArray
Get an array of AngleTorsions in this term.- Returns:
- Array of AngleTorsions.
-
getNumberOfAngleTorsions
public int getNumberOfAngleTorsions()Get the number of AngleTorsions in this term.- Returns:
- The number of AngleTorsions.
-
log
public void log()Log the details of Angle-Torsion interactions.- Specified by:
log
in classEnergyTerm
-
toPDBString
Description copied from class:EnergyTerm
Get a PDB-style REMARK representation of this energy term.- Specified by:
toPDBString
in classEnergyTerm
- Returns:
- A PDB REMARK string for this energy term.
-
toString
Description copied from class:EnergyTerm
Get a string representation of this energy term.- Specified by:
toString
in classEnergyTerm
- Returns:
- A string representation of the energy term.
-