Object
PrioritisedVertex

public class PrioritisedVertex extends Object
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 Details

    • PrioritisedVertex

      public PrioritisedVertex(ObjectMask object, double payload, double priority, boolean considerForMerge)
      Constructor
      Parameters:
      object - object to form the vertex
      payload - associated payload with the object in the vertex
      priority - 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

      public ObjectVertex getVertex()
    • getPriority

      public double getPriority()
    • isConsiderForMerge

      public boolean isConsiderForMerge()