//Copyright (c) 2007 University of Auckland
//Contributed to the FBench extension of the OOONEIDA Workbench project under the Common Public License
package fbench.graph.model;
import java.util.Vector;
import fbench.graph.AlgorithmComponent;
import fbench.graph.GraphElement;
import org.w3c.dom.Element;
/**
* GraphModel for Algorithm GraphElement
*
* @author JP
*
* @version 20070301/JP
*/
public class Algorithm extends GraphModel{
public Algorithm(){
super();
}
public Algorithm(Element el){
super(el);
}
public Vector getGraph(){
Vector<GraphElement> graph = new Vector<GraphElement>();
Element el = getElement();
AlgorithmComponent algComponent = new AlgorithmComponent(el);
graph.add(algComponent);
return graph;
}
}