which precondition should I add?


Hi, everyone.
I developed a operator. This operator can only deal with exampleset has two attributes. I do not konw which precondition should I add to this operator. Could you help me?
Thanks.
gaoxiaolei
I developed a operator. This operator can only deal with exampleset has two attributes. I do not konw which precondition should I add to this operator. Could you help me?
Thanks.
gaoxiaolei
Tagged:
0
Answers
if I understand what you want, it should looks like this: It doesn't matter how many attributes ExampleSet have.
I want this: if a exampleset with more than two attributes, and it connect to my opeator, there should be a error appeard.
there are a couple of ways to achieve this, for example you can use the already mentioned SimplePrecondition class:
Regards,
Marco