Intent

an implementation of the basic spec in Language:Scala providing typeclass based serialization using SJSON

Motivation

This implementation utilizes a more idiomatic, functional style approach than implementation:scala. The model is realized using only immutable data structures and the total and cut computation are realized by recursively mapping over the elements of the department tree. Because the model is immutable, it is easily serialized. In addition, an example of JSON serialization was implemented using the sjson Library by Debasish Ghosh. Serialization patterns for all types of the Company domain are realized by implementing typeclass for each one. Such serialization implements Feature:Parsing and Feature:Unparsing.

Architecture

The implementation is straightforward. All of the basic features are contained in Company.scala and serialization is implemented in JSONSerialization.scala. Basic test cases are provided.

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.

Metadata


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.

    10 most similar pages:

    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.