ProcessVariable.java

package edu.udel.cis.vsl.tass.model.impl.variable;

import edu.udel.cis.vsl.tass.model.IF.ModelIF;
import edu.udel.cis.vsl.tass.model.IF.type.TypeIF;
import edu.udel.cis.vsl.tass.model.IF.variable.ProcessVariableIF;
import edu.udel.cis.vsl.tass.model.impl.scope.ProcessScope;

public class ProcessVariable extends Variable implements ProcessVariableIF {

	public ProcessVariable(String name, TypeIF type, ProcessScope scope) {
		super(name, type, scope);
	}

	/** The scope of this variable is the process scope for some process. */
	public ProcessScope scope() {
		return (ProcessScope) super.scope();
	}

	@Override
	public ModelIF model() {
		return scope().process().model();
	}

}