T
- The type of solver that is constructed.public abstract class SolverFactory<T>
extends java.lang.Object
Building a factory of this type also means to set up a context in which the following solver are build in e.g. a common ground distance and if needed a tolerance for being optimal. Furthermore, common data as a value for additional information to the solver building process is abstracted.
Modifier and Type | Field and Description |
---|---|
protected int |
additionalInfo
Some additional data for the initialization
|
protected DistanceMatrix |
groundDist
Ground distance that will be used to compute costs
|
Constructor and Description |
---|
SolverFactory(DistanceMatrix groundDist)
Constructor in case that the solver does not
|
SolverFactory(DistanceMatrix groundDist,
double tol) |
SolverFactory(DistanceMatrix groundDist,
double tol,
int additionalInfo)
This constructor is used by IPM.
|
SolverFactory(DistanceMatrix groundDist,
int additionalInfo) |
Modifier and Type | Method and Description |
---|---|
int |
getAdditionalInfo() |
DistanceMatrix |
getGroundDist() |
abstract T |
getSolver() |
double |
getTol() |
void |
setAdditionalInfo(int additionalInfo)
Set the additional information.
|
abstract void |
setupNewSolver(StochasticLanguage s1,
StochasticLanguage s2,
org.processmining.framework.plugin.ProMCanceller canceller)
Sets up a new solver of the given type.
|
protected int additionalInfo
protected DistanceMatrix groundDist
public SolverFactory(DistanceMatrix groundDist)
groundDist
- public SolverFactory(DistanceMatrix groundDist, double tol)
groundDist
- tol
- public SolverFactory(DistanceMatrix groundDist, int additionalInfo)
groundDist
- additionalInfo
- public SolverFactory(DistanceMatrix groundDist, double tol, int additionalInfo)
additionalInfo
- groundDist
- tol
- public abstract void setupNewSolver(StochasticLanguage s1, StochasticLanguage s2, org.processmining.framework.plugin.ProMCanceller canceller)
s1
- StochasticLanguage "from"s2
- StochasticLanguage "to"costs
- Cost matrixdeltaBound
- "DeltaBound" needed for IM initializationpublic abstract T getSolver()
public DistanceMatrix getGroundDist()
public double getTol()
public int getAdditionalInfo()
public void setAdditionalInfo(int additionalInfo)
additionalInfo
- The additional information value to store