Mordicus.Core.Containers.Visitor module

class Mordicus.Core.Containers.Visitor.ExportToJSONVisitor(folder, solutionReader=None, reconstruct=False)[source]

Bases: object

Abstract visitor

visitCPD(cpd)[source]

Visit Collection Problem Data Structure

visitDataSet(dataset, cpd)[source]

Visit Dataset

visitProblemData(problemData)[source]

Visit problemData

visitQuantityDefinitionDict(defdict)[source]

Visit quantity definition dictionary

visitSolution(solution)[source]

Visit solution

visitSolutionStructure(structure, quantity)[source]

Visit Solution Structure

visitSolver(solver)[source]

Visit Solver

visitVariabilityDefinitionDict(defdict)[source]

Visit variability definition dictionary

class Mordicus.Core.Containers.Visitor.ImportFromJSONVisitor(folder, filename='reducedModel.json', solutionReader=None, reconstruct=False)[source]

Bases: object

Abstract visitor

visitCPD(cpd)[source]

Visit Collection Problem Data

visitQuantityDefinitionDict(defdict)[source]

Visit quantity definition dictionary

visitVariabilityDefinitionDict(defdict)[source]

Visit variability definition dictionary

Mordicus.Core.Containers.Visitor.checkValidity(json_path)[source]

Checks validity of JSON file

Mordicus.Core.Containers.Visitor.exportToJSON(folder, cpd, solutionReader=None, reconstruct=False)[source]

Export study to a folder with directing JSON file

Mordicus.Core.Containers.Visitor.importFromJSON(folder, filename='reducedModel.json', solutionReader=None, reconstruct=False)[source]

Import study from a json