def __init__(self, config, input_handler, commit, object_cache, input_mods): '''Constructs a RequirementSet. This does not read everything in: please use the appropriate method to do so.''' tracer.info("called") Digraph.__init__(self) MemLogStore.__init__(self) self.__config = config self.__object_cache = object_cache self.__input_mods = input_mods # TODO: is this the structure that is needed? self.__requirements = {} self.__read_requirements(input_handler, commit)
def DEPRECATED___init__(self, config, name, config_prefix_str, req_input_dir): tracer.info("name [%s] config_prefix [%s] req_input_dir [%s]" % (name, config_prefix_str, req_input_dir)) Digraph.__init__(self) MemLogStore.__init__(self) # The name of the TopicSet. self.name = name # The directory where all topics are stored. self.topic_dir = config.get_value(config_prefix_str + '.directory') # The master (i.e. the initial) topic. self.master_topic = config.get_value(config_prefix_str + '.name') self.config = config self.internal_init_requirements() # TODO: is this needed???? # if all_reqs != None: # self.mReqset = self.reqs_limit(all_reqs) self.output_handlers = [] self.init_output_handler()
def __init__(self, input_mods, config): '''Sets up a TopicContinuum for use.''' tracer.info("called") MemLogStore.__init__(self) self.__input_mods = input_mods self.__config = config # This dictionary holds all the TopicSetCollections # available in the configured time period. self.__continuum = {} # The VCS repository. # If this is None - there is no repository available. self.__deprecated_repo = None # Because the construction / evaluation should continue even in # error cases, a flag is available to check if the (possible only # partially) constructed element is usable. self.__is_usable = True # Store objects with IDs also in the cache - so that they can be reused. self.__object_cache = ObjectCache() self.__init_continuum_set() self.__object_cache.log_stats()
def __init__(self): MemLogStore.__init__(self) list.__init__(self) self.ldict = None self.lis_usable = True
def __init__(self, d=None): Digraph.__init__(self, d, lambda nname: Requirement(None, nname, None, None, None)) MemLogStore.__init__(self)