blob: 5f0666286db1f7e0a22181c23e541cd9afc5f620 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2016 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David LOPEZ BETANCUR (CEA LIST)
* Sebastien REVOL (CEA LIST)
*
*****************************************************************************/
package org.eclipse.papyrus.moka.xygraph.mapping.common;
public interface Variable {
public static abstract class VariableID{
public abstract boolean equals(Object obj);
public abstract int hashCode();
}
String getName();
String getFullyQualifiedName();
VariableID getID();
Variable getDependsOn();
default boolean isIndependent(){
return getDependsOn() == null;
}
default boolean equals(Variable other){
return getID().equals(other.getID());
}
}