public class Operation extends Object
Constructor and Description |
---|
Operation(Node left,
Node right,
OperationType type,
AlignmentPath path)
This constructs an Operation within an AlignmentPath.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double[] |
getComparatorDistances()
Returns the local costs given by the Comparators specified for this
Alignment to align the left Node in this Operation with the right Node
(or deleting, inserting, skipping nodes respectively).
|
Node |
getLeft() |
AlignmentPath |
getPath() |
Node |
getRight() |
OperationType |
getType() |
double |
getWeightedLocalCost() |
int |
hashCode() |
void |
setComparatorDistances(double[] distances)
Sets the local costs given by the Comparators specified for this
Alignment to align the left Node in this Operation with the right Node
(or deleting, inserting, skipping nodes respectively).
|
String |
toString() |
public Operation(Node left, Node right, OperationType type, AlignmentPath path)
left
- The Node from the left input sequence that was used here or
null if this is a DELETION/SKIPDELETION operation.right
- The Node from the right input sequence that was used here or
null if this is an INSERTION/SKIPINSERTION operation.type
- The type of this Operation. Please refer to the OperationType
class for more information.path
- The AlignmentPath this Operation belongs to.public Node getLeft()
public Node getRight()
public AlignmentPath getPath()
public OperationType getType()
public double[] getComparatorDistances()
public double getWeightedLocalCost()
public void setComparatorDistances(double[] distances)
distances
- The local costs given by the Comparators specified for
this Alignment to align the left Node in this Operation with the right
Node (or deleting, inserting, skipping nodes respectively).Copyright (C) 2013, 2014 Benjamin Paaßen, Charlie Krüger, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs