tutorial icon indicating copy to clipboard operation
tutorial copied to clipboard

Tutorial solutions

Open Crista2019 opened this issue 5 years ago • 0 comments

Description

Offers a potential implementation for the instructions set out in the exercises branch (#6) and addresses #5

in server/DataSource.java

  • adds two new web agents /unit/secondAgent and /unit/thirdAgent
  • manipulates the data sent to each distinct web agent to make their differences clearer

in server/UnitAgents.java

  • creates simple value lanes of type Long to show single statistics
  • offers an alternative design choice to send multiple stats to one value lane of type Value

in ui/chart.html, ui/gauge.html, ui/pie.html

  • adds a dropdown menu to select the current web agent shown and toggle between all three
  • updates the lane downlink and nodeURI whenever the current agent changes
  • visually emphasize the differences between agents with a color palette change
  • change gauge to draw info from the new stats lane (instead of latest)

Points to be addressed before merge

  • [ ] Any style conventions
  • [ ] Suggested refactoring/code clarification
  • [ ] Places where in-depth comments could be added to explain what is happening on a particular line
  • [ ] Missing aspects of swim functionality that would be useful for a user to learn

Crista2019 avatar Jul 14 '20 01:07 Crista2019