def __init__(self, topic_continuum): '''Initialize the iterator. The iterator points to a list of the vcs_id and the appropriate topic set. Please note: the current implementation of this iterator cannot handle changes.''' self.__objs = [] self.__topic_continuum = topic_continuum for vcs_id in topic_continuum.get_vcs_commit_ids(): self.__objs.append([vcs_id, topic_continuum.get_topic_set( vcs_id.get_commit())]) GenIterator.__init__(self, self.__objs.__iter__())
def __init__(self, topic_continuum): '''Initialize the iterator. The iterator points to a list of the vcs_id and the appropriate topic set. Please note: the current implementation of this iterator cannot handle changes.''' self.__objs = [] self.__topic_continuum = topic_continuum for vcs_id in topic_continuum.get_vcs_commit_ids(): self.__objs.append( [vcs_id, topic_continuum.get_topic_set(vcs_id.get_commit())]) GenIterator.__init__(self, self.__objs.__iter__())
def __init__(self, topic_continuum_set): '''Initialize the iterator.''' GenIterator.__init__( self, iteritems(topic_continuum_set.get_continuum_dict()))
def __init__(self, requirement_set): GenIterator.__init__( self, requirement_set.get_master_nodes().__iter__())
def __init__(self, topic_continuum_set): """Initialize the iterator.""" GenIterator.__init__(self, topic_continuum_set.get_continuum_dict().iteritems())