Class RepastEdge<T>

java.lang.Object
repast.simphony.space.graph.RepastEdge<T>
Direct Known Subclasses:
Link, TrackingEdge

public class RepastEdge<T> extends Object
  • Field Details

    • source

      protected T source
    • target

      protected T target
    • directed

      protected boolean directed
  • Constructor Details

    • RepastEdge

      protected RepastEdge()
    • RepastEdge

      public RepastEdge(T source, T target, boolean directed)
    • RepastEdge

      public RepastEdge(T source, T target, boolean directed, double weight)
  • Method Details

    • getWeight

      public double getWeight()
      Gets the weight of this edge.
      Returns:
      the weight of this edge.
    • setDirected

      protected void setDirected(boolean directed)
    • getSource

      public T getSource()
      Get the source of this edge.
      Returns:
      the source of this edge.
    • getTarget

      public T getTarget()
      Gets the target of this edge.
      Returns:
      the target of this edge.
    • isDirected

      public boolean isDirected()
      Returns:
      true if this edge is directed, otherwise false.
    • setWeight

      public void setWeight(double weight)
      Sets the weight of this edge.
      Parameters:
      weight - the weight edge