RecoveryParticipantAcknowledgmentBoundary constructor
- required List<
RecoveryParticipantStatus> participants, - String name = 'recovery_participant_acknowledgments',
Creates a typed participant acknowledgment boundary.
Implementation
RecoveryParticipantAcknowledgmentBoundary({
required List<RecoveryParticipantStatus> participants,
super.name = 'recovery_participant_acknowledgments',
}) : participantCount = participants.length,
super(
definitionName: 'RecoveryParticipantAcknowledgments_'
'P${participants.length}_${payloadShapesIdentity(participants)}',
) {
if (participants.isEmpty) {
throw ArgumentError.value(
participants, 'participants', 'Must not be empty.');
}
this.participants = [
for (var index = 0; index < participants.length; index++)
addTypedInput(
'participant$index',
participants[index],
),
];
addOutput('quiescedMask', width: participantCount);
addOutput('canceledMask', width: participantCount);
addOutput('restoredMask', width: participantCount);
addOutput('failedMask', width: participantCount);
quiescedMask <=
[for (final participant in this.participants) participant.quiesced]
.rconcat();
canceledMask <=
[for (final participant in this.participants) participant.canceled]
.rconcat();
restoredMask <=
[for (final participant in this.participants) participant.restored]
.rconcat();
failedMask <=
[for (final participant in this.participants) participant.failed]
.rconcat();
}