|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmeshi.energy.EnergyCreator
public abstract class EnergyCreator
Factory classes that generate energy terms. This is the carpet under which we hide all the boring details of what is needed for the creation of a given energy term. Each energy term requires a specific subclass. See meshi.energy.bond.BondCreator for a simple example.
| Field Summary | |
|---|---|
protected Key |
key
The keyword for the energy term. |
private static java.lang.String |
parametersDirectory
|
protected AbstractEnergy |
term
|
protected double |
weight
The weight of the energy term within the total energy function. |
protected boolean |
weightWasSet
|
| Constructor Summary | |
|---|---|
EnergyCreator(double weight)
Construct a somewhat degenerate creator object that cannot read commands from the commands list. |
|
EnergyCreator(Key key)
Constructs an energy creator object. |
|
EnergyCreator(Key key,
CommandList commands)
Constructs an energy creator object. |
|
| Method Summary | |
|---|---|
abstract AbstractEnergy |
createEnergyTerm(Protein protein,
DistanceMatrix distanceMatrix,
CommandList commands)
Where each sub class gets the chance to show what it knows. |
protected static void |
getParametersDirectory(CommandList commands)
|
void |
getWeight(CommandList commands)
Get the weight of the energy term. |
protected static java.lang.String |
parametersDirectory(CommandList commands)
Extract the path of the parameters directory from the commands list. |
AbstractEnergy |
term()
|
java.lang.String |
toString()
|
double |
weight()
The weight of the energy term. |
boolean |
weightWasSet()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double weight
protected AbstractEnergy term
protected Key key
protected boolean weightWasSet
private static java.lang.String parametersDirectory
| Constructor Detail |
|---|
public EnergyCreator(Key key)
public EnergyCreator(Key key,
CommandList commands)
public EnergyCreator(double weight)
| Method Detail |
|---|
public AbstractEnergy term()
public double weight()
protected static java.lang.String parametersDirectory(CommandList commands)
protected static void getParametersDirectory(CommandList commands)
public abstract AbstractEnergy createEnergyTerm(Protein protein,
DistanceMatrix distanceMatrix,
CommandList commands)
public void getWeight(CommandList commands)
public boolean weightWasSet()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||