public abstract class PathNode
extends java.lang.Object
DiffNode
,
Snake
Modifier and Type | Field and Description |
---|---|
int |
i
Position in the original sequence.
|
int |
j
Position in the revised sequence.
|
PathNode |
prev
The previous node in the path.
|
Constructor and Description |
---|
PathNode(int i,
int j,
PathNode prev)
Concatenates a new path node with an existing diffpath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBootstrap()
Is this a bootstrap node?
|
abstract boolean |
isSnake()
Is this node a
Snake node ? |
PathNode |
previousSnake()
|
java.lang.String |
toString() |
public final int i
public final int j
public final PathNode prev
public PathNode(int i, int j, 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 abstract boolean isSnake()
Snake node
?Snake node
public boolean isBootstrap()
In bottstrap nodes one of the two corrdinates is less than zero.
public final PathNode previousSnake()
DiffNodes
until a
Snake
or bootstrap node is found, or the end
of the path is reached.Snake
or bootstrap node in the path, or
null
if none found.public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs