public final class PathNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
bootstrap |
int |
i
Position in the original sequence.
|
int |
j
Position in the revised sequence.
|
PathNode |
prev
The previous node in the path.
|
boolean |
snake |
Constructor and Description |
---|
PathNode(int i,
int j,
boolean snake,
boolean bootstrap,
PathNode prev)
Concatenates a new path node with an existing diffpath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBootstrap()
Is this a bootstrap node?
|
boolean |
isSnake() |
PathNode |
previousSnake()
Skips sequences of
PathNodes until a snake or bootstrap node is found, or the end of the
path is reached. |
java.lang.String |
toString() |
public final int i
public final int j
public final PathNode prev
public final boolean snake
public final boolean bootstrap
public PathNode(int i, int j, boolean snake, boolean bootstrap, PathNode prev)
i
- The position in the original sequence for the new node.j
- The position in the revised sequence for the new node.prev
- The previous node in the path.public boolean isSnake()
public boolean isBootstrap()
In bottstrap nodes one of the two corrdinates is less than zero.
public final PathNode previousSnake()
PathNodes
until a snake or bootstrap node is found, or the end of the
path is reached.PathNode
or bootstrap node in the path, or null
if none found.public java.lang.String toString()
toString
in class java.lang.Object