Git Product home page Git Product logo

capellambse-context-diagrams's People

Contributors

ewuerger avatar vik378 avatar wuestengecko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

capellambse-context-diagrams's Issues

Bold label text for center box

The title describes it all. This can be achieved easily by extending the filters. The task is to add a filter-function to the FILTER_LABEL_ADJUSTERS registry.

Add installation instructions for elkjs

When starting completely fresh without npm and elkjs installed, one in the documentation and can't find anything regarding installation of elkjs. This should be included. With the current version it seems like there is no need to do anything beside the pip install capellambse-context-diagrams command.

Filters not applied for interface context diagrams

It appears that filters are not applied for context diagrams of ComponentExchange objects.

Compare the first diagram (which should show the aptly named "ExchangeItem 1" on the functional exchange) with the following two diagrams for a LogicalFunction; the last of which has the FEX_OR_EX_ITEMS filter enabled as well and correctly shows the exchange item.

❯ ./capellambse/repl.py test-5.0

============================== Model exploration ===============================
`model` is '5_0' from tests/data/melodymodel/5_0/Melody Model Test.aird

>>> from capellambse_context_diagrams import filters
>>> obj = model.search("ComponentExchange").by_name("Teacher Responsibilities")
>>> obj.context_diagram.filters = [filters.FEX_OR_EX_ITEMS]
>>> obj.context_diagram
<Diagram 'Interface Context of Teacher Responsibilities'>

image

>>> obj = model.search("LogicalFunction").by_name("Teaching")
>>> obj.context_diagram
<Diagram 'Context of Teaching'>

image

>>> obj.context_diagram.filters = [filters.FEX_OR_EX_ITEMS]
>>> obj.context_diagram
<Diagram 'Context of Teaching'>

image

For a PC [NODE], there is no context shown.

For a PC [NODE], without any Physical Functions, but with deployed PC [BEHAVIOR], and Physical Links to other PC [NODE], there is no context shown, just a yellow box. Is this expected?

For this model:
grafik

The output of model.pa.all_components.by_name("PC 37").context_diagram looks as follows:
grafik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.