Package org.biojava.nbio.structure
Class Model
- java.lang.Object
-
- org.biojava.nbio.structure.Model
-
- All Implemented Interfaces:
java.io.Serializable
public class Model extends java.lang.Object implements java.io.Serializable
An internal utility class for StructureImpl to make it easier to manage poly and nonpoly chains. Not to exposed to users through API. Created by andreas on 5/3/16.- Since:
- 5.0
- Author:
- Andreas Prlic
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Model()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChain(Chain c)
java.util.List<Chain>
getChains()
Get all chains: polymeric, non-polymeric and waterjava.util.List<Chain>
getNonPolyChains()
java.util.List<Chain>
getPolyChains()
java.util.List<Chain>
getWaterChains()
void
setChains(java.util.List<Chain> modelChains)
int
size()
Returns the total number of chains in this model: polymeric, non-polymeric and waterjava.lang.String
toString()
-
-
-
Method Detail
-
getPolyChains
public java.util.List<Chain> getPolyChains()
-
getNonPolyChains
public java.util.List<Chain> getNonPolyChains()
-
getWaterChains
public java.util.List<Chain> getWaterChains()
-
getChains
public java.util.List<Chain> getChains()
Get all chains: polymeric, non-polymeric and water- Returns:
-
setChains
public void setChains(java.util.List<Chain> modelChains)
-
addChain
public void addChain(Chain c)
-
size
public int size()
Returns the total number of chains in this model: polymeric, non-polymeric and water- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-