package de.ugoe.cs.autoquest.usability.evaluation.rule.set;

import java.util.EnumSet;

import com.google.common.base.Optional;

import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree;
import de.ugoe.cs.autoquest.usability.evaluation.result.UsabilityDefect;

public class MouseInteractionUsabilityRuleset implements UsabilityRuleset {

    private enum MouseInteractionUsabilityRule implements UsabilityRule {
        
        MOUSE_INTERACTION {

            @Override
            public Optional<UsabilityDefect> evaluate(ITaskTree taskTree) {
                // TODO Auto-generated method stub
                System.out.println("TODO: implement MouseInteractionUsabilityRule.evaluate ");
                return null;
            }

            @Override
            public String ruleIdentifier() {
                return this.name();
            }
            
        };

        public abstract Optional<UsabilityDefect> evaluate(ITaskTree taskTree);
    }
    
    private final EnumSet<MouseInteractionUsabilityRule> MOUSE_INTERACTION_USABILITY_RULESET = EnumSet
            .allOf(MouseInteractionUsabilityRule.class);
    
    @Override
    public EnumSet<? extends UsabilityRule> evaluationRules() {
        return MOUSE_INTERACTION_USABILITY_RULESET;
    }

}
