Class Connection<T>

  • Direct Known Subclasses:
    AreaConnection

    public class Connection<T>
    extends Object
    A generic connection between two objects with a given relation and a weight.
    Author:
    burgetr
    • Constructor Detail

      • Connection

        public Connection​(T a1,
                          T a2,
                          Relation relation,
                          float weight)
        Creates a new connection.
        Parameters:
        a1 - The first connected object.
        a2 - The second connected object.
        relation - The relation.
        weight - The weight.
    • Method Detail

      • getA1

        public T getA1()
      • getA2

        public T getA2()
      • getRelation

        public Relation getRelation()
      • getWeight

        public float getWeight()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object