K
- the type of the source objects to link.J
- the type of the target objects to link.public class JaqamanLinker<K extends Comparable<K>,J extends Comparable<J>> extends BenchmarkAlgorithm implements OutputAlgorithm<Map<K,J>>
errorMessage, processingTime
Constructor and Description |
---|
JaqamanLinker(CostMatrixCreator<K,J> costMatrixCreator) |
JaqamanLinker(CostMatrixCreator<K,J> costMatrixCreator,
Logger logger)
Creates a new linker for the specified cost matrix creator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
Map<K,Double> |
getAssignmentCosts()
Returns the costs associated to the assignment results.
|
Map<K,J> |
getResult()
Returns the resulting assignments from this algorithm.
|
boolean |
process() |
String |
resultToString() |
getErrorMessage, getProcessingTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorMessage
public JaqamanLinker(CostMatrixCreator<K,J> costMatrixCreator, Logger logger)
costMatrixCreator
- the class in charge of creating linking costs.logger
- a logger that will receive progress messages.public JaqamanLinker(CostMatrixCreator<K,J> costMatrixCreator)
public Map<K,J> getResult()
It takes the shape of a map, such that if source
is a key of
the map, it is assigned to target = map.get(source)
.
getResult
in interface OutputAlgorithm<Map<K extends Comparable<K>,J extends Comparable<J>>>
getAssignmentCosts()
public Map<K,Double> getAssignmentCosts()
It takes the shape of a map, such that if source
is a key of
the map, its assignment as a cost cost = map.get(source)
.
getResult()
public boolean checkInput()
checkInput
in interface Algorithm
public String resultToString()
Copyright © 2015–2021 Fiji. All rights reserved.