Implements the Use of a Simple DTO for Communication Between Classes
This commit is contained in:
17
diceplayer/DPpack/Utils/StepDTO.py
Normal file
17
diceplayer/DPpack/Utils/StepDTO.py
Normal 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]
|
||||
@@ -12,4 +12,4 @@ def NotNull(requiredArgs=[]):
|
||||
|
||||
return wrapper
|
||||
|
||||
return _NotNull
|
||||
return _NotNull
|
||||
Reference in New Issue
Block a user