(self, name=None, types=None,
                color=None, info=None, link=None, number=0,
                constraints=None, lane_start=None, lane_stop=None,
                vertical_view=0, parent_activity = None, warning=0, error=0,
                error_text='', zone=1, property_dict ={} )
Creates a Bloc object
Creates a Bloc object
Creates a Bloc object
def __init__ (self, name=None, types=None,
                color=None, info=None, link=None, number=0,
                constraints=None, lane_start=None, lane_stop=None,
                vertical_view=0, parent_activity = None, warning=0, error=0,
                error_text='', zone=1, property_dict ={} ):
    """
    Creates a Bloc object
    """
    # internal name
    self.name = name
    # activity, activity_error, info
    self.types = types
    self.color = color
    # dict containing text with their position
    self.info = info
    # on clic link
    self.link = link
    self.number = number
    self.title=''
    # 1 = usefull area : 0 = useless one
    # XXX Bad naming, as it's not easy to understand
    self.zone = zone
    self.parent_activity = parent_activity
    self.constraints = constraints
    # setting warning and error flags in case parent_activity or block itself
    # have not been validated
    self.warning = warning
    self.error = error
    self.error_text = error_text
    # list of all the groups the bloc belongs to (reportTree)
    #self.container_axis_group = container_AxisGroup
    # integer pointing to the AxisElement containing the bloc (multitasking)
    #self.container_axis_element = container_AxisElement
    self.position_report = Position()
    self.position_lane = \
          Position(absolute_begin=lane_start,absolute_end=lane_stop)
    if vertical_view == 0:
      self.position_y = self.position_report
      self.position_x = self.position_lane
    else:
      self.position_y = self.position_lane
      self.position_x = self.position_report
    self.render_dict = None
    self.property_dict = property_dict
def __init__ ( self , name = None , types = None , color = None , info = None , link = None , number = 0 , constraints = None , lane_start = None , lane_stop = None , vertical_view = 0 , parent_activity = None , warning = 0 , error = 0 , error_text = '' , zone = 1 , property_dict = { } ) : # internal name self . name = name # activity, activity_error, info self . types = types self . color = color # dict containing text with their position self . info = info # on clic link self . link = link self . number = number self . title = '' # 1 = usefull area : 0 = useless one # XXX Bad naming, as it's not easy to understand self . zone = zone self . parent_activity = parent_activity self . constraints = constraints # setting warning and error flags in case parent_activity or block itself # have not been validated self . warning = warning self . error = error self . error_text = error_text # list of all the groups the bloc belongs to (reportTree) #self.container_axis_group = container_AxisGroup # integer pointing to the AxisElement containing the bloc (multitasking) #self.container_axis_element = container_AxisElement self . position_report = Position ( ) self . position_lane = Position ( absolute_begin = lane_start , absolute_end = lane_stop ) if vertical_view == 0 : self . position_y = self . position_report self . position_x = self . position_lane else : self . position_y = self . position_lane self . position_x = self . position_report self . render_dict = None self . property_dict = property_dict