Skip to content

borkdude/HUSACCT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HUSACCT project

What does HUSACCT Stand for?

It stands for: Software Architecture Comformance Checking Tool
HU stands for: Hogeschool Utrecht (HU University of Applied Sciences Utrecht, The Netherlands. The school at which this project is taking place.)

What is a Software Architecture Conformance Checking Tool?

When building new software, software architects design an architecture for the application. The programmers are tasked with realizing the application based on the designed architecture.

To see if the realized architecture is conforms to the designed architecture we can use a SACC-Tool. The following steps are taken to do this.

Analyse an architecture

By analyzing the built application we can break down the structure of the application. That way we can use the physical entities that are detected to define an architecture.
This also allows architects and programmers to view a graphical representation of the realized software architecture, but that is not good enough. We want to be able to check the analyzed software architecture against an architectural model.

Define an architecture

Within this tool we define the architecture designed by the architects and the rules that apply to it. We create logical modules such as Layers and define rules that should be followed. Think of the communication rules present in the MVC pattern.

Examples:

  1. Logical Layer 'Presentation' is allowed to use Logical Layer 'Task',
    but not with Logical Layer 'Infrastructure'.
  2. Package 'database' is not allowed to use package 'gui'.
  3. Class 'MySQLDatbaseImpl' is not allowed to use class 'UserRegistrationController'.

(not actual syntax/code used in the tool)

Mapping the defined architecture

We then map the physical entities we found by analyzing to the defined logical modules. That way the tool knows which physical entities (such as namespaces, packages, classes, interfaces, etc.) are present in which logical module.

Examples:

  1. Package 'gui' should be present in Logical Layer 'Presentation'.
  2. Package 'database.mysql' should be present in Logical Layer 'Infrastructure'.
  3. Class 'UserRegistrationController' should be present in Logical Layer 'Presentation'.

(not actual syntax/code used in the tool)

Executing a conformance check

By executing a conformance check we can see if any of the specified rules are broken. A SACC-Tool automates the process of checking whether or not these rules are broken. The reports from this conformance check will list/display the violations that occur between entities.

Using the results from this conformance check programmers and architects can evaluate their realized software architecture. If there are serious issues they can improve it by changing the program so that it follows the specified rules. That way they are making the software as it was meant to be.

Why build a Software Architecture Conformance Checking Tool?

After conducting research into other SACC-tools we found out that the tools not always are as user friendly and/or as accurate as we had expected. We were then assigned to create our own SACC-tool and improve on some concepts we found lacking in others.

The application we were instructed to build is meant to be a contribution to the field of Software Architecture analysis and evaluation.

Support

The tool itself is written in Java.
Currently there is support for the following languages:

  • Java (Using Antlr)
  • .NET C# (Using Antlr)

We are trying to build support for the following rule types:

  • Unique responsibility
  • Visibility convention
  • Naming convention
  • Subclass convention
  • Interface convention
  • Is allowed to use
    • Is only allowed to use
    • Is the only module allowed to use
    • Must use
  • Is not allowed to
    • use modules in a higher layer
    • use modules in a not directly lower layer
  • Exceptions to all those rules

Also we will try to support the following violation types:

  • Invocation of a Method
  • Invocation of a Constructor
  • Access to a property or field
  • Extending a concrete class
  • Extending a abstract class
  • Implementing a interface
  • Declaration
  • Annotation
  • Import
  • Exception

The architecture should allow for expansions to support more languages and rule types.

Plugins

Eclipse IDE

An Eclipse plugin is available. (Eclipse plugin repository)

Maven

A Maven plugin is also available. (Maven plugin repository)

Build team

This project involves six teams from two classes in their third year (Bachelor Computer Science Informatics) over the course of two years (2011-2012 and 2012-2013), with 4 to 5 people a team. Each team is responsible for a different service (control, analyze (Java and .NET), define, validate and architecture graphics).

Conclusion

The project is ongoing and is meant to be completed around July 2013.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Java 94.9%
  • JavaScript 4.4%
  • Other 0.7%