public class Rule {

        private Condition condition;
        private Action action;

        public Rule(Condition c, Action a) {
                condition = c;
                action = a;
        }

        public Action fetchAction() { return action; }

        public Action fetchCondition() { return condition; }

}