src.dackar.utils.mbse.customMBSEparser

Created on February, 2024

@author: mandd

Attributes

logger

c_handler

Classes

customMBSEobject

Class designed to process the a custom MBSE model from file.

Module Contents

src.dackar.utils.mbse.customMBSEparser.logger[source]
src.dackar.utils.mbse.customMBSEparser.c_handler[source]
class src.dackar.utils.mbse.customMBSEparser.customMBSEobject(nodesFilename, edgesFilename)[source]

Bases: object

Class designed to process the a custom MBSE model from file.

nodesFilename[source]
edgesFilename[source]
listIDs = [][source]
allowedNodeTypes = ['entity'][source]
allowedEdgeTypes = ['link', 'composition', 'support'][source]
allowedNodeCols = ['label', 'ID', 'type'][source]
allowed_edge_cols = ['sourceNodeId', 'targetNodeId', 'type', 'medium'][source]
checkModel()[source]

Method designed to pcheck model consistency

Parameters:

None

Returns:

None

parseFiles()[source]

Method designed to parse the node and edge files

Parameters:

None

Returns:

None

checkNodes()[source]

Method designed to check the node file

Parameters:

None

Returns:

None

checkEdges()[source]

Methods designed to check the edge file

Parameters:

None

Returns:

None

returnIDs()[source]

Method designed to return list of IDs included in the model

Parameters:

None

Returns:

self.listIDs, list, list of IDs specified in the MBSE model

addNodesEdges(new_node_dict, new_edge_dicts)[source]

Method designed to return list of IDs included in the model

Parameters:

None

Returns:

self.listIDs, list, list of IDs specified in the MBSE model

printOnFiles(nodes_file, edges_file)[source]

Method designed to print on file the set of nodes and edges

Parameters:

None

Returns:

self.listIDs, list, list of IDs specified in the MBSE model