... | ... | @@ -44,13 +44,13 @@ Of course, there is also a [sample solution](https://build.se.informatik.uni-kie |
|
|
|
|
|
After all the hard work, we will finish everything by implementing the ```ResultPrinter```.
|
|
|
It receives elements of the type ```Integer``` and prints them to the console.
|
|
|
As this is a simple consumer, ```teetime.framework.AbstractConsumerStage``` should also be used here.
|
|
|
As this is a simple consumer, ```teetime.framework.AbstractConsumerStage``` should also be used here.
|
|
|
This few lines of code may look like [this](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/PrintResult.java).
|
|
|
|
|
|
### Connect them Stages
|
|
|
|
|
|
What splendid stages we have, which are waiting to be connected.
|
|
|
Analogous to integrated circuits which are connected through their ports, we only need to connect the ports of the stages which want to communicate with each other.
|
|
|
What splendid stages we have, which await to be connected.
|
|
|
Analogous to integrated circuits which are connected through their ports, we only need to connect the ports of the stages with pipes.
|
|
|
For this purpose we can use the class ```teetime.framework.Configuration```.
|
|
|
We create instances of our three stages and connect them correctly.
|
|
|
Please remember that TeeTime only supports uni-directed communication.
|
... | ... | |