Skip to content
Snippets Groups Projects
Commit f23ec4bd authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added an example

parent 623d6f8a
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -4,3 +4,27 @@ Import all projects into eclipse, right-click on teetime.configuration.klighd/pl
and then Run as -> Eclipse Application.
You can now create .configuration models and visualize them by right-clicking on the file and then "Open Configuration Diagram".
example:
de.dsl.evaluation EvalConfiguration(File input, File output, String password){
//imports
import java.io.File
import teetime.stage.ZipByteArray.ZipMode
import teetime.stage.io.File2ByteArray
import teetime.stage.CipherStage.CipherMode
//stages
InitialElementProducer<File> init(input)
File2ByteArray f2b
active CipherStage enc(password, CipherMode.ENCRYPT)
ZipByteArray comp(ZipMode.COMP)
ZipByteArray decomp(ZipMode.DECOMP)
active teetime.stage.CipherStage decrypt(password, CipherMode.DECRYPT)
teetime.stage.io.ByteArrayFileWriter writer(output)
//connections
init.asd->enc.sfd
comp->decrypt->enc
f2b->enc
decomp->writer->enc
f2b->init
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment