Intent

The present project provides a simple implementation of 101companies in Clojure.

Description

We define the company's hierarchical structure by making use of clojure's defrecord. defrecord will generate compiled class bytecode for companies, departments and employees. Each class with a set of the given fields.

There are two scenarios: Cutting and summing up salaries in a company. We also provide a sample company (meganalysis).

Architecture of the project


In company.clj we make use of clojure's defrecord to define the companies structure. scenarios.clj provides functionality to cut and total salaries. A sample company can be found in meganalysis.clj

Requirements

We make use of CounterClockwise: http://code.google.com/p/counterclockwise/ Update Site: http://updatesite.counterclockwise.googlecode.com/hg/

Demo

To run a demo:

  • Open meganalysis.clj
  • Hit "run"
  • Type "(totalCompany meganalysis)" or "(totalCompany (cutCompany meganalysis))" to cut and total the sample company's salaries.


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.