Difference between revisions of "Iced Cakes Pipeline"

From CSE231 Wiki
Jump to navigation Jump to search
Line 29: Line 29:
 
=Testing Your Solution=
 
=Testing Your Solution=
 
==Visualization==
 
==Visualization==
{{Viz|CakePipelineVizApp|leggedrace.viz}}
+
{{Viz|CakePipelineVizApp|pipeline.cake.viz}}
 +
 
 +
[[File:CakePipelineScreenShot.png]]
  
Click on the buttons on the right to visualize your solutions when you have implemented them.
 
  
 
==Correctness==
 
==Correctness==
{{TestSuite|CakePipelineTestSuite|pipeline.cake.viz}}
+
{{TestSuite|CakePipelineTestSuite|pipeline.cake.studio}}
 
 
{{TestSuite|PartialCreditLeggedRaceTestSuite|leggedrace.studio}}
 
  
 
When you are passing the tests and your visualization looks good, demo it to an instructor.
 
When you are passing the tests and your visualization looks good, demo it to an instructor.

Revision as of 08:23, 2 April 2018

Motivation

Pipelines can increase throughput when processing a stream of data. We will gain additional experience with Phasers by building a software pipeline.

Backgroud

Code To Use

Cakes

Looping

Java For Loop

Phasers

class Phaser (Guide to the Java Phaser)

register
arrive
awaitAdvance

Questions To Ask Yourself

  1. What are my tasks?
  2. What work does each task need to do?
  3. What, if anything, does each task depend upon? That is: what does each task have to wait for before it may proceed?

Code To Implement

class: CakePipeline.java Java.png
methods: mixBakeAndIceCakes
package: pipeline.cake.studio
source folder: student/src/main/java

method: public static IcedCake[] mixBakeAndIceCakes(Mixer mixer, Baker baker, Icer icer, int cakeCount) Parallel.svg (parallel implementation required)

Testing Your Solution

Visualization

class: CakePipelineVizApp.java VIZ
package: pipeline.cake.viz
source folder: student/src//java

CakePipelineScreenShot.png


Correctness

class: CakePipelineTestSuite.java Junit.png
package: pipeline.cake.studio
source folder: testing/src/test/java

When you are passing the tests and your visualization looks good, demo it to an instructor.