package de.ugoe.cs.autoquest.plugin.uml.eventcore;

import org.eclipse.uml2.uml.Transition;

import de.ugoe.cs.autoquest.eventcore.IEventType;

// TODO comment
public class UMLTransitionType implements IEventType {

    /**  */
    private static final long serialVersionUID = 1L;
    
    private final Transition transition;
    
    public UMLTransitionType(Transition transition) {
        this.transition = transition;
    }
    
    public Transition getTransition() {
        return transition;
    }
    
    @Override
    public boolean equals(Object other) {
        if( other==this ) {
            return true;
        }
        if( other instanceof UMLTransitionType ) {
            return ((UMLTransitionType) other).transition.equals(transition);
        }
        return false;
    };
    
    @Override
    public int hashCode() {
        return transition.hashCode();
    }
    
    @Override
    public String getName() {
        // TODO Auto-generated method stub
        System.out.println("TODO: implement UMLTransactionType.getName ");
        return null;
    }

}
