import java.util.TreeMap;
import java.util.Map;

public class FlowNode
{
	char chg_type;
	int chg_amt;
	String chg_src;
	TreeMap<String, FlowAmount> out_flows;

	public FlowNode()
	{
		out_flows=new TreeMap<String, FlowAmount>();

	}


	public void addOutConnect(String target, int curr, int max)
	{
		FlowAmount a=new FlowAmount();
		a.curr=curr;
		a.max=max;
		out_flows.put(target, a);
	}

	public void reset()
	{
		chg_type='N';
		chg_amt=0;
		for(FlowAmount a : out_flows.values())
		{
			a.curr=0;
		}
	}
}
