public class EdgeFeatureCalculator extends MultiThreadedBenchmarkAlgorithm implements Cancelable
EdgeAnalyzer
s.processingTime
errorMessage, numThreads
Constructor and Description |
---|
EdgeFeatureCalculator(Model model,
Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String reason) |
boolean |
checkInput() |
void |
computeEdgesFeatures(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges,
boolean doLogIt)
Calculates all the edge features configured in the
Settings
object for the specified edges. |
String |
getCancelReason() |
boolean |
isCanceled() |
boolean |
process()
Calculates the edge features configured in the
Settings for all
the edges of this model. |
getProcessingTime
getErrorMessage, getNumThreads, setNumThreads, setNumThreads
public boolean checkInput()
checkInput
in interface Algorithm
public boolean process()
Settings
for all
the edges of this model.public void computeEdgesFeatures(Collection<org.jgrapht.graph.DefaultWeightedEdge> edges, boolean doLogIt)
Settings
object for the specified edges.edges
- the edges to compute.doLogIt
- if true
, the logger of the model will be notified
of the calculation.public boolean isCanceled()
isCanceled
in interface Cancelable
public void cancel(String reason)
cancel
in interface Cancelable
public String getCancelReason()
getCancelReason
in interface Cancelable
Copyright © 2015–2021 Fiji. All rights reserved.