TTGraph class
In-memory graph: holds node state, runs read/write middleware, merges via the
GraphMergePort, and fans data to transports. Transport, query and
path-write operations live in the part extensions.
- Available extensions
Constructors
- TTGraph({GraphMergePort? mergePort})
Properties
- activeConnectors ↔ num
-
getter/setter pair
- events ↔ TTGraphEvent
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
GraphTransportPort transport) → TTGraph -
Available on TTGraph, provided by the TTGraphTransports extension
Connect to a source/destination for graph data. -
disconnect(
GraphTransportPort transport) → TTGraph -
Available on TTGraph, provided by the TTGraphTransports extension
Disconnect from a source/destination for graph data. -
eachConnector(
GraphConnectorFuncType cb) → TTGraph -
Available on TTGraph, provided by the TTGraphTransports extension
Retained for compatibility; transports conceal connector types (no-op). -
get(
String soul, [TTMsgCb? cb, String? msgId]) → VoidCallback -
Available on TTGraph, provided by the TTGraphQuery extension
Request node data forsoul. -
getOpt(
) → TTGraphOptions -
getPathSouls(
List< String> path) → Future<List< String> > -
Available on TTGraph, provided by the TTGraphQuery extension
Resolve the list of souls addressed bypath. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
opt(
TTGraphOptions options) → TTGraph - Configure graph options. Currently unused.
-
put(
TTGraphData data, [TTMsgCb? cb, String? msgId]) → VoidCallback - Write node data keyed by soul through write middleware, then trigger the put event and re-ingest locally. Returns a listener-cleanup function.
-
putPath(
List< String> fullPath, TTValue data, [TTMsgCb? cb, UUIDFuncType? uuidFn]) → Future<void> -
Available on TTGraph, provided by the TTGraphWrite extension
Write graph data to a potentially multi-level deep path. -
query(
List< String> path, TTOnCb cb) → VoidCallback -
Available on TTGraph, provided by the TTGraphQuery extension
Read a potentially multi-level deep path from the graph. -
toString(
) → String -
A string representation of this object.
inherited
-
unuse(
TTMiddleware middleware, {TTMiddlewareType kind = TTMiddlewareType.read}) → TTGraph -
Available on TTGraph, provided by the TTGraphTransports extension
Unregister graph middleware previously added with use. -
use(
TTMiddleware middleware, {TTMiddlewareType kind = TTMiddlewareType.read}) → TTGraph -
Available on TTGraph, provided by the TTGraphTransports extension
Register graph middleware (read by default, or write viakind).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited