Class TraversableEdge
java.lang.Object
ai.stapi.graph.attribute.AbstractAttributeContainer
ai.stapi.graph.traversableGraphElements.TraversableEdge
- All Implemented Interfaces:
AttributeContainer,TraversableGraphElement,Serializable,Comparable<TraversableEdge>
public class TraversableEdge
extends AbstractAttributeContainer
implements TraversableGraphElement, Comparable<TraversableEdge>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTraversableEdge(Node nodeFrom, String edgeType, Node nodeTo) TraversableEdge(UniqueIdentifier edgeId, TraversableNode nodeFrom, String edgeType, TraversableNode nodeTo, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) TraversableEdge(UniqueIdentifier edgeId, String edgeType, UniqueIdentifier nodeFromId, String nodeFromType, UniqueIdentifier nodeToId, String nodeToType, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TraversableEdge other) booleanstatic TraversableEdgefrom(Edge edge, NodeRepository nodeRepository) protected intgetId()protected intgetType()inthashCode()protected AttributeContainerwithNewAttributes(VersionedAttributeGroup newAttributes) Methods inherited from class ai.stapi.graph.attribute.AbstractAttributeContainer
containsAttribute, containsAttribute, getAttribute, getAttributeCount, getAttributeValue, getFlattenAttributes, getIdlessHashCode, getVersionedAttribute, getVersionedAttributeList, getVersionedAttributes, guessBestName, hasAttribute, mergeAttributesWithAttributesOfMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.stapi.graph.AttributeContainer
containsAttribute, containsAttribute, getAttribute, getAttributeValue, getVersionedAttribute, getVersionedAttributes, hasAttribute
-
Constructor Details
-
TraversableEdge
-
TraversableEdge
public TraversableEdge(UniqueIdentifier edgeId, TraversableNode nodeFrom, String edgeType, TraversableNode nodeTo, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) -
TraversableEdge
public TraversableEdge(UniqueIdentifier edgeId, String edgeType, UniqueIdentifier nodeFromId, String nodeFromType, UniqueIdentifier nodeToId, String nodeToType, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader)
-
-
Method Details
-
from
-
add
- Specified by:
addin interfaceAttributeContainer- Overrides:
addin classAbstractAttributeContainer
-
getId
- Specified by:
getIdin interfaceTraversableGraphElement
-
getType
- Specified by:
getTypein interfaceTraversableGraphElement
-
getNodeFromId
-
getNodeToId
-
getNodeFromType
-
getNodeToType
-
withNewAttributes
- Specified by:
withNewAttributesin classAbstractAttributeContainer
-
equals
- Overrides:
equalsin classAbstractAttributeContainer
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractAttributeContainer
-
getNodeFrom
-
getNodeTo
-
getHashCodeWithoutAttributes
protected int getHashCodeWithoutAttributes()- Specified by:
getHashCodeWithoutAttributesin classAbstractAttributeContainer
-
getIdlessHashCodeWithoutAttributes
protected int getIdlessHashCodeWithoutAttributes()- Specified by:
getIdlessHashCodeWithoutAttributesin classAbstractAttributeContainer
-
compareTo
- Specified by:
compareToin interfaceComparable<TraversableEdge>
-