Class SandboxEdge
- java.lang.Object
-
- com.ensoftcorp.open.commons.sandbox.SandboxGraphElement
-
- com.ensoftcorp.open.commons.sandbox.SandboxEdge
-
public class SandboxEdge extends SandboxGraphElement
-
-
Constructor Summary
Constructors Constructor Description SandboxEdge(int sandboxInstanceID, com.ensoftcorp.atlas.core.db.graph.Edge edge, SandboxNode from, SandboxNode to)Constructs a mirrored sandbox edge of the given Atlas edgeSandboxEdge(int sandboxInstanceID, java.lang.String address, SandboxNode from, SandboxNode to)Constructs a new SandboxEdge directed from the "from" node to the "to" node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SandboxNodefrom()Returns the node this edge is directed fromSandboxNodegetNode(com.ensoftcorp.atlas.core.db.graph.GraphElement.EdgeDirection direction)Returns the node corresponding to the given directionSandboxNodeto()Returns the node this edge is directed tocom.ensoftcorp.atlas.core.db.graph.EdgetoAtlasEdge()-
Methods inherited from class com.ensoftcorp.open.commons.sandbox.SandboxGraphElement
attr, equals, flush, getAddress, getAttr, getSandboxInstanceID, hasAttr, hashCode, isMirror, putAttr, tag, taggedWith, tags, toAtlasGraphElement, toString
-
-
-
-
Constructor Detail
-
SandboxEdge
public SandboxEdge(int sandboxInstanceID, com.ensoftcorp.atlas.core.db.graph.Edge edge, SandboxNode from, SandboxNode to)Constructs a mirrored sandbox edge of the given Atlas edge- Parameters:
edge-
-
SandboxEdge
public SandboxEdge(int sandboxInstanceID, java.lang.String address, SandboxNode from, SandboxNode to)Constructs a new SandboxEdge directed from the "from" node to the "to" node- Parameters:
from-to-
-
-
Method Detail
-
from
public SandboxNode from()
Returns the node this edge is directed from- Returns:
-
to
public SandboxNode to()
Returns the node this edge is directed to- Returns:
-
getNode
public SandboxNode getNode(com.ensoftcorp.atlas.core.db.graph.GraphElement.EdgeDirection direction)
Returns the node corresponding to the given direction- Parameters:
direction-- Returns:
-
toAtlasEdge
public com.ensoftcorp.atlas.core.db.graph.Edge toAtlasEdge()
-
-