Package ffx.potential.parameters
Class BioType
java.lang.Object
ffx.potential.parameters.BaseType
ffx.potential.parameters.BioType
- All Implemented Interfaces:
Comparator<String>
@FFXProperty(name="biotype",
clazz=java.lang.String.class,
propertyGroup=PotentialFunctionParameter,
description="[integer, name, quoted string and integer]\nProvides the values to define the correspondence between a single bio-polymer atom type and its force field atom type.\n")
public final class BioType
extends BaseType
implements Comparator<String>
The BioType class maps PDB identifiers to atom types.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
The PDB atom name for this BioType.int
The force field atom type to be used for the molecule / atom name combination.final String[]
Bonds are required to listed atom names.int
The index of this BioType.final String
The PDB molecule name for this BioType. -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
atomName
The PDB atom name for this BioType. -
moleculeName
The PDB molecule name for this BioType. -
bonds
Bonds are required to listed atom names. -
index
public int indexThe index of this BioType. -
atomType
public int atomTypeThe force field atom type to be used for the molecule / atom name combination.
-
-
Constructor Details
-
BioType
BioType Constructor.- Parameters:
index
- intatomName
- StringmoleculeName
- StringatomType
- intbonds
- an array ofString
objects.
-
-
Method Details
-
parse
Construct an BioType from an input string.- Parameters:
input
- The overall input String.tokens
- The input String tokenized.- Returns:
- an BioType instance.
-
compare
- Specified by:
compare
in interfaceComparator<String>
-
equals
- Specified by:
equals
in interfaceComparator<String>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode() -
toString
Basic toString method.
Nicely formatted biotype.
-