Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
FragmentSpecification.cpp
Go to the documentation of this file.
2
3#include <iostream>
5
6namespace storm {
7namespace logic {
8
11
12 propositional.setBooleanLiteralFormulasAllowed(true);
13 propositional.setBinaryBooleanStateFormulasAllowed(true);
14 propositional.setUnaryBooleanStateFormulasAllowed(true);
15 propositional.setAtomicExpressionFormulasAllowed(true);
16 propositional.setAtomicLabelFormulasAllowed(true);
17
18 return propositional;
19}
20
23
24 reachability.setProbabilityOperatorsAllowed(true);
25 reachability.setUntilFormulasAllowed(true);
26 reachability.setReachabilityProbabilityFormulasAllowed(true);
27 reachability.setOperatorAtTopLevelRequired(true);
28 reachability.setNestedOperatorsAllowed(false);
29
30 return reachability;
31}
32
35
36 pctl.setProbabilityOperatorsAllowed(true);
37 pctl.setGloballyFormulasAllowed(true);
38 pctl.setReachabilityProbabilityFormulasAllowed(true);
39 pctl.setNextFormulasAllowed(true);
40 pctl.setUntilFormulasAllowed(true);
41 pctl.setBoundedUntilFormulasAllowed(true);
42 pctl.setStepBoundedUntilFormulasAllowed(true);
43 pctl.setTimeBoundedUntilFormulasAllowed(true);
44
45 return pctl;
46}
47
50
51 pctlstar.setBinaryBooleanPathFormulasAllowed(true);
52 pctlstar.setUnaryBooleanPathFormulasAllowed(true);
53 pctlstar.setNestedOperatorsAllowed(true);
54 pctlstar.setNestedPathFormulasAllowed(true);
55 pctlstar.setHOAPathFormulasAllowed(true);
56 pctlstar.setWeakUntilFormulasAllowed(true);
57 pctlstar.setReleaseFormulasAllowed(true);
58
59 return pctlstar;
60}
61
64
65 flatPctl.setNestedOperatorsAllowed(false);
66
67 return flatPctl;
68}
69
72
73 // TODO: Only allow OperatorFormulas when they are inside of a GameFormula?
74 // TODO: Require that operator formulas are required at the top level of a GameFormula?
75 rpatl.setGameFormulasAllowed(true);
76 rpatl.setRewardOperatorsAllowed(true);
77 rpatl.setLongRunAverageRewardFormulasAllowed(true);
78 rpatl.setLongRunAverageOperatorsAllowed(true);
79
80 return rpatl;
81}
82
85
86 prctl.setRewardOperatorsAllowed(true);
87 prctl.setCumulativeRewardFormulasAllowed(true);
88 prctl.setInstantaneousFormulasAllowed(true);
89 prctl.setReachabilityRewardFormulasAllowed(true);
90 prctl.setLongRunAverageOperatorsAllowed(true);
91 prctl.setStepBoundedCumulativeRewardFormulasAllowed(true);
92 prctl.setTimeBoundedCumulativeRewardFormulasAllowed(true);
93
94 return prctl;
95}
96
99
100 prctlstar.setRewardOperatorsAllowed(true);
101 prctlstar.setCumulativeRewardFormulasAllowed(true);
102 prctlstar.setInstantaneousFormulasAllowed(true);
103 prctlstar.setReachabilityRewardFormulasAllowed(true);
104 prctlstar.setLongRunAverageOperatorsAllowed(true);
105 prctlstar.setStepBoundedCumulativeRewardFormulasAllowed(true);
106 prctlstar.setTimeBoundedCumulativeRewardFormulasAllowed(true);
107
108 return prctlstar;
109}
110
113
114 csl.setTimeBoundedUntilFormulasAllowed(true);
115
116 return csl;
117}
118
121
122 cslstar.setBinaryBooleanPathFormulasAllowed(true);
123 cslstar.setUnaryBooleanPathFormulasAllowed(true);
124 cslstar.setNestedOperatorsAllowed(true);
125 cslstar.setNestedPathFormulasAllowed(true);
126 cslstar.setHOAPathFormulasAllowed(true);
127
128 return cslstar;
129}
130
133
134 csrl.setRewardOperatorsAllowed(true);
135 csrl.setCumulativeRewardFormulasAllowed(true);
136 csrl.setInstantaneousFormulasAllowed(true);
137 csrl.setReachabilityRewardFormulasAllowed(true);
138 csrl.setLongRunAverageOperatorsAllowed(true);
139 csrl.setTimeBoundedCumulativeRewardFormulasAllowed(true);
140
141 return csrl;
142}
143
146
147 csrlstar.setRewardOperatorsAllowed(true);
148 csrlstar.setCumulativeRewardFormulasAllowed(true);
149 csrlstar.setInstantaneousFormulasAllowed(true);
150 csrlstar.setReachabilityRewardFormulasAllowed(true);
151 csrlstar.setLongRunAverageOperatorsAllowed(true);
152 csrlstar.setTimeBoundedCumulativeRewardFormulasAllowed(true);
153
154 return csrlstar;
155}
156
159
160 multiObjective.setMultiObjectiveFormulasAllowed(true);
161 multiObjective.setMultiObjectiveFormulaAtTopLevelRequired(true);
162 multiObjective.setNestedMultiObjectiveFormulasAllowed(false);
163 multiObjective.setOperatorsAtTopLevelOfMultiObjectiveFormulasRequired(true);
164 multiObjective.setNestedOperatorsInsideMultiObjectiveFormulasAllowed(false);
165 multiObjective.setProbabilityOperatorsAllowed(true);
166 multiObjective.setUntilFormulasAllowed(true);
167 multiObjective.setGloballyFormulasAllowed(true);
168 multiObjective.setReachabilityProbabilityFormulasAllowed(true);
169 multiObjective.setRewardOperatorsAllowed(true);
170 multiObjective.setReachabilityRewardFormulasAllowed(true);
171 multiObjective.setTotalRewardFormulasAllowed(true);
172 multiObjective.setBoundedUntilFormulasAllowed(true);
173 multiObjective.setStepBoundedUntilFormulasAllowed(true);
174 multiObjective.setTimeBoundedUntilFormulasAllowed(true);
175 multiObjective.setLongRunAverageOperatorsAllowed(true);
176 multiObjective.setLongRunAverageRewardFormulasAllowed(true);
177
178 return multiObjective;
179}
180
183
184 lexObjective.setMultiObjectiveFormulasAllowed(true);
185 lexObjective.setMultiObjectiveFormulaAtTopLevelRequired(true);
186 lexObjective.setNestedMultiObjectiveFormulasAllowed(false);
187 lexObjective.setOperatorsAtTopLevelOfMultiObjectiveFormulasRequired(true);
188 lexObjective.setNestedOperatorsInsideMultiObjectiveFormulasAllowed(false);
189 lexObjective.setProbabilityOperatorsAllowed(true);
190 lexObjective.setUntilFormulasAllowed(true);
191 lexObjective.setGloballyFormulasAllowed(true);
192 lexObjective.setReachabilityProbabilityFormulasAllowed(true);
193 lexObjective.setRewardOperatorsAllowed(true);
194 lexObjective.setReachabilityRewardFormulasAllowed(true);
195 lexObjective.setTotalRewardFormulasAllowed(true);
196 lexObjective.setBoundedUntilFormulasAllowed(true);
197 lexObjective.setStepBoundedUntilFormulasAllowed(true);
198 lexObjective.setTimeBoundedUntilFormulasAllowed(true);
199 lexObjective.setLongRunAverageOperatorsAllowed(true);
200 lexObjective.setLongRunAverageRewardFormulasAllowed(true);
201
202 lexObjective.setCumulativeRewardFormulasAllowed(true);
203 lexObjective.setInstantaneousFormulasAllowed(true);
204 lexObjective.setStepBoundedCumulativeRewardFormulasAllowed(true);
205 lexObjective.setTimeBoundedCumulativeRewardFormulasAllowed(true);
206 lexObjective.setBinaryBooleanPathFormulasAllowed(true);
207 lexObjective.setUnaryBooleanPathFormulasAllowed(true);
208 lexObjective.setNestedOperatorsAllowed(true);
209 lexObjective.setNestedPathFormulasAllowed(true);
210 lexObjective.setHOAPathFormulasAllowed(true);
211 lexObjective.setProbabilityOperatorsAllowed(true);
212 lexObjective.setGloballyFormulasAllowed(true);
213 lexObjective.setReachabilityProbabilityFormulasAllowed(true);
214 lexObjective.setNextFormulasAllowed(true);
215 lexObjective.setUntilFormulasAllowed(true);
216 lexObjective.setBoundedUntilFormulasAllowed(true);
217 lexObjective.setStepBoundedUntilFormulasAllowed(true);
218 lexObjective.setTimeBoundedUntilFormulasAllowed(true);
219
220 return lexObjective;
221}
222
225
226 quantiles.setQuantileFormulasAllowed(true);
227 quantiles.setQuantileFormulaAtTopLevelRequired(true);
228 quantiles.setProbabilityOperatorsAllowed(true);
229 quantiles.setRewardOperatorsAllowed(true);
230 quantiles.setBoundedUntilFormulasAllowed(true);
231 quantiles.setStepBoundedUntilFormulasAllowed(true);
232 quantiles.setTimeBoundedUntilFormulasAllowed(true);
233 quantiles.setRewardBoundedUntilFormulasAllowed(true);
234 quantiles.setStepBoundedCumulativeRewardFormulasAllowed(true);
235 quantiles.setTimeBoundedCumulativeRewardFormulasAllowed(true);
236 quantiles.setRewardBoundedCumulativeRewardFormulasAllowed(true);
237 quantiles.setCumulativeRewardFormulasAllowed(true);
238 quantiles.setMultiDimensionalBoundedUntilFormulasAllowed(true);
239 quantiles.setMultiDimensionalCumulativeRewardFormulasAllowed(true);
240
241 return quantiles;
242}
243
245 probabilityOperator = false;
246 rewardOperator = false;
247 expectedTimeOperator = false;
248 longRunAverageOperator = false;
249
250 multiObjectiveFormula = false;
251 quantileFormula = false;
252
253 globallyFormula = false;
254 reachabilityProbabilityFormula = false;
255 nextFormula = false;
256 untilFormula = false;
257 boundedUntilFormula = false;
258 weakUntilFormula = false;
259 releaseFormula = false;
260 hoaPathFormula = false;
261
262 atomicExpressionFormula = false;
263 atomicLabelFormula = false;
264 booleanLiteralFormula = false;
265 unaryBooleanStateFormula = false;
266 binaryBooleanStateFormula = false;
267 unaryBooleanPathFormula = false;
268 binaryBooleanPathFormula = false;
269
270 cumulativeRewardFormula = false;
271 instantaneousRewardFormula = false;
272 reachabilityRewardFormula = false;
273 longRunAverageRewardFormula = false;
274 totalRewardFormula = false;
275
276 conditionalProbabilityFormula = false;
277 conditionalRewardFormula = false;
278
279 reachabilityTimeFormula = false;
280
281 gameFormula = false;
282
283 nestedOperators = true;
284 nestedPathFormulas = false;
285 nestedMultiObjectiveFormulas = false;
286 nestedOperatorsInsideMultiObjectiveFormulas = false;
287 onlyEventuallyFormuluasInConditionalFormulas = true;
288 stepBoundedUntilFormulas = false;
289 timeBoundedUntilFormulas = false;
290 rewardBoundedUntilFormulas = false;
291 multiDimensionalBoundedUntilFormulas = false;
292 stepBoundedCumulativeRewardFormulas = false;
293 timeBoundedCumulativeRewardFormulas = false;
294 rewardBoundedCumulativeRewardFormulas = false;
295 multiDimensionalCumulativeRewardFormulas = false;
296
297 qualitativeOperatorResults = true;
298 quantitativeOperatorResults = true;
299
300 operatorAtTopLevelRequired = false;
301 multiObjectiveFormulaAtTopLevelRequired = false;
302 operatorsAtTopLevelOfMultiObjectiveFormulasRequired = false;
303 quantileFormulaAtTopLevelRequired = false;
304
305 rewardAccumulation = false;
306
307 discountedCumulativeRewardFormula = false;
308 discountedTotalRewardFormula = false;
309}
310
314
316 return probabilityOperator;
317}
318
320 this->probabilityOperator = newValue;
321 return *this;
322}
323
325 return rewardOperator;
326}
327
329 this->rewardOperator = newValue;
330 return *this;
331}
332
334 return expectedTimeOperator;
335}
336
338 this->expectedTimeOperator = newValue;
339 return *this;
340}
341
343 return longRunAverageOperator;
344}
345
347 this->longRunAverageOperator = newValue;
348 return *this;
349}
350
352 return multiObjectiveFormula;
353}
354
356 this->multiObjectiveFormula = newValue;
357 return *this;
358}
359
361 return quantileFormula;
362}
363
365 this->quantileFormula = newValue;
366 return *this;
367}
368
370 return globallyFormula;
371}
372
374 this->globallyFormula = newValue;
375 return *this;
376}
377
379 return reachabilityProbabilityFormula;
380}
381
383 this->reachabilityProbabilityFormula = newValue;
384 return *this;
385}
386
388 return nextFormula;
389}
390
392 this->nextFormula = newValue;
393 return *this;
394}
395
397 return untilFormula;
398}
399
401 this->untilFormula = newValue;
402 return *this;
403}
404
406 return weakUntilFormula;
407}
408
410 this->weakUntilFormula = newValue;
411 return *this;
412}
413
415 return releaseFormula;
416}
417
419 this->releaseFormula = newValue;
420 return *this;
421}
422
424 return boundedUntilFormula;
425}
426
428 this->boundedUntilFormula = newValue;
429 return *this;
430}
431
433 return hoaPathFormula;
434}
435
437 this->hoaPathFormula = newValue;
438 return *this;
439}
440
442 return atomicExpressionFormula;
443}
444
446 this->atomicExpressionFormula = newValue;
447 return *this;
448}
449
451 return atomicLabelFormula;
452}
453
455 this->atomicLabelFormula = newValue;
456 return *this;
457}
458
460 return booleanLiteralFormula;
461}
462
464 this->booleanLiteralFormula = newValue;
465 return *this;
466}
467
469 return unaryBooleanStateFormula;
470}
471
473 this->unaryBooleanStateFormula = newValue;
474 return *this;
475}
476
478 return unaryBooleanPathFormula;
479}
480
482 this->unaryBooleanPathFormula = newValue;
483 return *this;
484}
485
487 return binaryBooleanStateFormula;
488}
489
491 this->binaryBooleanStateFormula = newValue;
492 return *this;
493}
494
496 return binaryBooleanPathFormula;
497}
498
500 this->binaryBooleanPathFormula = newValue;
501 return *this;
502}
503
505 return cumulativeRewardFormula;
506}
507
509 this->cumulativeRewardFormula = newValue;
510 return *this;
511}
512
514 return instantaneousRewardFormula;
515}
516
518 this->instantaneousRewardFormula = newValue;
519 return *this;
520}
521
523 return reachabilityRewardFormula;
524}
525
527 this->reachabilityRewardFormula = newValue;
528 return *this;
529}
530
532 return longRunAverageRewardFormula;
533}
534
536 this->longRunAverageRewardFormula = newValue;
537 return *this;
538}
539
541 return totalRewardFormula;
542}
543
545 this->totalRewardFormula = newValue;
546 return *this;
547}
548
550 return conditionalProbabilityFormula;
551}
552
554 this->conditionalProbabilityFormula = newValue;
555 return *this;
556}
557
559 return conditionalRewardFormula;
560}
561
563 this->conditionalRewardFormula = newValue;
564 return *this;
565}
566
568 return reachabilityTimeFormula;
569}
570
572 this->reachabilityTimeFormula = newValue;
573 return *this;
574}
575
577 return this->nestedOperators;
578}
579
581 this->nestedOperators = newValue;
582 return *this;
583}
584
586 return this->nestedPathFormulas;
587}
588
590 this->nestedPathFormulas = newValue;
591 return *this;
592}
593
595 return this->nestedMultiObjectiveFormulas;
596}
597
599 this->nestedMultiObjectiveFormulas = newValue;
600 return *this;
601}
602
604 return this->nestedOperatorsInsideMultiObjectiveFormulas;
605}
606
608 this->nestedOperatorsInsideMultiObjectiveFormulas = newValue;
609 return *this;
610}
611
613 return this->onlyEventuallyFormuluasInConditionalFormulas;
614}
615
617 this->onlyEventuallyFormuluasInConditionalFormulas = newValue;
618 return *this;
619}
620
622 return this->stepBoundedUntilFormulas;
623}
624
626 this->stepBoundedUntilFormulas = newValue;
627 return *this;
628}
629
631 return this->timeBoundedUntilFormulas;
632}
633
635 this->timeBoundedUntilFormulas = newValue;
636 return *this;
637}
638
640 return this->rewardBoundedUntilFormulas;
641}
642
644 this->rewardBoundedUntilFormulas = newValue;
645 return *this;
646}
647
649 return this->multiDimensionalBoundedUntilFormulas;
650}
651
653 this->multiDimensionalBoundedUntilFormulas = newValue;
654 return *this;
655}
656
658 return this->stepBoundedCumulativeRewardFormulas;
659}
660
662 this->stepBoundedCumulativeRewardFormulas = newValue;
663 return *this;
664}
665
667 return this->timeBoundedCumulativeRewardFormulas;
668}
669
671 this->timeBoundedCumulativeRewardFormulas = newValue;
672 return *this;
673}
674
676 return this->rewardBoundedCumulativeRewardFormulas;
677}
678
680 this->rewardBoundedCumulativeRewardFormulas = newValue;
681 return *this;
682}
683
685 return this->multiDimensionalCumulativeRewardFormulas;
686}
687
689 this->multiDimensionalCumulativeRewardFormulas = newValue;
690 return *this;
691}
692
694 this->setProbabilityOperatorsAllowed(newValue);
695 this->setRewardOperatorsAllowed(newValue);
696 this->setLongRunAverageOperatorsAllowed(newValue);
697 this->setTimeOperatorsAllowed(newValue);
698 return *this;
699}
700
702 this->setTimeOperatorsAllowed(newValue);
703 this->setReachbilityTimeFormulasAllowed(newValue);
704 return *this;
705}
706
711
713 return this->quantitativeOperatorResults;
714}
715
717 this->quantitativeOperatorResults = newValue;
718 return *this;
719}
720
722 return this->qualitativeOperatorResults;
723}
724
726 this->qualitativeOperatorResults = newValue;
727 return *this;
728}
729
731 return operatorAtTopLevelRequired;
732}
733
735 operatorAtTopLevelRequired = newValue;
736 return *this;
737}
738
740 return multiObjectiveFormulaAtTopLevelRequired;
741}
742
744 multiObjectiveFormulaAtTopLevelRequired = newValue;
745 return *this;
746}
747
749 return operatorsAtTopLevelOfMultiObjectiveFormulasRequired;
750}
751
753 operatorsAtTopLevelOfMultiObjectiveFormulasRequired = newValue;
754 return *this;
755}
756
758 return quantileFormulaAtTopLevelRequired;
759}
760
762 quantileFormulaAtTopLevelRequired = newValue;
763 return *this;
764}
765
767 return rewardAccumulation;
768}
769
771 rewardAccumulation = newValue;
772 return *this;
773}
774
776 return gameFormula;
777}
778
780 gameFormula = newValue;
781 return *this;
782}
783
785 return discountedCumulativeRewardFormula;
786}
787
789 this->discountedCumulativeRewardFormula = newValue;
790 return *this;
791}
792
794 return discountedTotalRewardFormula;
795}
796
798 this->discountedTotalRewardFormula = newValue;
799 return *this;
800}
801
802} // namespace logic
803} // namespace storm
FragmentSpecification & setConditionalRewardFormulasAllowed(bool newValue)
FragmentSpecification & setAtomicExpressionFormulasAllowed(bool newValue)
FragmentSpecification & setNextFormulasAllowed(bool newValue)
FragmentSpecification & setBinaryBooleanPathFormulasAllowed(bool newValue)
FragmentSpecification & setStepBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setUnaryBooleanStateFormulasAllowed(bool newValue)
FragmentSpecification & setRewardBoundedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setRewardAccumulationAllowed(bool newValue)
FragmentSpecification & setOnlyEventuallyFormuluasInConditionalFormulasAllowed(bool newValue)
FragmentSpecification & setBinaryBooleanStateFormulasAllowed(bool newValue)
FragmentSpecification & setReleaseFormulasAllowed(bool newValue)
FragmentSpecification & setMultiDimensionalBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTimeOperatorsAllowed(bool newValue)
FragmentSpecification & setUnaryBooleanPathFormulasAllowed(bool newValue)
FragmentSpecification & setAtomicLabelFormulasAllowed(bool newValue)
FragmentSpecification & setNestedMultiObjectiveFormulasAllowed(bool newValue)
FragmentSpecification & setWeakUntilFormulasAllowed(bool newValue)
FragmentSpecification & setGameFormulasAllowed(bool newValue)
FragmentSpecification & setMultiObjectiveFormulaAtTopLevelRequired(bool newValue)
FragmentSpecification & setQuantileFormulaAtTopLevelRequired(bool newValue)
FragmentSpecification & setQuantileFormulasAllowed(bool newValue)
FragmentSpecification & setOperatorAtTopLevelRequired(bool newValue)
FragmentSpecification & setBooleanLiteralFormulasAllowed(bool newValue)
FragmentSpecification & setMultiObjectiveFormulasAllowed(bool newValue)
FragmentSpecification & setGloballyFormulasAllowed(bool newValue)
FragmentSpecification & setTimeBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setReachabilityProbabilityFormulasAllowed(bool newValue)
FragmentSpecification & setCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setTotalRewardFormulasAllowed(bool newValue)
FragmentSpecification & setDiscountedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setReachabilityRewardFormulasAllowed(bool newValue)
FragmentSpecification & setMultiDimensionalCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setNestedPathFormulasAllowed(bool newValue)
FragmentSpecification & setConditionalProbabilityFormulasAllowed(bool newValue)
FragmentSpecification & setRewardBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setLongRunAverageRewardFormulasAllowed(bool newValue)
FragmentSpecification & setQualitativeOperatorResultsAllowed(bool newValue)
FragmentSpecification & setLongRunAverageProbabilitiesAllowed(bool newValue)
FragmentSpecification & setQuantitativeOperatorResultsAllowed(bool newValue)
FragmentSpecification & setRewardOperatorsAllowed(bool newValue)
FragmentSpecification & setNestedOperatorsInsideMultiObjectiveFormulasAllowed(bool newValue)
FragmentSpecification & setBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTimeBoundedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setHOAPathFormulasAllowed(bool newValue)
FragmentSpecification & setOperatorsAllowed(bool newValue)
FragmentSpecification & setReachbilityTimeFormulasAllowed(bool newValue)
FragmentSpecification & setDiscountedTotalRewardFormulasAllowed(bool newValue)
FragmentSpecification & setInstantaneousFormulasAllowed(bool newValue)
FragmentSpecification & setUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTimeAllowed(bool newValue)
FragmentSpecification & setNestedOperatorsAllowed(bool newValue)
FragmentSpecification & setStepBoundedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setProbabilityOperatorsAllowed(bool newValue)
FragmentSpecification & setLongRunAverageOperatorsAllowed(bool newValue)
FragmentSpecification & setOperatorsAtTopLevelOfMultiObjectiveFormulasRequired(bool newValue)
FragmentSpecification prctlstar()
FragmentSpecification prctl()
FragmentSpecification propositional()
FragmentSpecification lexObjective()
FragmentSpecification csrl()
FragmentSpecification pctlstar()
FragmentSpecification flatPctl()
FragmentSpecification csrlstar()
FragmentSpecification csl()
FragmentSpecification multiObjective()
FragmentSpecification pctl()
FragmentSpecification cslstar()
FragmentSpecification reachability()
FragmentSpecification quantiles()
FragmentSpecification rpatl()
The contract of a DD backend.