Implements the Use of a Simple DTO for Communication Between Classes

This commit is contained in:
2022-05-31 09:55:19 -03:00
parent 0d78c83e91
commit 44cb4268ef
6 changed files with 137 additions and 180 deletions

View File

@@ -0,0 +1,17 @@
from dataclasses import dataclass
from typing import List
from diceplayer.DPpack.Environment.Molecule import Molecule
@dataclass
class StepDTO:
initcyc: int
nprocs: int
ncores: int
altsteps: int
switchcyc: int
opt: str
nmol: List[int]
molecule: List[Molecule]