Class BindingPairFactory<F extends Feature>

  • All Implemented Interfaces:
    org.jgrapht.EdgeFactory<F,​BindingPair<F>>

    public class BindingPairFactory<F extends Feature>
    extends Object
    implements org.jgrapht.EdgeFactory<F,​BindingPair<F>>
    A feature edge factory is an edge factory generating FeatureBindingPairs The factory can be instantiated with a specific MIComparator if it wants to override the comparison and hashcodes of features A and B
    Since:
    14/11/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • BindingPairFactory

        public BindingPairFactory()

        Constructor for BindingPairFactory.

      • BindingPairFactory

        public BindingPairFactory​(MIComparator<F> comparator)

        Constructor for BindingPairFactory.

        Parameters:
        comparator - a MIComparator object.
    • Method Detail

      • createEdge

        public BindingPair<F> createEdge​(F sourceVertex,
                                         F targetVertex)

        createEdge

        Specified by:
        createEdge in interface org.jgrapht.EdgeFactory<F extends Feature,​BindingPair<F extends Feature>>
        Parameters:
        sourceVertex - a F object.
        targetVertex - a F object.
        Returns:
        a BindingPair object.