Intent

a very very OO implementation of the basic spec in Scala

Motivation

This defines a minimal approach to realize the basic spec using Scala's OO features. In Scala terms this could be considered a Java without semicolons implementation.

Architecture

The implementation features fully mutable classes and total and cut are implemented as instance methods. The implementation contains three files:

  • Company.scala contains everything related to the Company entity
  • Employee.scala contains classes describing the company personnel
  • Dept.scala contains the implementation of Departments

Usage

You need to install sbt to build and run this project as shown on the sbt website. Then change into the base directory of the project and run

 sbt update

This should fetch all needed dependencies. After that you can compile the project by typing

 sbt compile

and then

 sbt test

to run the tests.

This contribution has been tested Scala Version 2.8.1, Technology:sbt Version 0.7.4, Technology:sbt-idea Version 0.4 and Technology:ScalaTest Version 1.3.


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.