Giter Club home page Giter Club logo

swprojectday's Introduction

The program to be executed is in the SoftwareProjectDay folder,
called Main.java.
When the program is executed, it begins immediately initializing objects
and preparing to start the "day." It then starts all the threads through
a latch. There is no user input needed.

As of right now there are no configurable constants that can be safely
changed in the code. But there are a few known constants:
1/20 - the chance that an employee will ask a question each time it loops.
12 - number of employees, with 3 teams containing 4 people (and 1 lead each)
1 - number of Managers
4 - capacity of conference room
1 - number of conference rooms

The program prints out several statements anytime an event occurs, like
an employee asking a question or a manager going to lunch.
When defining the different workers, we assign them a number for their
team and position. One example is Developer "32" - He is the second
developer on team 3. Team leads are considered the first developer in
their team.
Here is an example output from the program:
12:00 Manager goes to lunch
12:00 Developer 22 asks Team Lead a question (has answer).
12:06 Developer 23 goes to lunch
12:15 Developer 13 goes to lunch
12:15 Developer 24 asks Team Lead a question (doesn't have answer).
12:15 Developer 21 passes the question to the Manager.
12:15 Developer 22 asks Team Lead a question (has answer).
12:22 Developer 32 asks Team Lead a question (has answer).
12:22 Developer 33 goes to lunch
12:41 Developer 12 goes to lunch
1:00 Manager starts answering question from Developer 21.
1:02 Developer 11 goes to lunch
1:02 Developer 23 asks Team Lead a question (has answer).
1:10 Manager answers question.
1:10 Developer 32 goes to lunch

swprojectday's People

Contributors

bcole avatar

Watchers

James Cloos avatar  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.