Functions for the definition and handling of the overarch model.
The loaded overarch working model is a map with these keys:
:input-elements -> the given data :nodes -> the set of nodes (incl. child nodes) :relations -> the set of relations (incl. contains relations) :views -> the set of views :themes -> the set of themes :id->element -> a map from id to element (nodes, relations and views) :id->parent -> a map from id to parent element :referrer-id->relations -> a map from id to set of relations where the id is the referrer (:from) :referred-id->relations -> a map from id to set of relations where the id is referred (:to)
Functions for the definition and handling of the overarch model. The loaded overarch working model is a map with these keys: :input-elements -> the given data :nodes -> the set of nodes (incl. child nodes) :relations -> the set of relations (incl. contains relations) :views -> the set of views :themes -> the set of themes :id->element -> a map from id to element (nodes, relations and views) :id->parent -> a map from id to parent element :referrer-id->relations -> a map from id to set of relations where the id is the referrer (:from) :referred-id->relations -> a map from id to set of relations where the id is referred (:to)
(->relational-model)
(->relational-model [res ctx])
(->relational-model [res ctx] e)
Step function for the conversion of the hierachical input model into a relational model of nodes, relations and views.
Step function for the conversion of the hierachical input model into a relational model of nodes, relations and views.
(->transitive-related)
(->transitive-related acc)
(->transitive-related acc e)
Step function to build a set of transitively related nodes (with cycle detection).
Step function to build a set of transitively related nodes (with cycle detection).
(actors model e)
Returns the actors of a use case e
in the model
.
Returns the actors of a use case `e` in the `model`.
(all-elements model)
Returns a set of all elements.
Returns a set of all elements.
(all-nodes model elements)
Returns the set of all nodes, including descendants, of the elements
.
Returns the set of all nodes, including descendants, of the `elements`.
(ancestor-node? model e c)
Returns true, if c
is an ancestor of node e
in the model
.
Returns true, if `c` is an ancestor of node `e` in the `model`.
(ancestor-nodes model e)
Returns the ancestor nodes of the model node e
in the model
.
Returns the ancestor nodes of the model node `e` in the `model`.
(ancestor-of? model v e)
Returns true, if e
is an ancestor of the node with id v
in the model
.
Returns true, if `e` is an ancestor of the node with id `v` in the `model`.
(build-model coll)
Builds the working model from the input coll
of elements.
Builds the working model from the input `coll` of elements.
(child-check? model v e)
Returns true, if the check for e
is a child in the model
equals the boolean value v
.
Returns true, if the check for `e` is a child in the `model` equals the boolean value `v`.
(child? model v e)
Returns true, if e
is a child of the node with id v
in the model
.
Returns true, if `e` is a child of the node with id `v` in the `model`.
(criteria-predicate model criteria)
Returns a filter predicate for the given criteria
.
The resulting predicate is a logical conjunction (and) of the predicates for
each criterium.
Returns a filter predicate for the given `criteria`. The resulting predicate is a logical conjunction (and) of the predicates for each criterium.
(criteria-predicates model criteria)
Returns a filter predicate for the given criteria
.
If a vector of criteria maps is given, the resulting predicate is a logical
disjunction (or) of the predicates.
Returns a filter predicate for the given `criteria`. If a vector of criteria maps is given, the resulting predicate is a logical disjunction (or) of the predicates.
(criterium-predicate model [k v])
Returns a predicate for the given criterium
.
Returns a predicate for the given `criterium`.
(dataflows-incoming model e)
Returns the incoming dataflow relations served by service e
in the model
.
Returns the incoming dataflow relations served by service `e` in the `model`.
(dataflows-outgoing model e)
Returns the outgoing dataflow relations of e
in the model
.
Returns the outgoing dataflow relations of `e` in the `model`.
(dependency-nodes model e)
Returns the direct dependencies of the architecture node e
in the model
.
Returns the direct dependencies of the architecture node `e` in the `model`.
(dependent-nodes model e)
Returns the direct dependents of the architecture node e
in the model
.
Returns the direct dependents of the architecture node `e` in the `model`.
(deployed-on model e)
Returns the architecture nodes deployed on the node e
in the model
.
Returns the architecture nodes deployed on the node `e` in the `model`.
(deployed-to model e)
Returns the deployment nodes the architecture node e
is deployed to in the ``model`.
Returns the deployment nodes the architecture node `e` is deployed to in the ``model`.
(descendant-node? model e c)
Returns true, if c
is a descendant of e
.
Returns true, if `c` is a descendant of `e`.
(descendant-nodes model e)
Returns the set of descendants of the node e
.
Returns the set of descendants of the node `e`.
(descendant-of? model v e)
Returns true, if e
is a descendant of the node with id v
in the model
.
Returns true, if `e` is a descendant of the node with id `v` in the `model`.
(element-resolver model)
Returns a element resolver function for the given model
.
Returns a element resolver function for the given `model`.
(extensions model e)
Returns the extension use cases of a use case e
in the model
.
Returns the extension use cases of a use case `e` in the `model`.
(feature-of model e)
Returns the concepts the concept e
is a feature of in the model
.
Returns the concepts the concept `e` is a feature of in the `model`.
(features model e)
Returns the features of the concept e
in the model
.
Returns the features of the concept `e` in the `model`.
(filter-xf model criteria)
Returns a filter transducer for the given criteria
.
Returns a filter transducer for the given `criteria`.
(from-name model rel)
Returns the name of the from reference of the relation rel
in the context of the model
.
Returns the name of the from reference of the relation `rel` in the context of the `model`.
(implementations model e)
Returns the set of direct interfaces of the class element e
in the model
.
Returns the set of direct interfaces of the class element `e` in the `model`.
(included model e)
Returns the extension use cases of a use case e
in the model
.
Returns the extension use cases of a use case `e` in the `model`.
(input-elements model)
Returns the collection of elements.
Returns the collection of elements.
(interfaces model e)
Returns the set of direct interfaces of the class element e
in the model
.
Returns the set of direct interfaces of the class element `e` in the `model`.
(linked-by model e)
Returns the deployment nodes the deployment node e
is linked by in the model
Returns the deployment nodes the deployment node `e` is linked by in the `model`
(links model e)
Returns the deployment nodes the deployment node e
links in the model
Returns the deployment nodes the deployment node `e` links in the `model`
(model-element model id)
Returns the model element with the given id
.
Returns the model element with the given `id`.
(model-elements model)
Returns the collection of model elements.
Returns the collection of model elements.
(nodes model)
Returns the collection of model nodes.
Returns the collection of model nodes.
(parent model e)
Returns the parent of the model node e
.
Returns the parent of the model node `e`.
(parent-of-relation p-id e-id)
Returns a parent-of relation for parent p
and element e
.
Returns a parent-of relation for parent `p` and element `e`.
(parent? model v e)
Returns true if v
is the parent of e
Returns true if `v` is the parent of `e`
(publishers-of model e)
Returns the publishers of the queue or subscribe relation e
in the model
.
Returns the publishers of the queue or subscribe relation `e` in the `model`.
(publishes-incoming model e)
Returns the publish relations of e
in the model
.
Returns the publish relations of `e` in the `model`.
(publishes-outgoing model e)
Returns the publish relations of e
in the model
.
Returns the publish relations of `e` in the `model`.
(referenced-by model e)
Returns the elements referencing element e
in the model
.
Returns the elements referencing element `e` in the `model`.
(referencing model e)
Returns the referenced elements of e
in the model
.
Returns the referenced elements of `e` in the `model`.
(referred-by? model v e)
Returns true, if e
is referred by the node with id v
in the model
.
Returns true, if `e` is referred by the node with id `v` in the `model`.
(referred-check? model v e)
Returns true if the check for e
as referred to equals the boolean value v
Returns true if the check for `e` as referred to equals the boolean value `v`
(referred-xf model)
(referred-xf model filter-fn)
Transducer to resolve referred elements in the model
.
Optionally takes a filter-fn
to filter the relations to take into account.
Transducer to resolve referred elements in the `model`. Optionally takes a `filter-fn` to filter the relations to take into account.
(referrer-xf model)
(referrer-xf model filter-fn)
Transducer to resolve referrer elements of in the model
.
Optionally takes a filter-fn
to filter the relations to take into account.
Transducer to resolve referrer elements of in the `model`. Optionally takes a `filter-fn` to filter the relations to take into account.
(refers-check? model v e)
Returns true if the check for e
as a referrer equals the boolean value v
Returns true if the check for `e` as a referrer equals the boolean value `v`
(refers-to? model v e)
Returns true, if the node with id v
refers to e
in the model
.
Returns true, if the node with id `v` refers to `e` in the `model`.
(related model coll)
Returns the set of nodes of the model
that are part of at least one relation in the coll
.
Returns the set of nodes of the `model` that are part of at least one relation in the `coll`.
(related-nodes model coll)
Returns the set of nodes of the model
that are part of at least one relation in the coll
.
Returns the set of nodes of the `model` that are part of at least one relation in the `coll`.
(related-transitive model e)
(related-transitive model f e)
Returns the nodes that are transitively related to node e
in the model
.
Returns the nodes that are transitively related to node `e` in the `model`.
(related-xf model)
Transducer to resolve the elements in the model
referenced by relations.
Transducer to resolve the elements in the `model` referenced by relations.
(relations model)
Returns the collection of model relations.
Returns the collection of model relations.
(relations-of-nodes model coll)
Returns the relations of the model
connecting nodes from the given coll
of model nodes.
Returns the relations of the `model` connecting nodes from the given `coll` of model nodes.
(requests-incoming model e)
Returns the requests relations issued by client e
in the model
.
Returns the requests relations issued by client `e` in the `model`.
(requests-outgoing model e)
Returns the requests relations served by service e
in the model
.
Returns the requests relations served by service `e` in the `model`.
(resolve-element model e)
Resolves the model element for the ref e
.
Resolves the model element for the ref `e`.
(resolve-id model id)
Resolves the model element for the id
Resolves the model element for the `id`
(resolve-ref model r)
Resolves the model element for the ref r
.
Resolves the model element for the ref `r`.
(responses-incoming model e)
Returns the requests relations served by service e
in the model
.
Returns the requests relations served by service `e` in the `model`.
(responses-outgoing model e)
Returns the requests relations served by service e
in the model
.
Returns the requests relations served by service `e` in the `model`.
(root-nodes model elements)
Returns the set of root nodes of the elements
.
The root nodes are not contained as descendants in any of the element nodes.
Returns the set of root nodes of the `elements`. The root nodes are not contained as descendants in any of the element nodes.
(sends-incoming model e)
Returns the send relations of receiver e
in the model
.
Returns the send relations of receiver `e` in the `model`.
(sends-outgoing model e)
Returns the send relations of sender e
in the model
.
Returns the send relations of sender `e` in the `model`.
(subclasses model e)
Returns the set of direct subclasses of the class element e
in the model
.
Returns the set of direct subclasses of the class element `e` in the `model`.
(subordinates model e)
Returns the subordinates of the concept e
in the model
.
Returns the subordinates of the concept `e` in the `model`.
(subscribers-of model e)
Returns the subscribers of the queue or publish relation e
in the model
.
Returns the subscribers of the queue or publish relation `e` in the `model`.
(subscribes-incoming model e)
Returns the subscribe relations of e
in the model
.
Returns the subscribe relations of `e` in the `model`.
(subscribes-outgoing model e)
Returns the subscribe relations of e
in the model
.
Returns the subscribe relations of `e` in the `model`.
(superclasses model e)
Returns the set of direct superclasses of the class element e
in the model
.
Returns the set of direct superclasses of the class element `e` in the `model`.
(superordinates model e)
Returns the superordinates of the concept e
in the model
.
Returns the superordinates of the concept `e` in the `model`.
(supertypes model e)
Returns the set of direct supertypes (classes or interfaces) of the class element e
in the model
.
Returns the set of direct supertypes (classes or interfaces) of the class element `e` in the `model`.
(supporting-actors model e)
Returns the supporting actors of a use case e
in the model
.
Returns the supporting actors of a use case `e` in the `model`.
(themes model)
Returns the set of themes from the model
.
Returns the set of themes from the `model`.
(to-name model rel)
Returns the name of the from reference of the relation rel
in the context of the model
.
Returns the name of the from reference of the relation `rel` in the context of the `model`.
(traverse-with-model model step-fn coll)
(traverse-with-model model pred-fn step-fn coll)
(traverse-with-model model pred-fn children-fn step-fn coll)
Recursively traverses the coll
of elements and returns the elements
(selected by the optional pred-fn
) and transformed by the step-fn
.
pred-fn
- a predicate on the current element
children-fn
- a function to resolve the children of the current element
step-fn
- a function with three signatures [], [acc] and [acc e]
The no args signature of the step-fn
should return an empty accumulator,
the one args signature extracts the result from the accumulator on return
and the 2 args signature receives the accumulator and the current element and
should add the transformed element to the accumulator.
The children-fn takes 2 args [model e], the model and the current element.
Recursively traverses the `coll` of elements and returns the elements (selected by the optional `pred-fn`) and transformed by the `step-fn`. `pred-fn` - a predicate on the current element `children-fn` - a function to resolve the children of the current element `step-fn` - a function with three signatures [], [acc] and [acc e] The no args signature of the `step-fn` should return an empty accumulator, the one args signature extracts the result from the accumulator on return and the 2 args signature receives the accumulator and the current element and should add the transformed element to the accumulator. The children-fn takes 2 args [model e], the model and the current element.
(type-hierarchy model e)
Returns the type hierarchy of the class or interface element e
in the model.
Returns the type hierarchy of the class or interface element `e` in the model.
(unresolved-refs-xf model)
Returns a transducer to extract unresolved refs
Returns a transducer to extract unresolved refs
(update-acc acc p e)
Update the accumulator acc
of the model with the element e
in the context of the parent p
(if given).
Update the accumulator `acc` of the model with the element `e` in the context of the parent `p` (if given).
(used-by model e)
Returns the from side of the relation of type :uses of node e
in the model
.
Returns the from side of the relation of type :uses of node `e` in the `model`.
(using model e)
Returns the to side of the relation of type :uses of node e
in the model
.
Returns the to side of the relation of type :uses of node `e` in the `model`.
(views model)
Returns the set of views from the model
.
Returns the set of views from the `model`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close