Beispiel #1
0
 def _generate_dot_graph(self):
     """Genrate app level graphviz dot file
     """
     dot_graph_str = SmvAppInfo(self).create_graph_dot()
     path = "{}.dot".format(self.appName())
     with open(path, "w") as f:
         f.write(dot_graph_str)
Beispiel #2
0
    def get_module_state_json(self, fqns):
        """Generate a json string for modules' needToRun state of the app

            Args:
                fqns (list(string)): module fqn list to get state for

            Return:
                (string): json string. E.g. {"stage.mymod": {"needsToRun" : True}}
        """
        return SmvAppInfo(self).create_module_state_json(fqns)
Beispiel #3
0
 def _print_dead_modules(self):
     """Print dead modules:
     Modules which do not contribute to any output modules are considered dead
     """
     SmvAppInfo(self).ls_dead()
Beispiel #4
0
 def get_graph_json(self):
     """Generate a json string representing the dependency graph.
     """
     return SmvAppInfo(self).create_graph_json()
Beispiel #5
0
def _appInfo():
    return SmvAppInfo(SmvApp.getInstance())