... | ... | @@ -8,7 +8,7 @@ As a simple introduction, we will implement an architecture which counts all fil |
|
|
In order to work with TeeTime you need to make sure it is added to your project. Further assistance on doing so can be found in the download section.
|
|
|
|
|
|
|
|
|
### Logic Segregation
|
|
|
### Segregate 'dat Logic
|
|
|
|
|
|
The Pipe&Filter architecture is well known for its capability to divide work into disjoint steps.
|
|
|
As - for example - a car manufacturer which divides the assembly of a new car into different steps to increase efficiency and throughput, we will also follow this guideline in our work with TeeTime.
|
... | ... | @@ -23,7 +23,7 @@ The last stage will save or print the resulting number. |
|
|
Our mission is to implement those four stages as separate filter and connect them.
|
|
|
In the following we will learn how to implement a stage.
|
|
|
|
|
|
### Implementing them Stages
|
|
|
### Implement them Stages
|
|
|
|
|
|
This section will explain the implementation of those exact stages.
|
|
|
If you want to dig deeper into the implementation mechanisms of the TeeTime framework, we recommend to take a look at [INSERT LINK](#).
|
... | ... | @@ -47,7 +47,7 @@ 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.
|
|
|
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).
|
|
|
|
|
|
### Connecting them Stages
|
|
|
### 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.
|
... | ... | @@ -56,7 +56,7 @@ We create instances of our three stages and connect them correctly. |
|
|
Please remember that TeeTime only supports uni-directed communication.
|
|
|
A sample solution can look like [this](https://build.se.informatik.uni-kiel.de/gitlab/teetime/teetime/blob/master/src/test/java/teetime/examples/filecounter/PrintResultConfig.java).
|
|
|
|
|
|
### Executing that Configuration
|
|
|
### Execute 'dat Configuration
|
|
|
|
|
|
After all the hard work you may be way to excited to go to bed yet.
|
|
|
To reap the fruits of your success you still need to execute the architecture. |