def add_component_type(self, component_type):
        """
        Adds a component type to the model.

        @param component_type: Component type to be added.
        @type component_type: lems.model.fundamental.ComponentType
        """
        name = component_type.name
        
        # To handle colons in names in LEMS
        if ':' in name:
            name = name.replace(':', '_')
            component_type.name = name
            
        self.component_types[name] = component_type
Adds a component type to the model.

        @param component_type: Component type to be added.
        @type component_type: lems.model.fundamental.ComponentType