Package graph

Klasse EdgeWeightMarking


public class EdgeWeightMarking extends EdgeMarking
Class representing a specific type of edge marking: edge weight. Inherits from EdgeMarking.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private int
    The weight value associated with this edge marking.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    EdgeWeightMarking(int weight)
    Constructor to initialize the EdgeWeightMarking with a specified weight.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Retrieves the weight value of this edge marking.
    void
    setWeight(int weight)
    Sets the weight value of this edge marking.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • weight

      private int weight
      The weight value associated with this edge marking.
  • Konstruktordetails

    • EdgeWeightMarking

      public EdgeWeightMarking(int weight)
      Constructor to initialize the EdgeWeightMarking with a specified weight.
      Parameter:
      weight - The weight value to set.
  • Methodendetails

    • setWeight

      public void setWeight(int weight)
      Sets the weight value of this edge marking.
      Parameter:
      weight - The weight value to set.
    • getWeight

      public int getWeight()
      Retrieves the weight value of this edge marking.
      Gibt zurück:
      The weight value of this edge marking.