Giter Site home page Giter Site logo

software-architectures-assignment-4's Introduction

Software Architectures Assignment 4

From the assignment sheet:

In this assignment, you will refine the Families metamodel from the tutorial, and write a new ATL transformation to create an instance of this refined metamodel:

  • Create a new metamodel named ExtendedFamilies.ecore. Create a Family class and a “Person” class. The Person class is an abstract class. Create two subclasses of Person: Male and Female. In the Family class, create a lastName attribute [1..1] of type Estring and a members reference [0..*] of type Person, members is a containment reference. Also add a noOfChildren attribute [0..*] of type EInt. In the Person class, create a firstName attribute [1..1] of type EString, a family reference [0..1] of type Family, a children reference [0..*] of type Person, and a parents reference [0..2] of type Person. The family reference is the opposite of the members attribute in the Family class, and the children reference is the opposite of the parents reference.
  • Create a new ATL transformation module named Families2ExtendedFamilies.atl. This transformation should transform each Member to a Male or a Female and set the correct parent/child references. Also add to the above noOfChildren attribute the number of children of each family.
  • A new policy requires that the transformation output to also indicate if a family is single-parent or not as an attribute (in addition to the lastName). Add the necessary setup/rules to enforce this. Use the same transformation module as in Q2.

Use abstract rules, helpers and rule inheritance where possible (e.g. A Member2Person abstract rule that specifies how a Member instance is transformed to a Person instance, without going into details about Male/Female or parent/child), and make sure you comment your intentions in the code.

software-architectures-assignment-4's People

Contributors

arnomoonens avatar

Watchers

 avatar  avatar

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.