Package org.biojava.nbio.structure
Class Model
- java.lang.Object
-
- org.biojava.nbio.structure.Model
-
- All Implemented Interfaces:
Serializable
public class Model extends Object implements 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)
List<Chain>
getChains()
Get all chains: polymeric, non-polymeric and waterList<Chain>
getNonPolyChains()
List<Chain>
getPolyChains()
List<Chain>
getWaterChains()
void
setChains(List<Chain> modelChains)
int
size()
Returns the total number of chains in this model: polymeric, non-polymeric and waterString
toString()
-
-
-
Constructor Detail
-
Model
public Model()
-
-
Method Detail
-
getPolyChains
public List<Chain> getPolyChains()
-
getNonPolyChains
public List<Chain> getNonPolyChains()
-
getWaterChains
public List<Chain> getWaterChains()
-
getChains
public List<Chain> getChains()
Get all chains: polymeric, non-polymeric and water- Returns:
-
size
public int size()
Returns the total number of chains in this model: polymeric, non-polymeric and water- Returns:
-
-