LayoutHyperedge class
Combined net representation wrapping a hierarchy SignalOccurrence.
This class merges the former Hyperedge and ElkEdge roles:
- Connectivity — multi-source/multi-target
(nodeId, portIndex)tuples (one net may fan out to several ports). - Semantics — wraps a
SignalOccurrencefromrohd_hierarchyso name/width/type are never duplicated. - Serialization —
toElkEdgesexpands the hyperedge into one or more ELK JSON edge maps on-the-fly duringLayoutNode.toJson; no separateElkEdgeobjects are stored.
Constructors
-
LayoutHyperedge({required String id, required SignalOccurrence signal, required List<
(String, int)> sources, required List<(String, int)> targets}) -
Constructor for
LayoutHyperedge.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique hyperedge ID.
final
- isNtoM → bool
-
Whether this is an N:M hyperedge (multiple sources or targets).
no setter
- isOneToOne → bool
-
Whether this is a 1:1 hyperedge (single source, single target).
no setter
- name → String
-
Delegate signal name (for display and search).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signal → SignalOccurrence
-
Reference to the hierarchy signal (single source of truth for name/width).
final
-
sources
→ List<
(String, int)> -
Source connections: (nodeId, portIndex) pairs.
final
-
targets
→ List<
(String, int)> -
Target connections: (nodeId, portIndex) pairs.
final
- width → int
-
Delegate signal bit-width (for bus rendering).
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toElkEdges(
String resolvePort(String nodeId, int portIndex)) → List< Map< String, dynamic> > - Generate ELK JSON edge maps for this hyperedge.
-
toJson(
) → Map< String, dynamic> - Convert to JSON map for state persistence (hyperedge format).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited