public void addChemComp ( ChemComp comp ) { dictionary . put ( comp . getId ( ) , comp ) ; String rep = comp . getPdbx_replaces ( ) ; if ( ( rep != null ) && ( ! rep . equals ( "?" ) ) ) { replaces . put ( comp . getId ( ) , rep ) ; } String isrep = comp . getPdbx_replaced_by ( ) ; if ( ( isrep != null ) && ( ! isrep . equals ( "?" ) ) ) { isreplacedby . put ( comp . getId ( ) , isrep ) ; } }
add a new component to the dictionary