Hi,
I successfully used writabiligates based on a boolean property to open or close the gate, via the class BooleanPropertyModelGate.
I now need propertyModelGates beased on an enumerated type. This means that the gate would be open when the property has one of the values out of a subset of values.
How to achieve this? Should we create a class EnumerationPropertyModelGate?
I had a look into the java code of BooleanPropertyModelGate. The method setModel is a bit complex and I thought that perhaps some code for BooleanPropertyModelGate and EnumerationPropertyModelGatemight be shared in a common superclass.
Is this all a good idea?
Thanks,
Marc
