Class AssemblyContextGraph.Vertex

    • Field Detail

      • subtable

        protected final java.lang.String subtable
    • Constructor Detail

      • Vertex

        protected Vertex​(AssemblyPatternBlock context,
                         java.lang.String subtable)
        Construct a new vertex with the given block and subtable name
        Parameters:
        context - the context
        subtable - the name
    • Method Detail

      • matches

        public boolean matches​(AssemblyContextGraph.Vertex that)
        Check if this and another vertex "agree" This doesn't mean they're equal, but that they share a subtable, and the defined bits of their context blocks agree.
        Parameters:
        that - the other vertex
        Returns:
        true iff they share subtables and defined bits
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object