public class CutDescriptor extends Object
| Constructor and Description |
|---|
CutDescriptor() |
CutDescriptor(Set<CleavedMonosaccharide> cleavedMonosaccharidesSet,
Set<SEdge> cleavedEdges) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCleavedEdge(SEdge edge)
Add a cleaved edge to the CutDescriptor.
|
void |
addCleavedEdges(Set<SEdge> edges)
Add a set of cleaved edge to the CutDescriptor.
|
void |
addCleavedMonosaccharide(Monosaccharide monosaccharide,
CutIndexes cutIndexes)
Add a cleaved monosaccharide edge to the CutDescriptor.
|
void |
addCleavedMonosaccharides(Set<CleavedMonosaccharide> cleavedMonosaccharides)
Add a collection of cleaved monosaccharides edge to the CutDescriptor.
|
boolean |
contains(Monosaccharide monosaccharide)
Check if the CutDescriptor contains the specified monosaccharide.
|
boolean |
contains(SEdge edge)
Check if the CutDescriptor contains the specified edge.
|
boolean |
equals(Object o) |
Set<SEdge> |
getCleavedEdges()
Return a set of all the cleaved edges in the CutDescriptor.
|
Set<CleavedMonosaccharide> |
getCleavedMonosaccharides()
Return a set of all the cleaved monosaccharides in the CutDescriptor with their CutIndex.
|
Set<Monosaccharide> |
getCleavedNodes()
Return a set of all the cleaved monosaccharides in the CutDescriptor.
|
CutIndexes |
getCutIndexesForMonosaccharide(Monosaccharide monosaccharide)
Return the CutIndex related with the specified monosaccharide.
|
int |
getNumberOfCut()
Return the actual number of cuts in the CutDescriptor.
|
int |
hashCode() |
boolean |
isEmpty()
Return
true if the CutDescriptor is empty. |
public CutDescriptor()
public CutDescriptor(Set<CleavedMonosaccharide> cleavedMonosaccharidesSet, Set<SEdge> cleavedEdges)
public void addCleavedEdge(SEdge edge)
edge - cleaved edge.public void addCleavedEdges(Set<SEdge> edges)
edges - cleaved edge.public void addCleavedMonosaccharide(Monosaccharide monosaccharide, CutIndexes cutIndexes)
monosaccharide - cleaved monosaccharide.cutIndexes - type of cut for the monosaccharide.public void addCleavedMonosaccharides(Set<CleavedMonosaccharide> cleavedMonosaccharides)
cleavedMonosaccharides - a set of CleavedMonosaccharides.public boolean contains(Monosaccharide monosaccharide)
true if the monosaccharide is already present in the CutDescriptor.monosaccharide - a monosaccharidetrue if the monosaccharide is in the CutDescriptor.
false otherwisepublic boolean contains(SEdge edge)
true if the edge is already present in the CutDescriptor.edge - a edgetrue if the edge is in the CutDescriptor.
false otherwisepublic CutIndexes getCutIndexesForMonosaccharide(Monosaccharide monosaccharide)
monosaccharide - a monosaccharide.public boolean isEmpty()
true if the CutDescriptor is empty.true if the CutDescriptor is empty.
false otherwisepublic int getNumberOfCut()
public Set<Monosaccharide> getCleavedNodes()
public Set<CleavedMonosaccharide> getCleavedMonosaccharides()
public Set<SEdge> getCleavedEdges()
Copyright © 2016. All Rights Reserved.