Class PrioritisedVertex
Object
PrioritisedVertex
A vertex with a priority attached, and a boolean flag as to whether it can be merged or not
The higher the priority value, the greater the priority.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionPrioritisedVertex
(ObjectMask object, double payload, double priority, boolean considerForMerge) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondouble
boolean
-
Constructor Details
-
PrioritisedVertex
public PrioritisedVertex(ObjectMask object, double payload, double priority, boolean considerForMerge) Constructor- Parameters:
object
- object to form the vertexpayload
- associated payload with the object in the vertexpriority
- a priority to determine the order of merges (higher value implies greater priority)considerForMerge
- iff false, these two objects object may not be merged, and priority is irrelevant.
-
-
Method Details
-
getVertex
-
getPriority
public double getPriority() -
isConsiderForMerge
public boolean isConsiderForMerge()
-