Functions for the definition and handling of the overarch model.
Functions for the definition and handling of the overarch model.
(aggregable-relation? r1 r2)
(aggregable-relation? m r1 r2)
Returns true, if the relations r1
and r2
are aggregable.
Returns true, if the relations `r1` and `r2` are aggregable.
(all-elements)
(all-elements m)
Returns a set of all elements.
Returns a set of all elements.
(build-id->elements coll)
(build-id->elements m coll)
Returns a map of id to element for the elements of the coll
.
Returns a map of id to element for the elements of the `coll`.
(build-id->parent coll)
(build-id->parent m p coll)
Returns a map of child id to parent element for the elements in coll
.
Returns a map of child id to parent element for the elements in `coll`.
(build-registry elements)
Returns a map with the original elements
and a registry by id for lookups.
The map has the following shape:
:elements -> the given data :registry -> a map from id to element :parents -> a map from id to parent element
Returns a map with the original `elements` and a registry by id for lookups. The map has the following shape: :elements -> the given data :registry -> a map from id to element :parents -> a map from id to parent element
(code-level? e)
Returns true if the given element e
is rendered in a code view.
Returns true if the given element `e` is rendered in a code view.
(component-level? e)
Returns true if the given element e
is rendered in a component view.
Returns true if the given element `e` is rendered in a component view.
Element types of a C4 component view.
Element types of a C4 component view.
(component? e)
Returns true if the given element e
is a container element.
Returns true if the given element `e` is a container element.
(container-level? e)
Returns true if the given element e
is rendered in a container view.
Returns true if the given element `e` is rendered in a container view.
Element types of a C4 container view.
Element types of a C4 container view.
(container? e)
Returns true if the given element e
is a container element.
Returns true if the given element `e` is a container element.
(context-level? e)
Returns true if the given element e
is rendered in a context view.
Returns true if the given element `e` is rendered in a context view.
Element types of a C4 context view.
Element types of a C4 context view.
(deployment-level? e)
Returns true if the given element e
is rendered in a deployment view.
Returns true if the given element `e` is rendered in a deployment view.
Element types of a C4 deployment view.
Element types of a C4 deployment view.
(dynamic-level? e)
Returns true if the given element e
is rendered in a dynamic view.
Returns true if the given element `e` is rendered in a dynamic view.
Element types of a C4 dynamic view.
Element types of a C4 dynamic view.
(external? e)
Returns true if the given element e
is external.
Returns true if the given element `e` is external.
(get-model-element id)
(get-model-element m id)
Returns the model element with the given id
.
Returns the model element with the given `id`.
(get-model-elements)
(get-model-elements m)
Returns the collection of model elements.
Returns the collection of model elements.
(get-parent-element e)
(get-parent-element m e)
Returns the parent of the element e
.
Returns the parent of the element `e`.
(get-view id)
(get-view m id)
Returns the view with the given id.
Returns the view with the given id.
(get-views)
(get-views m)
Returns the collection of views.
Returns the collection of views.
(identifiable? e)
Returns true if the given element e
has an ID.
Returns true if the given element `e` has an ID.
(model-element? e)
Returns true if the given element e
is a model element.
Returns true if the given element `e` is a model element.
(model-elements coll)
Filters the given collection of elements coll
for model elements.
Filters the given collection of elements `coll` for model elements.
Element types for the architectural model.
Element types for the architectural model.
(node? e)
Returns true if the given element e
is a node element.
Returns true if the given element `e` is a node element.
(person? e)
Returns true if the given element e
is a person element.
Returns true if the given element `e` is a person element.
(read-elements dir)
Reads the elements of data from the given directory dir
.
Reads the elements of data from the given directory `dir`.
(reference? e)
Returns true if the given element e
is a reference.
Returns true if the given element `e` is a reference.
(related-elements coll)
Returns the set of elements that are part of at least one relation.
Returns the set of elements that are part of at least one relation.
(relation? e)
Returns true if the given element e
is a relation.
Returns true if the given element `e` is a relation.
(resolve-ref e)
(resolve-ref m e)
Resolves the model element for the ref e
.
Resolves the model element for the ref `e`.
(system-landscape-level? e)
Returns true if the given element e
is rendered
in a system landscape view.
Returns true if the given element `e` is rendered in a system landscape view.
Element types of a C4 system-landscape view.
Element types of a C4 system-landscape view.
(system? e)
Returns true if the given element e
is a system element.
Returns true if the given element `e` is a system element.
(unconnected-components)
(unconnected-components m)
Returns the set of elements that are not connected with any other element by a relation.
Returns the set of elements that are not connected with any other element by a relation.
(update-state! dir)
Updates the state with the registered data read from dir
.
Updates the state with the registered data read from `dir`.
(view? e)
Returns true if the given element e
is a view.
Returns true if the given element `e` is a view.
(views coll)
Filters the given collection of elements coll
for views.
Filters the given collection of elements `coll` for views.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close