2023-01-23 18:04:54 +01:00
|
|
|
#!/bin/python3
|
|
|
|
|
|
|
|
class Shape:
|
2023-02-15 15:06:42 +01:00
|
|
|
"""This class represents a set of parameters for a specific simulation."""
|
2023-01-23 18:04:54 +01:00
|
|
|
|
2023-01-25 21:51:59 +01:00
|
|
|
def __init__(self, blockSize, numberValidators, failureRate, chi, netDegree, run):
|
2023-02-15 15:06:42 +01:00
|
|
|
"""Initializes the shape with the parameters passed in argument."""
|
2023-01-25 21:51:59 +01:00
|
|
|
self.run = run
|
2023-01-23 18:04:54 +01:00
|
|
|
self.numberValidators = numberValidators
|
|
|
|
self.blockSize = blockSize
|
2023-01-25 21:51:59 +01:00
|
|
|
self.failureRate = failureRate
|
2023-01-23 18:04:54 +01:00
|
|
|
self.netDegree = netDegree
|
|
|
|
self.chi = chi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|