Class Edge
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.aws.awsprototypingsdk.cdkgraph.BaseEntity
-
- software.aws.awsprototypingsdk.cdkgraph.Edge
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,ISerializableEdge,ISerializableEntity
- Direct Known Subclasses:
Dependency,Reference
@Generated(value="jsii-pacmak/1.82.0 (build 2d2ddd7)", date="2023-08-24T23:07:44.326Z") @Stability(Experimental) public class Edge extends BaseEntity implements ISerializableEdge
(experimental) Edge class defines a link (relationship) between nodes, as in standard graph theory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.aws.awsprototypingsdk.cdkgraph.ISerializableEdge
ISerializableEdge.Jsii$Default, ISerializableEdge.Jsii$Proxy
-
Nested classes/interfaces inherited from interface software.aws.awsprototypingsdk.cdkgraph.ISerializableEntity
ISerializableEntity.Jsii$Default
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEdge(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedEdge(software.amazon.jsii.JsiiObjectRef objRef)Edge(IEdgeProps props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<Edge>findAllInChain(List<? extends Object> chain, IEdgePredicate predicate)(experimental) Find all matching edges based on predicate within an EdgeChain.static EdgefindInChain(List<? extends Object> chain, IEdgePredicate predicate)(experimental) Find first edge matching predicate within an EdgeChain.BooleangetAllowDestructiveMutations()(experimental) Indicates if edge allows destructive mutations.EdgeDirectionEnumgetDirection()(experimental) Indicates the direction in which the edge is directed.EdgeTypeEnumgetEdgeType()(experimental) Type of edge.BooleangetIsClosed()(experimental) Indicates if the Edge's source and target are the same, or were the same when it was created (prior to mutations).BooleangetIsCrossStack()(experimental) Indicates if source and target nodes reside in different root stacks.BooleangetIsExtraneous()(experimental) Indicates if edge is extraneous which is determined by explicitly having EXTRANEOUS flag added and/or being a closed loop (source===target).NodegetSource()(experimental) Edge source is the node that defines the edge (tail).NodegetTarget()(experimental) Edge target is the node being referenced by the source (head).BooleanisEquivalent(Edge edge)(experimental) Indicates if this edge is equivalent to another edge.voidmutateConsume(Edge edge)(experimental) Merge an equivalent edge's data into this edge and destroy the other edge.voidmutateDestroy()(experimental) Destroy the edge.voidmutateDestroy(Boolean _strict)(experimental) Destroy the edge.voidmutateDirection(EdgeDirectionEnum direction)(experimental) Change the edge direction.voidmutateSource(Node node)(experimental) Change the edge source.voidmutateTarget(Node node)(experimental) Change the edge target.StringtoString()(experimental) Get string representation of this edge.-
Methods inherited from class software.aws.awsprototypingsdk.cdkgraph.BaseEntity
addAttribute, addFlag, addMetadata, addTag, applyData, applyData, applyData, findMetadata, getAttribute, getAttributes, getFlags, getIsDestroyed, getIsMutated, getMetadata, getStore, getTag, getTags, getUuid, hasAttribute, hasAttribute, hasFlag, hasMetadata, hasTag, hasTag, setAttribute, setTag
-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
Edge
protected Edge(software.amazon.jsii.JsiiObjectRef objRef)
-
Edge
protected Edge(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
Edge
@Stability(Experimental) public Edge(@NotNull IEdgeProps props)- Parameters:
props- This parameter is required.
-
-
Method Detail
-
findAllInChain
@Stability(Experimental) @NotNull public static List<Edge> findAllInChain(@NotNull List<? extends Object> chain, @NotNull IEdgePredicate predicate)
(experimental) Find all matching edges based on predicate within an EdgeChain.- Parameters:
chain- This parameter is required.predicate- This parameter is required.
-
findInChain
@Stability(Experimental) @Nullable public static Edge findInChain(@NotNull List<? extends Object> chain, @NotNull IEdgePredicate predicate)
(experimental) Find first edge matching predicate within an EdgeChain.- Parameters:
chain- This parameter is required.predicate- This parameter is required.
-
isEquivalent
@Stability(Experimental) @NotNull public Boolean isEquivalent(@NotNull Edge edge)
(experimental) Indicates if this edge is equivalent to another edge.Edges are considered equivalent if they share same type, source, and target.
- Parameters:
edge- This parameter is required.
-
mutateConsume
@Stability(Experimental) public void mutateConsume(@NotNull Edge edge)(experimental) Merge an equivalent edge's data into this edge and destroy the other edge.Used during filtering operations to consolidate equivalent edges.
- Parameters:
edge-- The edge to consume.
-
mutateDestroy
@Stability(Experimental) public void mutateDestroy(@Nullable Boolean _strict)(experimental) Destroy the edge.Remove all references and remove from store.
- Specified by:
mutateDestroyin classBaseEntity- Parameters:
_strict-
-
mutateDestroy
@Stability(Experimental) public void mutateDestroy()
(experimental) Destroy the edge.Remove all references and remove from store.
- Specified by:
mutateDestroyin classBaseEntity
-
mutateDirection
@Stability(Experimental) public void mutateDirection(@NotNull EdgeDirectionEnum direction)(experimental) Change the edge direction.- Parameters:
direction- This parameter is required.
-
mutateSource
@Stability(Experimental) public void mutateSource(@NotNull Node node)(experimental) Change the edge source.- Parameters:
node- This parameter is required.
-
mutateTarget
@Stability(Experimental) public void mutateTarget(@NotNull Node node)(experimental) Change the edge target.- Parameters:
node- This parameter is required.
-
toString
@Stability(Experimental) @NotNull public String toString()
(experimental) Get string representation of this edge.
-
getAllowDestructiveMutations
@Stability(Experimental) @NotNull public Boolean getAllowDestructiveMutations()
(experimental) Indicates if edge allows destructive mutations.
-
getDirection
@Stability(Experimental) @NotNull public EdgeDirectionEnum getDirection()
(experimental) Indicates the direction in which the edge is directed.
-
getEdgeType
@Stability(Experimental) @NotNull public EdgeTypeEnum getEdgeType()
(experimental) Type of edge.
-
getIsClosed
@Stability(Experimental) @NotNull public Boolean getIsClosed()
(experimental) Indicates if the Edge's source and target are the same, or were the same when it was created (prior to mutations).To check whether it was originally closed, use
hasFlag(FlagEnum.CLOSED_EDGE)instead.
-
getIsCrossStack
@Stability(Experimental) @NotNull public Boolean getIsCrossStack()
(experimental) Indicates if source and target nodes reside in different root stacks.
-
getIsExtraneous
@Stability(Experimental) @NotNull public Boolean getIsExtraneous()
(experimental) Indicates if edge is extraneous which is determined by explicitly having EXTRANEOUS flag added and/or being a closed loop (source===target).
-
getSource
@Stability(Experimental) @NotNull public Node getSource()
(experimental) Edge source is the node that defines the edge (tail).
-
getTarget
@Stability(Experimental) @NotNull public Node getTarget()
(experimental) Edge target is the node being referenced by the source (head).
-
-