Class BindingPairFactory<F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.analysis.graph.BindingPairFactory<F>
-
- 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 Summary
Constructors Constructor Description BindingPairFactory()
Constructor for BindingPairFactory.BindingPairFactory(MIComparator<F> comparator)
Constructor for BindingPairFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindingPair<F>
createEdge(F sourceVertex, F targetVertex)
createEdge
-
-
-
Constructor Detail
-
BindingPairFactory
public BindingPairFactory()
Constructor for BindingPairFactory.
-
BindingPairFactory
public BindingPairFactory(MIComparator<F> comparator)
Constructor for BindingPairFactory.
- Parameters:
comparator
- aMIComparator
object.
-
-
Method Detail
-
createEdge
public BindingPair<F> createEdge(F sourceVertex, F targetVertex)
createEdge
- Specified by:
createEdge
in interfaceorg.jgrapht.EdgeFactory<F extends Feature,BindingPair<F extends Feature>>
- Parameters:
sourceVertex
- a F object.targetVertex
- a F object.- Returns:
- a
BindingPair
object.
-
-