Git Product home page Git Product logo

Comments (3)

kairibu avatar kairibu commented on September 26, 2024

alternatively, the PhysicalLinks could be shown for PhysicalComponent, and a list is provisioned in the data structure but erroneously empty. Which is a bug in my understanding.

from py-capellambse.

vik378 avatar vik378 commented on September 26, 2024

You can see port from the on the link ends but not the links on the port? oh that should be super easy to add, we do that for component and function ports - I guess we didn't walk into that need on the PA somehow (cable BOM app iterated on links anyways). Since you wanted to try making a simple improvement - this might be a nice candidate. Would you like to try adding it yourself, @malnemark, or should we look into it?

if you look at component port implementation, the class itself has exchanges property typed as c.Accessor:
image

The accessor is set at the end of the module for ComponentPort and all other ports in one go:
image

you can basically do the same in cs module (https://github.com/DSD-DBS/py-capellambse/blob/0841fd7549c06860de16f7e7f719582d9aad0432/capellambse/model/crosslayer/cs.py) on PhysicalPort - add a property and set accessor later, similar to the ComponentPort example

from py-capellambse.

kairibu avatar kairibu commented on September 26, 2024

I checked: only the exchanges attribute in PhysicalPort is missing (cs.py, below line 66 ).

The accessor setting is done at cs.py lines 163 ff.

Please go ahead with the fix, I won't be able to in the next days..

from py-capellambse.

Related Issues (20)

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.