def children_of_model(self,model):
    """Returns all children of the given model

    This method extends the mosaik.scenario.Entity class. It returns all children
    of the given model of the entity.

    Args:
        model: The model of the children

    Returns:
        A list of entities.

    """
    children = self.children
    children = [e for e in children if e.type == model]
    return children