My HLD - Shodor

advertisement
Fashionista Phil: Trending Now - High Level Design (HLD) Document
1. Introduction
Your Problem
Fashionista Phil has jumped into the non-hipster fashion world. He wants to
understand colors and trends that occur often. In order to do that, he would like to
model a certain number of people change color trends over 10 years. In his fashion
world, everybody walks randomly around the world. Every time person 1 meets
person 2 and they are wearing the same color, they will continue to walk randomly
around the world. Every time somebody meets somebody and they are wearing
different colors, there is a chance person 1 will start wearing person 2’s color of
clothing, or person 2 will start wearing person 1’s color of clothing. There is also a
chance that nothing will happen (no interaction) when two people meet. The more
people that are wearing the same color there are, the more people will start wearing
that color. After that color is popular for a certain amount of time, that color trend
will change, and random colors will be reassigned to the people and a new color
should start to trend more. The only people who don’t care about the color trends
are the hipsters. They move randomly around the world and wear whatever they
would like to wear. They should not affect what the other people wear, nor should
other people affect what they wear. They are completely independent from the other
people.
Your Assignment
Fashionista Phil would like you to help him model how the fashion world will
look like over the next 10 (3652 days) years or more, so that Phil will have a better
understanding on the fashion world and what colors he would like to design. He
would like to see the different color trends. He wants to be able to stop the model at
any time in the program and see what colors are trending. For example, if blue is an
extremely popular color, he would like to see that blue is the most popular color
through a graph that corresponds with the model. Phil would like to see many colors
trend and he wants to also see the hipsters not care about the fashion world. He
wants the hipster’s style to be completely different from the other people’s style. Phil
would like to watch trends, so he can start making his own fashion styles and trends.
He has requested that you build an agent model (using AgentSheets) to show this.
2. Subject Matter Experts Agreement List
Name
Title/Role
Mandatory
Reviewer (Y/N)
Aneesha Manocha
Developer
Y
Phil List
Supervisor
Y
Amalan Iyengar
Intern-apprentice
wrangler
Y
Approved
3. Requirements
The Challenge
You want to find all possible color trends throughout the period of time, while also
making sure hipsters are not involved in this process of color trends. You want to
accurately display all potential color trends and how long they could last. When you
find different, popular color trends, display them in a graph for Phil to watch.
Variables you can change:
 Number of people involved in the color trend
 Number of hipsters
 Number of colors
Variables you are watching:
 Trending colors
 Hipster’s colors
 Colors that fall and rise with the trend
Your Presentation
It is necessary to complete this model and present it to the rest of the office. Your
presentation style needs to be as if you are showing this to Fashionista Phil. Make
sure to answer the following questions in your presentation:
 What are the most and least popular colors in the model?
 What are your findings in the model?
 What are some advantages and disadvantages of this particular modeling
style?


What was the easiest thing in the model?
What was the most challenging part of the model? Why?
You Need To Complete


An Agent Model
A Presentation
4. Timeline
This is due within five days of receipt of the task. It is better to complete this sooner.
5. Desired Behavior / Components
The World
The world is a 30 x 30 white grid on which everyone walks randomly.
The People
The world of Fashionista Phil has two kinds of people – color trend people and
hipsters. Here is a detailed description on how each person behaves:
 Color Trend People: These people walk around the world randomly. At the
beginning of each model, random colors are assigned to these people. There
must be at least five distinct colors. When a color trend person meets (is
standing next to) another color trend person, there is a 33% chance that
person 1 will start wearing the color trend of person 2, a 33% chance that
person 2 will start wearing the color trend of person 1, and a 33% chance
that nothing will happen and they will continue walking randomly in the
world. If two color trend people meet and are wearing the same colored
clothing, they will continue to walk randomly. When a color trend person
meets a hipster, they should ignore each other and continue to move
randomly around the world. After at least 50% of the people in the model are
wearing the same popular color trend for 5 time steps, random colors should
be reassigned to the color trend people, so a new color trend may start
appearing.
o Number of Color Trend People: 100 (there should be around 10
people wearing each color when the model starts)

Hipsters: These people walk around the world randomly. Whenever they
interact with a color trend person or another hipster, they are to continue
walking around randomly. Nothing can change the hipster’s behavior.
o Number of Hipsters: 20 (they should be easy to point out and
completely different from all color trend people)
Depictions
The color trend people have at least 5 depictions (the colors). The hipsters have no
depictions.
Graph
There should be a graph showing each color and their rise and fall with popularity.
6. Conclusion
The goal is this activity is to show your understanding of computer modeling, Agent
Sheets, and system-based modeling.
Questions to Answer –



If you could go back, would you have done anything differently? If yes, why?
What was the easiest part of this model?
How could you enhance this model if you had more time?
Download