i11e-pipeline
v0.2.9
Published
i11e pipeline
Downloads
16
Readme
i11e pipeline
create a pipeline
You can use createPipeline method to create a pipeline model
const Pipeline = require('i11e-pipeline');
var MyPipeline = Pipeline.createPipeline({
initPipeline() {
// optional, init the pipeline
},
process(source) {
return source._()
.install(robotA)
.install(robotB);
}
});
var myPipeline = new MyPipeline();
myPipeline._()
.drive();
myPipeline.$().push({});
shortcut to create a pipeline
const Pipeline = require('i11e-pipeline');
var myPipeline = Pipeline.pipeline((source) => {
return source._()
.install(robotA)
.install(robotB);
});