Class DirectedEdgeStatement
java.lang.Object
de.xima.fc.common.graphdot.DirectedEdgeStatement
- All Implemented Interfaces:
IDirectedGraphDotStatement, IGraphDotEdgeStatement<IDirectedGraphDotStatement>, IGraphDotElement, IGraphDotStatement, Serializable
A directed edge statement.
"node-1" : "port-1" : s -> "node-2" : "port-2" : n [style = filled, color = "green:blue"];
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes) Creates a new directed edge statement/ -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal EdgeAttributeListfinal EEdgeTypefinal List<IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> final IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> final IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> final inthashCode()final StringCreates a string in the graph dot language representing this element.final StringtoString()final voidwrite(GraphDotModelWriter writer) Writes this element to the given writer, as a string in the graph dot language representing this element.Methods inherited from interface IGraphDotElement
toGraphDotString, write
-
Constructor Details
-
DirectedEdgeStatement
public DirectedEdgeStatement(IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> source, IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement> target, List<? extends IGraphDotEdgeSpecifier<? extends IDirectedGraphDotStatement>> moreNodes, EdgeAttributeList attributes) Creates a new directed edge statement/- Parameters:
source- Source node.target- Target node.moreNodes- Optional additional nodes.attributes- Optional attributes for the edge.
-
-
Method Details
-
equals
-
getAttributeList
- Specified by:
getAttributeListin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional attributes of the edge. Never
null, but may be empty.
-
getEdgeOperation
- Specified by:
getEdgeOperationin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Whether this edge statement is for a directed or undirected edge. Never
null.
-
getMoreNodes
- Specified by:
getMoreNodesin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Optional additional nodes to connect to. Never
null, but may be empty.
-
getSource
- Specified by:
getSourcein interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Source node of the edge, i.e. the start point of the edge. Never
null.
-
getTarget
- Specified by:
getTargetin interfaceIGraphDotEdgeStatement<S extends IGraphDotStatement>- Returns:
- Target node of the edge, i.e. the end point of the edge. Never
null.
-
hashCode
-
write
Description copied from interface:IGraphDotElementWrites this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
writein interfaceIGraphDotElement- Parameters:
writer- Writer to write to.- Throws:
IOException- When the writer could not be written to.
-
toGraphDotString
Description copied from interface:IGraphDotElementCreates a string in the graph dot language representing this element.- Specified by:
toGraphDotStringin interfaceIGraphDotElement- Returns:
- The graph dot representation of this graph dot element.
-
toString
-