Giter VIP home page Giter VIP logo

Comments (4)

kostobog avatar kostobog commented on July 19, 2024

There some minor problems with this pull request.

  • the description field should be added to the behavior class and removed in inheriting classes.
  • Behavior.impairedBehaviors should use the impairs relationship instead of impairedBy IRI.

Refactoring of code using the old model:

  • in FailureModesTableRepositoryService.computeTableRows line 144, there is a question regarding mitigation. The mitigation is a behavior which impairs the failure mode. For now select those behaviors that impair the failure mode and are of the mitigation type.
  • FaultTreeRepositoryService.transferBehaviorToFaultEvent - the required behaviors of the input behavior are assigned to the newly created failureMode. This is not correct if the behavior is a function. In this case the function's requirements should not be added as requirements to the newly created failure mode.
  • FunctionRepositoryService.deleteFunction(URI functionUri, URI dependentBehaviorUri) - refactor/rename this method and the second parameter to FunctionRepositoryService.deleteRequiredBehavior(URI functionUri, URI requiredFunction).

Some code is not code is not compilable due chnages in the model. Resolve compilation errors in:

  • FaultEventRepositoryServiceTest.addFailureMode_shouldSetData_shouldUpdateEvent
  • FaultEventRepositoryServiceTest.deleteFailureMode_shouldRemoveFromEventFromFailureModeEffects

from fta-fmea.

Matthew-Kulich avatar Matthew-Kulich commented on July 19, 2024

"Behavior.impairedBehaviors should use the impairs relationship instead of impairedBy IRI."
I coded that from the other direction -> that means for example: Function is impaired by FailureMode and not FailureMode impairs Function. But i can rewrite it, theres no problem with that.

from fta-fmea.

kostobog avatar kostobog commented on July 19, 2024

Regarding the Behavior.impairedBehaviors IRI

The issue was that the label of the field was inconsistent with the mapped IRI. Now the naming convention is ok. For reference, the correct association with field names and IRIs is:

  • "impairedBehaviors" with IRI "impairs" and
  • "impairingBehavoirs" with "impairedBy".

from fta-fmea.

kostobog avatar kostobog commented on July 19, 2024

I found some additional issues with this pull request.

Fix Naming Convention

  • accessor methods of Beavior.manifestations field - refactor/rename the accessor methods from add/removeManifestationBehavior to either add/removeManifestation to consistent with the getter and setter methods of the field.

Fix the Event-Behavior Relationship

  • add behavior field to the Event class. This is necessary because both sides of the relationships are used in the code.
  • revize usage of both sides of the event-behavior relationship. Make sure that setting the relationship is done on the side of the Event as it has one reference to a behavior.
  • Implement the setter method of the behavior in the Event class to update the other side of the relationship, i.e. the Behavior.manifestations field.

from fta-fmea.

Related Issues (11)

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.