use column and row accessors

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2022-12-07 15:14:36 +01:00
parent 8da447ac5a
commit b48fb6f791
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
1 changed files with 2 additions and 6 deletions

View File

@ -67,15 +67,11 @@ class Validator:
#broadcasted.print()
def getColumn(self, columnID, broadcasted):
column = [0] * self.blockSize
for i in range(self.blockSize):
column[i] = broadcasted.data[(i*self.blockSize)+columnID]
column = broadcasted.getColumn(columnID)
self.columns.append(column)
def getRow(self, rowID, broadcasted):
row = [0] * self.blockSize
for i in range(self.blockSize):
row[i] = broadcasted.data[(rowID*self.blockSize)+i]
row = broadcasted.getRow(rowID)
self.rows.append(row)
def receiveRowsColumns(self, broadcasted):