ReadyValidChannelActivity class

Selects cycles on which a ready/valid participant may become active.

Constructors

ReadyValidChannelActivity.alternating({int activeCycles = 1, int inactiveCycles = 1})
Creates a repeating active/inactive policy.
factory
ReadyValidChannelActivity.always()
Creates an activity policy that is active on every cycle.
factory
ReadyValidChannelActivity.burst({required int length, required int period, int startCycle = 0})
Creates a periodic burst beginning at startCycle.
factory
ReadyValidChannelActivity.scripted(Iterable<bool> values)
Creates a finite activity script that is inactive after values.
factory
ReadyValidChannelActivity.seededRandom({required int seed, required double activeProbability})
Creates a deterministic pseudo-random activity policy.
factory

Properties

description → String
Concise description suitable for test diagnostics.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isActive(int cycle) → bool
Returns whether the participant may activate on cycle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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