package com.approximatrix.draco.application.plugin;

import com.approximatrix.draco.analysis.MinimalAnalysis;
import com.approximatrix.draco.analysis.StandardAnalysis;

public class AnalysisPlugin extends Plugin implements MinimalAnalysis {

	/**
	 * @param name
	 * @param type
	 * @param script
	 * @param scriptClass
	 */
	public AnalysisPlugin(String name, String scriptClass, String script) {
		super(name, PluginType.analysis, script, scriptClass);
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see com.approximatrix.draco.analysis.MinimalAnalysis#getResults()
	 */
	public String getResults() {
		return super.getResults();
	}

	/* (non-Javadoc)
	 * @see com.approximatrix.draco.analysis.MinimalAnalysis#perform()
	 */
	public void perform() {
		super.execute();
	}

	@Override
	public AnalysisPlugin createInstance() {
		return new AnalysisPlugin(this.getName(),this.getScriptRequire(),this.getScriptClass());
	}

}
