das-research/DAS/shape.py

18 lines
480 B
Python
Raw Normal View History

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