Class IREdge

    • Constructor Detail

    • Method Detail

      • setProperty

        public IREdge setProperty​(EdgeExecutionProperty<?> executionProperty)
        Set an executionProperty of the IREdge.
        Parameters:
        executionProperty - the execution property.
        Returns:
        the IREdge with the execution property set.
      • setPropertyPermanently

        public IREdge setPropertyPermanently​(EdgeExecutionProperty<?> executionProperty)
        Set an executionProperty of the IREdge, permanently.
        Parameters:
        executionProperty - the execution property.
        Returns:
        the IREdge with the execution property set.
      • getPropertyValue

        public <T extends SerializableOptional<T> getPropertyValue​(Class<? extends EdgeExecutionProperty<T>> executionPropertyKey)
        Get the executionProperty of the IREdge.
        Type Parameters:
        T - Type of the return value.
        Parameters:
        executionPropertyKey - key of the execution property.
        Returns:
        the execution property.
      • hasSameItineraryAs

        public Boolean hasSameItineraryAs​(IREdge edge)
        Parameters:
        edge - edge to compare.
        Returns:
        whether or not the edge has the same itinerary
      • copyExecutionPropertiesTo

        public void copyExecutionPropertiesTo​(IREdge thatEdge)
        Static function to copy executionProperties from an edge to the other.
        Parameters:
        thatEdge - the edge to copy executionProperties to.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getPropertiesAsJsonNode

        public com.fasterxml.jackson.databind.node.ObjectNode getPropertiesAsJsonNode()
        Overrides:
        getPropertiesAsJsonNode in class Edge<IRVertex>
        Returns:
        JSON representation of additional properties