01: package org.osbl.agent.gui.condition;
02:
03: import java.util.List;
04:
05: import org.osbl.agent.model.condition.BinaryOperator;
06: import org.osbl.agent.model.condition.Operator;
07:
08: /**
09: * The Class NumberConditionController.
10: *
11: * @author Sebastian Nozzi.
12: */
13: public class NumberConditionController extends FieldConditionController {
14:
15: /**
16: * Instantiates a new number condition controller.
17: */
18: public NumberConditionController() {
19: super ();
20: }
21:
22: /*
23: * (non-Javadoc)
24: *
25: * @see org.osbl.agent.gui.condition.FieldConditionController#getOperators()
26: */
27: public List<Operator> getOperators() {
28:
29: // To the Operators defined by the superclas...
30: List<Operator> result = super .getOperators();
31:
32: // ...add some number specific Operators like...
33:
34: // ...arithmetic relational Operators "less than", "greater than"...
35:
36: result.add(new BinaryOperator(msg("operatorLessThan"), "<"));
37: result.add(new BinaryOperator(msg("operatorGreaterThan"), ">"));
38:
39: return result;
40: }
41:
42: }
|