Modifier and Type | Field and Description |
---|---|
private ImageConverter |
converter |
private int |
penalty |
private ImageRepresentation |
source |
private ImageRepresentation |
target |
Constructor and Description |
---|
ImageConversionEdge(ImageConverter converter,
Penalty penalty)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
getEnd()
Returns the end vertex of the edge.
|
ImageConverter |
getImageConverter()
Returns the wrapped ImageConverter.
|
int |
getPenalty()
Returns the penalty (or distance) for this edge.
|
Vertex |
getStart()
Returns the start vertex of the edge.
|
private ImageRepresentation source
private ImageRepresentation target
private ImageConverter converter
private int penalty
public ImageConversionEdge(ImageConverter converter, Penalty penalty)
converter
- the image converterpenalty
- the penalty for this edgepublic ImageConverter getImageConverter()
public int getPenalty()
getPenalty
in interface Edge
public Vertex getStart()