package clothSimulator;

import java.util.LinkedList;
import java.util.List;


public class ConstraintTreeNode extends ConstraintGraphNode {

	/**this is a variable that is useful for making the minimum spanning tree.  It is the minimum constraint */
	public Double primKey;
	/**this is the parent of a node when it is in a min spanning tree(when the node is not in an MSP, then it should be null) */
	public ConstraintGraphNode parent;
	/**In a tree, nodes may have many childre so here is that list */
	public List<ConstraintTreeNode> children = new LinkedList<ConstraintTreeNode>();
	
	
	public ConstraintTreeNode(ConstraintList theCList, Particle thePart) {
		super(theCList, thePart);
		// TODO Auto-generated constructor stub
		
	}

	/**here we have a method to take a constraint graph node and rip its info into a tree node */
	public void set(ConstraintGraphNode sourceNode){
		this.p=sourceNode.p;
	}

	

}
