Ptidej-v5.2-master/Ptidej Solver Tests/src/ptidej/solver/test/data/pattern/StrictInheritanceTest.java
/*******************************************************************************
 * Copyright (c) 2001-2014 Yann-Gal Guhneuc and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Yann-Gal Guhneuc and others, see in file; API and its implementation
 ******************************************************************************/
package ptidej.solver.test.data.pattern;

import padl.kernel.IClass;
import padl.motif.models.TestMotifModel;

public final class StrictInheritanceTest extends TestMotifModel {
	private static final long serialVersionUID = -5989354895228483331L;
	private static final char[] STRICT_INHERITANCE_TEST =
		"StrictInheritanceTest".toCharArray();
	public static final char[] SUB_ENTITY = "SubEntity".toCharArray();
	public static final char[] SUPER_ENTITY = "SuperEntity".toCharArray();

	public StrictInheritanceTest() {
		final IClass superclass =
			this.getFactory().createClass(
				StrictInheritanceTest.SUPER_ENTITY,
				StrictInheritanceTest.SUPER_ENTITY);
		final IClass subclass =
			this.getFactory().createClass(
				StrictInheritanceTest.SUB_ENTITY,
				StrictInheritanceTest.SUB_ENTITY);
		subclass.addInheritedEntity(superclass);
		this.addConstituent(superclass);
		this.addConstituent(subclass);
	}
	public char[] getName() {
		return StrictInheritanceTest.STRICT_INHERITANCE_TEST;
	}
}
