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-referred-id->rels coll)
(build-referred-id->rels m coll)
Returns a map of referred-id to relation for the relations in coll
.
Returns a map of referred-id to relation for the relations in `coll`.
(build-referrer-id->rels coll)
(build-referrer-id->rels m coll)
Returns a map of referrer-id to relation for the relations in coll
.
Returns a map of referrer-id to relation for the relations 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 :referrer -> a map from id to set of relations where the id is the referrer (:from) :referred -> a map from id to set of relations where the id is referred (:to)
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 :referrer -> a map from id to set of relations where the id is the referrer (:from) :referred -> a map from id to set of relations where the id is referred (:to)
(class-view-element? e)
Returns true if the given element e
is rendered in a UML state view.
Returns true if the given element `e` is rendered in a UML state view.
(code-view-element? 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-set)
(component-set m)
Returns the set of model components.
Returns the set of model components.
Element types of a C4 component view.
Element types of a C4 component view.
(component-view-element? e)
Returns true if the given element e
is rendered in a C4 component view.
Returns true if the given element `e` is rendered in 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.
Element types of a glossary view.
Element types of a glossary view.
(concept-view-element? 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 container view.
Element types of a C4 container view.
(container-view-element? e)
Returns true if the given element e
is rendered in a C4 container view.
Returns true if the given element `e` is rendered in 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.
Element types of a C4 context view.
Element types of a C4 context view.
(context-view-element? e)
Returns true if the given element e
is rendered in a C4 context view.
Returns true if the given element `e` is rendered in a C4 context view.
Element types of a C4 deployment view.
Element types of a C4 deployment view.
(deployment-view-element? e)
Returns true if the given element e
is rendered in a C4 deployment view.
Returns true if the given element `e` is rendered in a C4 deployment view.
Element types of a C4 dynamic view.
Element types of a C4 dynamic view.
(dynamic-view-element? e)
Returns true if the given element e
is rendered in a C4 dynamic view.
Returns true if the given element `e` is rendered in a C4 dynamic view.
(element? e)
Returns true if the given element e
has a type (:el key).
Returns true if the given element `e` has a type (:el key).
(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.
(glossary-view-element? e)
Returns true if the given element e
is rendered in a glossary view.
Returns true if the given element `e` is rendered in a glossary view.
(identifiable-element? e)
Returns true if the given element e
has an ID (:id key).
Returns true if the given element `e` has an ID (:id key).
(identifiable-named-element? e)
Returns true if the given element e
is identifiable and named.
Returns true if the given element `e` is identifiable and named.
(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.
(named-element? e)
Returns true if the given element e
has a name (:name key).
Returns true if the given element `e` has a name (:name key).
(named-relational-element e)
Returns true if the given element e
is a named relation.
Returns true if the given element `e` is a named relation.
(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.
(relational-element? 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`.
Element types of a state machine view.
Element types of a state machine view.
(state-machine-view-element? e)
Returns true if the given element e
is rendered in a UML state view.
Returns true if the given element `e` is rendered in a UML state view.
Element types of a C4 system-landscape view.
Element types of a C4 system-landscape view.
(system-landscape-view-element? e)
Returns true if the given element e
is rendered
in a C4 system landscape view.
Returns true if the given element `e` is rendered in 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`.
Element types of a use case view.
Element types of a use case view.
(use-case-view-element? e)
Returns true if the given element e
is rendered in a UML use case view.
Returns true if the given element `e` is rendered in a UML use case view.
(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