Chris PeBenito 36e54b
/* Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito 36e54b
 * License: refer to COPYING file for license information.
Chris PeBenito 36e54b
 * Authors: Spencer Shimko <sshimko@tresys.com>
Chris PeBenito 36e54b
 * 
Chris PeBenito 36e54b
 * Policy.java: The reference policy api		
Chris PeBenito 36e54b
 * Version: @version@ 
Chris PeBenito 36e54b
 */
Chris PeBenito 36e54b
package policy;
Chris PeBenito 36e54b
Chris PeBenito 36e54b
import java.util.Map;
Chris PeBenito 36e54b
import java.util.TreeMap;
Chris PeBenito 36e54b
Chris PeBenito 36e54b
/**
Chris PeBenito 36e54b
 * Each reference policy layer is represented by this class.
Chris PeBenito 36e54b
 * 
Chris PeBenito 36e54b
 * @see Module
Chris PeBenito 36e54b
 * @see Interface
Chris PeBenito 36e54b
 * @see Parameter
Chris PeBenito 36e54b
 */
Chris PeBenito 36e54b
public class Policy extends PolicyElement {
Chris PeBenito 36e54b
	/** the children of this element */
Chris PeBenito 36e54b
	public final Map<String,Layer> Children;
Chris PeBenito 36e54b
	
Chris PeBenito 36e54b
	/**
Chris PeBenito 36e54b
	 * Default constructor assigns name to layer.
Chris PeBenito 36e54b
	 * 
Chris PeBenito 36e54b
	 * @param _name		The name of the layer.
Chris PeBenito 36e54b
	 * @param _Parent 	The reference to the parent element.
Chris PeBenito 36e54b
	 */
Chris PeBenito 36e54b
	public Policy(String _name){
Chris PeBenito 36e54b
		// the policy is the root element so parent==null
Chris PeBenito 36e54b
		super(_name, null);
Chris PeBenito 36e54b
		Children = new TreeMap<String,Layer>();
Chris PeBenito 36e54b
	}	
Chris PeBenito 36e54b
}