Class AssignPriority
Object
AssignPriority
- Direct Known Subclasses:
AssignPriorityFromImprovement,AssignPriorityFromPair
Abstract class for assigning priorities to potential object merges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPriority(ObjectVertex source, ObjectVertex destination, GraphLogger logger) Assigns a priority to a potential merge between two objects.protected abstract PrioritisedVertexassignPriorityToEdge(ObjectVertex source, ObjectVertex destination, ObjectMask merge, ErrorReporter errorReporter) Assigns a priority to an edge between two objects.
-
Constructor Details
-
AssignPriority
public AssignPriority()
-
-
Method Details
-
assignPriority
public PrioritisedVertex assignPriority(ObjectVertex source, ObjectVertex destination, GraphLogger logger) throws OperationFailedException Assigns a priority to a potential merge between two objects.- Parameters:
source- the source (first)ObjectVertexin the pair of objects that could be mergeddestination- the destination (second)ObjectVertexin the pair of objects that could be mergedlogger- theGraphLoggerfor logging merge operations- Returns:
- a
PrioritisedVertexwith an assigned priority - Throws:
OperationFailedException- if the priority assignment fails
-
assignPriorityToEdge
protected abstract PrioritisedVertex assignPriorityToEdge(ObjectVertex source, ObjectVertex destination, ObjectMask merge, ErrorReporter errorReporter) throws OperationFailedException Assigns a priority to an edge between two objects.- Parameters:
source- the sourceObjectVertexdestination- the destinationObjectVertexmerge- the mergedObjectMaskerrorReporter- theErrorReporterfor reporting errors- Returns:
- a
PrioritisedVertexwith an assigned priority - Throws:
OperationFailedException- if the priority assignment fails
-