public void setAtoms ( Atom [ ] atoms ) { Structure s = new StructureImpl ( ) ; Chain c = new ChainImpl ( ) ; c . setId ( "A" ) ; for ( Atom a : atoms ) { c . addGroup ( a . getGroup ( ) ) ; } s . addChain ( c ) ; setStructure ( s ) ; }
Create and set a new structure from a given atom array .