|
@@ -89,6 +89,9 @@ class UnknownIdentifier(ModelverseException):
|
|
|
class UnknownType(ModelverseException):
|
|
|
pass
|
|
|
|
|
|
+class NotAnAssociation(ModelverseException):
|
|
|
+ pass
|
|
|
+
|
|
|
class UnsupportedValue(ModelverseException):
|
|
|
pass
|
|
|
|
|
@@ -512,6 +515,22 @@ def read_incoming(ID, typename):
|
|
|
lst.append(_last_output())
|
|
|
return lst
|
|
|
|
|
|
+def read_association_source(ID):
|
|
|
+ """Returns the source of an association."""
|
|
|
+ pass
|
|
|
+ # returns name
|
|
|
+ # raises UnknownError
|
|
|
+ # raises UnknownIdentifier
|
|
|
+ # raises NotAnAssociation
|
|
|
+
|
|
|
+def read_association_destination(ID):
|
|
|
+ """Returns the destination of an association."""
|
|
|
+ pass
|
|
|
+ # returns name
|
|
|
+ # raises UnknownError
|
|
|
+ # raises UnknownIdentifier
|
|
|
+ # raises NotAnAssociation
|
|
|
+
|
|
|
def model_exit():
|
|
|
"""Leave model modify mode."""
|
|
|
# return None
|