def METHOD_NAME(self, constraint_id, dofs, node_ids, comment):
    #if comment:
        # self.comment = comment
    assert isinstance(constraint_id, int), constraint_id
    self.constraint_id = constraint_id
    self.components[dofs] += node_ids