pyuseocl.model¶
Partial AST for USE OCL Model. The elements in this module are generated by the “parser” module.
Classes
Association (name, model[, kind]) |
|
AssociationClass (name, model[, isAbstract, ...]) |
|
Attribute (name, class_[, code, type]) |
|
BasicType (name) |
|
Class (name, model[, isAbstract, superclasses]) |
|
Enumeration (name, model[, code, literals]) |
|
ExpressionPath (startClass, pathString) |
|
Invariant (name, model[, class, code, ...]) |
|
Model (name[, code]) |
|
Operation (name, model, class, signature[, ...]) |
|
OperationCondition (name, model, operation, ...) |
|
OrderedDict (*args, **kwds) |
Dictionary that remembers insertion order |
PostCondition (name, model, operation, expression) |
|
PreCondition (name, model, operation, expression) |
|
Role (name, association[, code, cardMin, ...]) |
|
SimpleType |
|
SourceElement (name[, code]) |
|
TopLevelElement (name, model[, code]) |
AssociationClass¶
Enumeration¶
Invariant¶
Model¶
Operation¶
OperationCondition¶
OrderedDict¶
-
class
pyuseocl.model.
OrderedDict
(*args, **kwds)[source]¶ Dictionary that remembers insertion order
Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.
-
__setitem__
(key, value, dict_setitem=<slot wrapper '__setitem__' of 'dict' objects>)[source]¶ od.__setitem__(i, y) <==> od[i]=y
-
__delitem__
(key, dict_delitem=<slot wrapper '__delitem__' of 'dict' objects>)[source]¶ od.__delitem__(y) <==> del od[y]
-
update
([E, ]**F) → None. Update D from mapping/iterable E and F.¶ If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
-
pop
(k[, d]) → v, remove specified key and return the corresponding[source]¶ value. If key is not found, d is returned if given, otherwise KeyError is raised.
-
popitem
() → (k, v), return and remove a (key, value) pair.[source]¶ Pairs are returned in LIFO order if last is true or FIFO order if false.
-
classmethod
fromkeys
(S[, v]) → New ordered dictionary with keys from S.[source]¶ If not specified, the value defaults to None.
-