Package ai.stapi.graph.graphelements
Class Edge
java.lang.Object
ai.stapi.graph.attribute.AbstractAttributeContainer
ai.stapi.graph.graphelements.AbstractGraphElement
ai.stapi.graph.graphelements.Edge
- All Implemented Interfaces:
AttributeContainer,GraphElement,Serializable
- See Also:
-
Field Summary
Fields inherited from class ai.stapi.graph.graphelements.AbstractGraphElement
id, type -
Constructor Summary
ConstructorsConstructorDescriptionEdge(Node nodeFrom, String edgeType, Node nodeTo, VersionedAttributeGroup attributeGroup) Edge(TraversableEdge traversableEdge) Edge(UniqueIdentifier edgeId, Node nodeFrom, String edgeType, Node nodeTo) Edge(UniqueIdentifier edgeId, Node nodeFrom, String edgeType, Node nodeTo, Attribute<?>... attributes) Edge(UniqueIdentifier edgeId, String edgeType, Node nodeFrom, Node nodeTo, VersionedAttributeGroup attributeGroup) Edge(UniqueIdentifier id, String type, VersionedAttributeGroup versionedAttributes, NodeIdAndType nodeFromIdAndType, NodeIdAndType nodeToIdAndType) Edge(UniqueIdentifier edgeId, String edgeType, UniqueIdentifier nodeFromId, UniqueIdentifier nodeToId, String nodeFromType, String nodeToType, VersionedAttributeGroup versionedAttributes) -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()protected intprotected intmergeOverwrite(Edge otherEdge) protected AttributeContainerwithNewAttributes(VersionedAttributeGroup newAttributes) Methods inherited from class ai.stapi.graph.graphelements.AbstractGraphElement
getId, getTypeMethods inherited from class ai.stapi.graph.attribute.AbstractAttributeContainer
containsAttribute, containsAttribute, equals, getAttribute, getAttributeCount, getAttributeValue, getFlattenAttributes, getIdlessHashCode, getVersionedAttribute, getVersionedAttributeList, getVersionedAttributes, guessBestName, hasAttribute, hashCode, mergeAttributesWithAttributesOf
-
Constructor Details
-
Edge
public Edge(UniqueIdentifier id, String type, VersionedAttributeGroup versionedAttributes, NodeIdAndType nodeFromIdAndType, NodeIdAndType nodeToIdAndType) -
Edge
-
Edge
public Edge(UniqueIdentifier edgeId, String edgeType, Node nodeFrom, Node nodeTo, VersionedAttributeGroup attributeGroup) -
Edge
public Edge(UniqueIdentifier edgeId, Node nodeFrom, String edgeType, Node nodeTo, Attribute<?>... attributes) -
Edge
-
Edge
-
Edge
-
Edge
-
Edge
public Edge(UniqueIdentifier edgeId, String edgeType, UniqueIdentifier nodeFromId, UniqueIdentifier nodeToId, String nodeFromType, String nodeToType, VersionedAttributeGroup versionedAttributes)
-
-
Method Details
-
getNodeFromId
-
getNodeToId
-
getNodeFromType
-
getNodeToType
-
withNewAttributes
- Specified by:
withNewAttributesin classAbstractAttributeContainer
-
add
- Specified by:
addin interfaceAttributeContainer- Overrides:
addin classAbstractAttributeContainer
-
getHashCodeWithoutAttributes
protected int getHashCodeWithoutAttributes()- Specified by:
getHashCodeWithoutAttributesin classAbstractAttributeContainer
-
getIdlessHashCodeWithoutAttributes
protected int getIdlessHashCodeWithoutAttributes()- Specified by:
getIdlessHashCodeWithoutAttributesin classAbstractAttributeContainer
-
getNodeFromIdAndType
-
getNodeToIdAndType
-
getCopy
-
mergeOverwrite
-