protected abstract static class SaccharideGraph.AbstractBuilder<G extends SaccharideGraph> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SaccharideGraph.AbstractBuilder.BuildSate |
| Modifier and Type | Field and Description |
|---|---|
protected SaccharideGraph.AbstractBuilder.BuildSate |
buildSate |
protected G |
graph |
| Modifier | Constructor and Description |
|---|---|
protected |
SaccharideGraph.AbstractBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Monosaccharide |
add(Monosaccharide monosaccharide,
List<Monosaccharide> parents,
GlycosidicLinkage linkage)
Adda hyper edge from the list of parents to the monosaccharide.
|
Monosaccharide |
add(Monosaccharide monosaccharide,
Monosaccharide parent,
GlycosidicLinkage linkage)
Add a Monosaccharide to the Glycan.
|
Monosaccharide |
add(Monosaccharide monosaccharide,
Substituent substituent,
Monosaccharide parent,
GlycosidicLinkage glycoLinkage,
SubstituentLinkage substituentLinkage)
Add
monosaccharide and substituent to the Glycan being built. |
Substituent |
add(Substituent substituent,
List<Monosaccharide> parents,
SubstituentLinkage linkage)
Add a hyper edge from parents to substituent.
|
Substituent |
add(Substituent substituent,
Monosaccharide parent,
SubstituentLinkage linkage)
Adda substituent to parent
|
protected void |
checkIsBuilding() |
protected boolean |
checkMonosaccharidesPresence(List<Monosaccharide> monosaccharides)
Check for the presence of all cleaved monosaccharides inside the graph.
|
int |
getId(GlycanNode node)
Return the id of the
node |
GlycanNode |
getNode(int nodeId)
Return the
nodeId'th node that was added |
protected G extends SaccharideGraph graph
protected SaccharideGraph.AbstractBuilder.BuildSate buildSate
public Monosaccharide add(Monosaccharide monosaccharide, Monosaccharide parent, GlycosidicLinkage linkage)
monosaccharide is attached to the pattern via the
linkage. If the parent has not been added to this glycan an IllegalStateException is thrown.monosaccharide - the monosaccharide to addparent - Monosaccharide to which monosaccharide is to be addedlinkage - the linkagepublic Monosaccharide add(Monosaccharide monosaccharide, Substituent substituent, Monosaccharide parent, GlycosidicLinkage glycoLinkage, SubstituentLinkage substituentLinkage)
monosaccharide and substituent to the Glycan being built. The monosaccharide
is attached to the parent using the glycoLinkage and the substituent is attached
to the monosaccharide using the substituentLinkage.
This method addes two nodes and two edges to the Glycan being built.
substituent <-- substituentLinkage -- monosaccharide <-- glycoLinkage <-- parent
If the parent has not been added to this glycan an IllegalStateException is thrown.
monosaccharide - the Monosaccharide to addsubstituent - the monosaccharide's Substituentparent - the parent to which the monosaccharide is to be attachedglycoLinkage - the linkage between parent and monosaccharidesubstituentLinkage - the linkage between monosaccharide and substituentpublic Monosaccharide add(Monosaccharide monosaccharide, List<Monosaccharide> parents, GlycosidicLinkage linkage)
monosaccharide - the monosaccharide to addparents - the list of parentslinkage - the linkage between the parents and the monosaccharidepublic Substituent add(Substituent substituent, Monosaccharide parent, SubstituentLinkage linkage)
substituent - teh substituent to addparent - the parentlinkage - the linkage between parent and substituentpublic Substituent add(Substituent substituent, List<Monosaccharide> parents, SubstituentLinkage linkage)
substituent - the substituent to addparents - the list of parents to add the substituent tolinkage - the linkage between the parents and the substituentpublic GlycanNode getNode(int nodeId)
nodeId'th node that was addednodeId - the id of the nodenodeId'th node that was addedpublic int getId(GlycanNode node)
nodenode - the nodeprotected void checkIsBuilding()
protected boolean checkMonosaccharidesPresence(List<Monosaccharide> monosaccharides)
monosaccharides - list of monosaccharides.Copyright © 2016. All Rights Reserved.