ClockHop class final

One hop: how the previous clock in the chain maps onto node's.

Constructors

ClockHop({required String node, required String via, required double offset, double drift = 0, double at = 0, double uncertainty = 0, double? latency, double? jitter, double? held})
const
ClockHop.fromJson(Map<String, Object?> j)
factory

Properties

at → double
The time on the previous clock that offset is exact for.
final
drift → double
How fast offset changes, in seconds per second of the previous clock (so 1e-5 is 10 ppm). Zero when not estimated.
final
hashCode → int
The hash code for this object.
no setterinherited
held → double?
Mean time a sample spent at node between arriving and being handed on, in seconds, or null if node has not measured it: waiting to be collected (a polling interval), to be put in a chunk, or in a queue.
final
jitter → double?
Standard deviation of latency, or null.
final
latency → double?
Mean time from a sample's timestamp to its arrival at node, in seconds, or null if node has not measured it.
final
node → String
The node whose clock this hop maps onto, and where latency was measured: a host name, a node uId.
final
offset → double
Seconds to add to a time on the previous clock, at at, to get node's clock. Same sign convention as MessageTiming.clockOffset.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uncertainty → double
Error bound on offset: the full round-trip time of the probe behind it, so the true offset lies within ±uncertainty/2. Same convention as MessageTiming.uncertainty.
final
via → String
The transport the hop crossed: lsl, bridge, webrtc, websocket.
final

Methods

inverse({required String node}) → ClockHop
The same hop walked backwards: node's clock onto the previous one.
map(double t) → double
t on the previous clock, mapped onto node's.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
override
withLatency(double? latency, double? jitter, {double? held}) → ClockHop
held is kept unless given.

Operators

operator ==(Object other) → bool
The equality operator.
inherited