public class ChemicalComponentDictionary
extends java.lang.Object
| Constructor | Description |
|---|---|
ChemicalComponentDictionary() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChemComp(ChemComp comp) |
add a new component to the dictionary
|
ChemComp |
getChemComp(java.lang.String id) |
|
ChemComp |
getParent(ChemComp c) |
Get the parent of a component.
|
ChemComp |
getReplaced(java.lang.String id) |
|
ChemComp |
getReplaced(ChemComp c) |
if ChemComp is replacing another one, get the old version
otherwise return the same ChemComp again.
|
ChemComp |
getReplacer(java.lang.String id) |
|
ChemComp |
getReplacer(ChemComp c) |
if ChemComp is replaced by another one, get the newer version
otherwise return the same ChemComp again.
|
boolean |
isReplaced(java.lang.String id) |
|
boolean |
isReplaced(ChemComp c) |
|
boolean |
isReplacer(java.lang.String id) |
|
boolean |
isReplacer(ChemComp c) |
public boolean isReplaced(ChemComp c)
public boolean isReplaced(java.lang.String id)
public boolean isReplacer(ChemComp c)
public boolean isReplacer(java.lang.String id)
public ChemComp getReplacer(ChemComp c)
c - public ChemComp getReplacer(java.lang.String id)
public ChemComp getReplaced(ChemComp c)
c - the ChemComp for which older versions should be looked up.public ChemComp getReplaced(java.lang.String id)
public ChemComp getParent(ChemComp c)
c - public void addChemComp(ChemComp comp)
comp - public ChemComp getChemComp(java.lang.String id)