Record Class ConsensusSimulationReport
java.lang.Object
java.lang.Record
org.j7m.middleware.api.consensus.ConsensusSimulationReport
- Record Components:
seed- deterministic seedmessagesSent- sent messagesmessagesDropped- dropped messagesmessagesDuplicated- duplicated messagesmessagesReordered- reordered messagescrashes- crashesrestarts- restartstrace- safe simulation tracesafetyReport- safety invariant report
- All Implemented Interfaces:
Serializable
public record ConsensusSimulationReport(long seed, long messagesSent, long messagesDropped, long messagesDuplicated, long messagesReordered, long crashes, long restarts, List<String> trace, ConsensusSafetyReport safetyReport)
extends Record
implements Serializable
Deterministic simulation evidence.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConsensusSimulationReport(long seed, long messagesSent, long messagesDropped, long messagesDuplicated, long messagesReordered, long crashes, long restarts, List<String> trace, ConsensusSafetyReport safetyReport) Creates a simulation report. -
Method Summary
Modifier and TypeMethodDescriptionlongcrashes()Returns the value of thecrashesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themessagesDroppedrecord component.longReturns the value of themessagesDuplicatedrecord component.longReturns the value of themessagesReorderedrecord component.longReturns the value of themessagesSentrecord component.longrestarts()Returns the value of therestartsrecord component.Returns the value of thesafetyReportrecord component.longseed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
ConsensusSimulationReport
public ConsensusSimulationReport(long seed, long messagesSent, long messagesDropped, long messagesDuplicated, long messagesReordered, long crashes, long restarts, List<String> trace, ConsensusSafetyReport safetyReport) Creates a simulation report.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
seed
-
messagesSent
public long messagesSent()Returns the value of themessagesSentrecord component.- Returns:
- the value of the
messagesSentrecord component
-
messagesDropped
public long messagesDropped()Returns the value of themessagesDroppedrecord component.- Returns:
- the value of the
messagesDroppedrecord component
-
messagesDuplicated
public long messagesDuplicated()Returns the value of themessagesDuplicatedrecord component.- Returns:
- the value of the
messagesDuplicatedrecord component
-
messagesReordered
public long messagesReordered()Returns the value of themessagesReorderedrecord component.- Returns:
- the value of the
messagesReorderedrecord component
-
crashes
-
restarts
-
trace
-
safetyReport
Returns the value of thesafetyReportrecord component.- Returns:
- the value of the
safetyReportrecord component
-