| 28 | } |
| 29 | |
| 30 | Node* SimplifyModule::evaluate(const Context& ctx) const |
| 31 | { |
| 32 | decimal ratio=0.1; |
| 33 | auto* numVal=dynamic_cast<NumberValue*>(getParameterArgument(ctx,0)); |
| 34 | if(numVal) |
| 35 | ratio=numVal->getNumber(); |
| 36 | |
| 37 | auto* n=new SimplifyNode(); |
| 38 | n->setRatio(ratio); |
| 39 | n->setChildren(ctx.getInputNodes()); |
| 40 | return n; |
| 41 | } |
nothing calls this directly
no test coverage detected