All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.rules.rulesystem.rete.extractors.AttributeSet Maven / Gradle / Ivy

package jadex.rules.rulesystem.rete.extractors;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

import jadex.rules.state.OAVAttributeType;
import jadex.rules.state.OAVJavaType;

/**
 * 
 */
public class AttributeSet implements Cloneable
{
	//-------- constants --------
	
	/** The constant empty attribute set. */
	public static final AttributeSet EMPTY_ATTRIBUTESET = new AttributeSet();
	
	//-------- attributes --------
	
	/** The set of normal attributes. */
	protected Set attributes;

	/** The set of 'all' attributes for OAVJavaTypes. */
	protected Set alltypes;
	
	//-------- constructors --------
	
	/**
	 *  Create a new attribute set. 
	 */
	public AttributeSet()
	{
	}
	
	//-------- methods --------
	
	/**
	 *  Add a new attributes.
	 *  @param attr The attribute.
	 */
	public void addAttribute(OAVAttributeType attr)
	{
//		boolean found	= false;
//		StackTraceElement[]	ste	= Thread.currentThread().getStackTrace();
//		for(int i=0; !found && i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy