Blame refpolicy/doc/doctools/src/policy/Interface.java
|
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 |
* Interface.java: The reference policy interfaces
|
|
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 interface is represented by this class.
|
|
Chris PeBenito |
36e54b |
*
|
|
Chris PeBenito |
36e54b |
* @see Layer
|
|
Chris PeBenito |
36e54b |
* @see Module
|
|
Chris PeBenito |
36e54b |
* @see Parameter
|
|
Chris PeBenito |
36e54b |
*/
|
|
Chris PeBenito |
36e54b |
public class Interface extends PolicyElement {
|
|
Chris PeBenito |
36e54b |
/** the children of this element */
|
|
Chris PeBenito |
36e54b |
public final Map<String,Parameter> Children;
|
|
Chris PeBenito |
36e54b |
|
|
Chris PeBenito |
36e54b |
public InterfaceType Type;
|
|
Chris PeBenito |
36e54b |
public int Weight;
|
|
Chris PeBenito |
36e54b |
|
|
Chris PeBenito |
36e54b |
/**
|
|
Chris PeBenito |
36e54b |
* Default constructor assigns name to module.
|
|
Chris PeBenito |
36e54b |
*
|
|
Chris PeBenito |
36e54b |
* @param _name The name of the module.
|
|
Chris PeBenito |
36e54b |
* @param _Parent The reference to the parent element.
|
|
Chris PeBenito |
36e54b |
*/
|
|
Chris PeBenito |
36e54b |
public Interface(String _name, Module _Parent){
|
|
Chris PeBenito |
36e54b |
super(_name, _Parent);
|
|
Chris PeBenito |
36e54b |
Children = new TreeMap<String,Parameter>();
|
|
Chris PeBenito |
36e54b |
}
|
|
Chris PeBenito |
36e54b |
}
|