|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.biojava.bio.structure.StructureImpl
Implementation of a PDBStructure. This class provides the data contained in a PDB file.
| Constructor Summary | |
StructureImpl()
|
|
| Method Summary | |
void |
addChain(Chain chain)
add a new chain |
void |
addChain(Chain chain,
int modelnr)
add a new chain, if several models are available |
void |
addModel(ArrayList model)
add a new model |
Chain |
getChain(int number)
retrieve a chain by it's position within the Structure |
Chain |
getChain(int modelnr,
int number)
retrieve a chain by it's position within the Structure and model number |
ArrayList |
getChains(int modelnr)
retrieve all chains of a model |
ArrayList |
getConnections()
|
HashMap |
getHeader()
get Header data |
ArrayList |
getModel(int modelnr)
retrieve all Chains belonging to a model |
String |
getName()
get biological name of Structure |
String |
getPDBCode()
get PDB code of structure |
boolean |
isNmr()
is this structure an nmr strucutre ? |
int |
nrModels()
return number of models |
void |
setConnections(ArrayList conns)
CONECT data sets/gets an ArrayList of HashMaps which corresponds to the CONECT lines in the PDB file: |
void |
setHeader(HashMap h)
set the Header data |
void |
setName(String nam)
set biological name of Structure |
void |
setNmr(boolean nmr)
|
void |
setPDBCode(String pdb_id_)
set PDB code of structure |
int |
size()
return number of chains in this container |
int |
size(int modelnr)
return number of chains of of model |
String |
toPDB()
create a String that contains the contents of a PDB file |
String |
toString()
string representation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StructureImpl()
| Method Detail |
public void setPDBCode(String pdb_id_)
setPDBCode in interface Structurepublic String getPDBCode()
getPDBCode in interface Structurepublic void setName(String nam)
setName in interface Structurepublic String getName()
getName in interface Structurepublic void setHeader(HashMap h)
setHeader in interface Structurepublic HashMap getHeader()
getHeader in interface Structurepublic void setConnections(ArrayList conns)
Structure
COLUMNS DATA TYPE FIELD DEFINITION
---------------------------------------------------------------------------------
1 - 6 Record name "CONECT"
7 - 11 Integer serial Atom serial number
12 - 16 Integer serial Serial number of bonded atom
17 - 21 Integer serial Serial number of bonded atom
22 - 26 Integer serial Serial number of bonded atom
27 - 31 Integer serial Serial number of bonded atom
32 - 36 Integer serial Serial number of hydrogen bonded
atom
37 - 41 Integer serial Serial number of hydrogen bonded
atom
42 - 46 Integer serial Serial number of salt bridged
atom
47 - 51 Integer serial Serial number of hydrogen bonded
atom
52 - 56 Integer serial Serial number of hydrogen bonded
atom
57 - 61 Integer serial Serial number of salt bridged
atom
the HashMap for a single CONECT line contains the following fields:
setConnections in interface Structureinterfacepublic ArrayList getConnections()
getConnections in interface Structureinterfacepublic void addChain(Chain chain)
addChain in interface Structure
public void addChain(Chain chain,
int modelnr)
addChain in interface Structurepublic Chain getChain(int number)
getChain in interface Structure
public Chain getChain(int modelnr,
int number)
getChain in interface Structurepublic void addModel(ArrayList model)
addModel in interface Structurepublic String toString()
toString in interface Structurepublic int size()
size in interface Structurepublic int size(int modelnr)
size in interface Structurepublic int nrModels()
nrModels in interface Structurepublic boolean isNmr()
isNmr in interface Structurepublic void setNmr(boolean nmr)
setNmr in interface Structurepublic ArrayList getChains(int modelnr)
getChains in interface StructuregetModelpublic ArrayList getModel(int modelnr)
getModel in interface StructuregetChainspublic String toPDB()
toPDB in interface Structure
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||