Package edu.gsu.cs.dmlab.factory
Class GraphProblemFactory
- java.lang.Object
-
- edu.gsu.cs.dmlab.factory.GraphProblemFactory
-
- All Implemented Interfaces:
ITrackingGraphProblemFactory
public class GraphProblemFactory extends Object implements ITrackingGraphProblemFactory
This class is used create objects for solving the underlying minimum cost multi-commodity flow problem for ITrack association.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description GraphProblemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
getEdge(double weight)
Produces an edge for use in the Graph.ITrackingGraph
getGraph(ISTEdgeWeightCalculator weightCalculator)
Produces a new WeightedGraph that is thread safe.ITrackingGraphProblemSolver
getGraphSolver()
Produces a new IGraphProblemSolver for solving the ITrack association problem.
-
-
-
Method Detail
-
getGraphSolver
public ITrackingGraphProblemSolver getGraphSolver()
Description copied from interface:ITrackingGraphProblemFactory
Produces a new IGraphProblemSolver for solving the ITrack association problem.- Specified by:
getGraphSolver
in interfaceITrackingGraphProblemFactory
- Returns:
- The solver for the graph produced for the ITrack association problem.
-
getEdge
public Edge getEdge(double weight)
Description copied from interface:ITrackingGraphProblemFactory
Produces an edge for use in the Graph.- Specified by:
getEdge
in interfaceITrackingGraphProblemFactory
- Parameters:
weight
- Weight for the edge.- Returns:
- An edge with the passed in weight.
-
getGraph
public ITrackingGraph getGraph(ISTEdgeWeightCalculator weightCalculator)
Description copied from interface:ITrackingGraphProblemFactory
Produces a new WeightedGraph that is thread safe.- Specified by:
getGraph
in interfaceITrackingGraphProblemFactory
- Parameters:
weightCalculator
- The calculator for the weight of the edges that will be added to the graph.- Returns:
- A new WeightedGraph
-
-