Package ffx.potential.terms
Class OutOfPlaneBendPotentialEnergy
java.lang.Object
ffx.potential.terms.EnergyTerm
ffx.potential.terms.OutOfPlaneBendPotentialEnergy
Out-of-Plane Bend potential energy term using
OutOfPlaneBend
instances.-
Field Summary
Fields inherited from class ffx.potential.terms.EnergyTerm
energy, forceGroup, name
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an OutOfPlaneBendPotentialEnergy with the provided name.OutOfPlaneBendPotentialEnergy
(String name, int forceGroup) Create an OutOfPlaneBendPotentialEnergy with the provided name and force group.OutOfPlaneBendPotentialEnergy
(String name, int forceGroup, List<OutOfPlaneBend> outOfPlaneBends) Create an OutOfPlaneBendPotentialEnergy initialized with a list of terms and force group.OutOfPlaneBendPotentialEnergy
(String name, Collection<OutOfPlaneBend> outOfPlaneBends) Create an OutOfPlaneBendPotentialEnergy initialized with a collection of terms. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addOutOfPlaneBend
(OutOfPlaneBend outOfPlaneBend) Add an OutOfPlaneBend to this term.boolean
addOutOfPlaneBends
(OutOfPlaneBend[] outOfPlaneBends) Add an array of OutOfPlaneBends to this term.boolean
addOutOfPlaneBends
(List<OutOfPlaneBend> outOfPlaneBends) Add a list of OutOfPlaneBends to this term.Get an array of BondedTerms in this term.int
Get the number of OutOfPlaneBends in this term.int
Get the number of BondedTerms in this term.getOutOfPlaneBend
(int index) Get the OutOfPlaneBend at a given index.Get an array of OutOfPlaneBends in this term.Get an unmodifiable view of the OutOfPlaneBends in this term.Get a string representation of the Out-of-Plane Bend energy expression.void
log()
Log the details of Out-of-Plane Bend interactions.boolean
removeOutOfPlaneBend
(OutOfPlaneBend outOfPlaneBend) Remove an OutOfPlaneBend 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
-
OutOfPlaneBendPotentialEnergy
Create an OutOfPlaneBendPotentialEnergy with the provided name.- Parameters:
name
- Name for this term.
-
OutOfPlaneBendPotentialEnergy
Create an OutOfPlaneBendPotentialEnergy with the provided name and force group.- Parameters:
name
- Name for this term.forceGroup
- Integer force group identifier.
-
OutOfPlaneBendPotentialEnergy
public OutOfPlaneBendPotentialEnergy(String name, int forceGroup, List<OutOfPlaneBend> outOfPlaneBends) Create an OutOfPlaneBendPotentialEnergy initialized with a list of terms and force group.- Parameters:
name
- Name for this term.forceGroup
- Force group identifier.outOfPlaneBends
- List of OutOfPlaneBend instances to add (null-safe).
-
OutOfPlaneBendPotentialEnergy
Create an OutOfPlaneBendPotentialEnergy initialized with a collection of terms.- Parameters:
name
- Name for this term (may be null).outOfPlaneBends
- Collection of OutOfPlaneBend 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.
-
addOutOfPlaneBend
Add an OutOfPlaneBend to this term.- Parameters:
outOfPlaneBend
- OutOfPlaneBend to add (ignored if null).- Returns:
- true if it was added.
-
addOutOfPlaneBends
Add an array of OutOfPlaneBends to this term.- Parameters:
outOfPlaneBends
- Array of OutOfPlaneBend instances to add.- Returns:
- true if they were added.
-
addOutOfPlaneBends
Add a list of OutOfPlaneBends to this term.- Parameters:
outOfPlaneBends
- List of OutOfPlaneBend instances to add.- Returns:
- true if they were added.
-
removeOutOfPlaneBend
Remove an OutOfPlaneBend from this term.- Parameters:
outOfPlaneBend
- OutOfPlaneBend to remove (ignored if null).- Returns:
- true if it was present and removed.
-
getOutOfPlaneBend
Get the OutOfPlaneBend at a given index.- Parameters:
index
- Index in the internal list.- Returns:
- OutOfPlaneBend at the specified index.
- Throws:
IndexOutOfBoundsException
- if index is invalid.
-
getOutOfPlaneBends
Get an unmodifiable view of the OutOfPlaneBends in this term.- Returns:
- Unmodifiable List of OutOfPlaneBends.
-
getOutOfPlaneBendArray
Get an array of OutOfPlaneBends in this term.- Returns:
- Array of OutOfPlaneBends.
-
getNumberOfOutOfPlaneBends
public int getNumberOfOutOfPlaneBends()Get the number of OutOfPlaneBends in this term.- Returns:
- The number of OutOfPlaneBends.
-
getOutOfPlaneEnergyString
Get a string representation of the Out-of-Plane Bend energy expression.- Returns:
- A formatted string representing the energy expression for Out-of-Plane Bends.
-
log
public void log()Log the details of Out-of-Plane Bend 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.
-