public class ChemicalComponentDictionary extends Object
Constructor and Description |
---|
ChemicalComponentDictionary() |
Modifier and Type | Method and Description |
---|---|
void |
addChemComp(ChemComp comp)
add a new component to the dictionary
|
ChemComp |
getChemComp(String id) |
ChemComp |
getParent(ChemComp c)
Get the parent of a component.
|
ChemComp |
getReplaced(ChemComp c)
if ChemComp is replacing another one, get the old version
otherwise return the same ChemComp again.
|
ChemComp |
getReplaced(String id) |
ChemComp |
getReplacer(ChemComp c)
if ChemComp is replaced by another one, get the newer version
otherwise return the same ChemComp again.
|
ChemComp |
getReplacer(String id) |
boolean |
isReplaced(ChemComp c) |
boolean |
isReplaced(String id) |
boolean |
isReplacer(ChemComp c) |
boolean |
isReplacer(String id) |
int |
size()
Returns the number of ChemComps in this dictionary
|
public ChemicalComponentDictionary()
public boolean isReplaced(ChemComp c)
public boolean isReplaced(String id)
public boolean isReplacer(ChemComp c)
public boolean isReplacer(String id)
public ChemComp getReplacer(ChemComp c)
c
- public ChemComp getReplacer(String id)
public ChemComp getReplaced(ChemComp c)
c
- the ChemComp for which older versions should be looked up.public ChemComp getReplaced(String id)
public ChemComp getParent(ChemComp c)
c
- public void addChemComp(ChemComp comp)
comp
- public int size()
public ChemComp getChemComp(String id)
Copyright © 2000–2019 BioJava. All rights reserved.