public class PrioritisedVertex extends Object
The higher the priority value, the greater the priority.
Constructor and Description |
---|
PrioritisedVertex(ObjectMask object,
double payload,
double priority,
boolean considerForMerge)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getPriority() |
ObjectVertex |
getVertex() |
boolean |
isConsiderForMerge() |
public PrioritisedVertex(ObjectMask object, double payload, double priority, boolean considerForMerge)
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.public ObjectVertex getVertex()
public double getPriority()
public boolean isConsiderForMerge()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.