Package fbench.graph.model

Source Code of fbench.graph.model.Algorithm

//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;
    }
}
TOP

Related Classes of fbench.graph.model.Algorithm

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.