Package ons.util

Class MultiWeightEdge

java.lang.Object
ons.util.MultiWeightEdge

public class MultiWeightEdge
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    MultiWeightEdge​(int id, int source, int destination, double weight)  
    MultiWeightEdge​(int id, int source, int destination, java.util.ArrayList<java.lang.Double> weights)  
  • Method Summary

    Modifier and Type Method Description
    void addWeight​(double weight)  
    int getDst()  
    int getId()  
    int getSrc()  
    double getWeight​(int index)  
    java.util.ArrayList<java.lang.Double> getWeights()  
    void removeWeight​(int index)  
    void setDst​(int dst)  
    void setId​(int id)  
    void setSrc​(int src)  
    void setWeight​(int index, double weight)  
    void setWeights​(java.util.ArrayList<java.lang.Double> weights)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultiWeightEdge

      public MultiWeightEdge​(int id, int source, int destination, java.util.ArrayList<java.lang.Double> weights)
    • MultiWeightEdge

      public MultiWeightEdge​(int id, int source, int destination, double weight)
  • Method Details

    • setDst

      public void setDst​(int dst)
    • setId

      public void setId​(int id)
    • setSrc

      public void setSrc​(int src)
    • setWeights

      public void setWeights​(java.util.ArrayList<java.lang.Double> weights)
    • setWeight

      public void setWeight​(int index, double weight)
    • getDst

      public int getDst()
    • getId

      public int getId()
    • getSrc

      public int getSrc()
    • getWeights

      public java.util.ArrayList<java.lang.Double> getWeights()
    • getWeight

      public double getWeight​(int index)
    • addWeight

      public void addWeight​(double weight)
    • removeWeight

      public void removeWeight​(int index)