public class SourceNode extends AbstractNode
SourceSegments are defined by SourceNode
instances, and the combined lines resulting from the generalisation are not
yet in the source data, but represent parts of it.SourceSegment,
GeneralisedNodee, n| Constructor and Description |
|---|
SourceNode(double e,
double n,
long id)
Creates a new node with the position and id provided.
|
SourceNode(Node node)
Creates a new node as an exact copy of another node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeneralisedSection(GeneralisedSection section) |
void |
addMatch(NodeMatch match) |
void |
addSegment(SourceSegment segment) |
Set<SourceSegment> |
connectingSegments() |
Collection<GeneralisedSection> |
generalisedSections() |
long |
id()
A number identifying this node in some context.
|
Collection<NodeMatch> |
matches() |
public SourceNode(double e,
double n,
long id)
e - eastingn - northingid - A number identifying this node in some context (not
necessarily uniquely)public SourceNode(Node node)
SourceNode, but a
SourceNode is required.node - the node to by copiedpublic long id()
Nodepublic Set<SourceSegment> connectingSegments()
public void addSegment(SourceSegment segment)
public Collection<GeneralisedSection> generalisedSections()
public void addGeneralisedSection(GeneralisedSection section)
public Collection<NodeMatch> matches()
public void addMatch(NodeMatch match)