public class SimpleConstituent extends Constituent
SimpleConstituent object defines a generic edge in a graph.
The SimpleConstituent records only the endpoints of the
Constituent, as two integers.
It doesn't label the edges.
(It doesn't implement equals() since this actually decreases
performance on a non-final class (requires dynamic resolution of which
to call).)| Constructor and Description |
|---|
SimpleConstituent()
Create an empty
SimpleConstituent object. |
SimpleConstituent(int start,
int end)
Create a
SimpleConstituent object with given values. |
| Modifier and Type | Method and Description |
|---|---|
ConstituentFactory |
constituentFactory()
Return a factory for this kind of constituent.
|
int |
end()
access end node.
|
static ConstituentFactory |
factory()
Return a factory for this kind of constituent.
|
LabelFactory |
labelFactory()
Return a factory for this kind of label.
|
void |
setEnd(int end)
set end node.
|
void |
setStart(int start)
set start node.
|
int |
start()
access start node.
|
public SimpleConstituent()
SimpleConstituent object.public SimpleConstituent(int start,
int end)
SimpleConstituent object with given values.start - start node of edgeend - end node of edgepublic int start()
start in class Constituentpublic void setStart(int start)
setStart in class Constituentpublic int end()
end in class Constituentpublic void setEnd(int end)
setEnd in class Constituentpublic LabelFactory labelFactory()
public ConstituentFactory constituentFactory()
public static ConstituentFactory factory()