浏览代码

Define the all_instances function in the future as well

Yentl Van Tendeloo 8 年之前
父节点
当前提交
abb2866917
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      wrappers/modelverse.py

+ 4 - 0
wrappers/modelverse.py

@@ -1003,3 +1003,7 @@ def connections_between(model_name, source_element, target_element):
 def define_attribute(model_name, node, attr_name, attr_type):
     """Create a new attribute, which can be instantiated one meta-level below."""
     raise NotImplementedError()
+
+def all_instances(model_name, type_name):
+    """Returns a list of all elements of a specific type."""
+    raise NotImplementedError()