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(ai.stapi.identity.UniqueIdentifier edgeId, TraversableNode nodeFrom, String edgeType, TraversableNode nodeTo, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) TraversableEdge(ai.stapi.identity.UniqueIdentifier edgeId, String edgeType, ai.stapi.identity.UniqueIdentifier nodeFromId, String nodeFromType, ai.stapi.identity.UniqueIdentifier nodeToId, String nodeToType, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TraversableEdge other) booleanstatic TraversableEdgefrom(Edge edge, NodeRepository nodeRepository) protected intai.stapi.identity.UniqueIdentifiergetId()protected intai.stapi.identity.UniqueIdentifierai.stapi.identity.UniqueIdentifiergetType()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(ai.stapi.identity.UniqueIdentifier edgeId, TraversableNode nodeFrom, String edgeType, TraversableNode nodeTo, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader) -
TraversableEdge
public TraversableEdge(ai.stapi.identity.UniqueIdentifier edgeId, String edgeType, ai.stapi.identity.UniqueIdentifier nodeFromId, String nodeFromType, ai.stapi.identity.UniqueIdentifier nodeToId, String nodeToType, VersionedAttributeGroup attributeGroup, NodeLoader nodeLoader)
-
-
Method Details
-
from
-
add
- Specified by:
addin interfaceAttributeContainer- Overrides:
addin classAbstractAttributeContainer
-
getId
public ai.stapi.identity.UniqueIdentifier getId()- Specified by:
getIdin interfaceTraversableGraphElement
-
getType
- Specified by:
getTypein interfaceTraversableGraphElement
-
getNodeFromId
public ai.stapi.identity.UniqueIdentifier getNodeFromId() -
getNodeToId
public ai.stapi.identity.UniqueIdentifier 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>
-