Class ImageConversionEdge

  • All Implemented Interfaces:
    Edge

    class ImageConversionEdge
    extends java.lang.Object
    implements Edge
    Represents an image conversion. The class basically wraps an ImageConverter so it can be used with Dijkstra's shortest route algorithm to build image conversion pipelines.
    • Constructor Detail

      • ImageConversionEdge

        public ImageConversionEdge​(ImageConverter converter,
                                   Penalty penalty)
        Main constructor.
        Parameters:
        converter - the image converter
        penalty - the penalty for this edge
    • Method Detail

      • getImageConverter

        public ImageConverter getImageConverter()
        Returns the wrapped ImageConverter.
        Returns:
        the ImageConverter
      • getPenalty

        public int getPenalty()
        Returns the penalty (or distance) for this edge.
        Specified by:
        getPenalty in interface Edge
        Returns:
        the penalty value (must be non-negative)
      • getStart

        public Vertex getStart()
        Returns the start vertex of the edge.
        Specified by:
        getStart in interface Edge
        Returns:
        the start vertex
      • getEnd

        public Vertex getEnd()
        Returns the end vertex of the edge.
        Specified by:
        getEnd in interface Edge
        Returns:
        the end vertex