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

jadex.platform.service.ecarules.RuleAddedEvent Maven / Gradle / Ivy

Go to download

The Jadex platform package contains implementations of platform services as well as the platform component itself.

There is a newer version: 3.0.117
Show newest version
package jadex.platform.service.ecarules;

import jadex.bridge.service.types.ecarules.IRulebaseEvent;
import jadex.rules.eca.IRule;

/**
 * 
 */
public class RuleAddedEvent extends ARulebaseEvent implements IRulebaseEvent
{
	/** The rule. */
	protected IRule rule;
	
	/**
	 *  Create a new rule added event.
	 */
	public RuleAddedEvent()
	{
	}
	
	/**
	 *  Create a new rule added event.
	 */
	public RuleAddedEvent(int callid, IRule rule)
	{
		super(callid);
		this.rule = rule;
	}
	/**
	 *  Create a new rule added event.
	 */
	public RuleAddedEvent(RuleAddedEvent event)
	{
		super(event.getCallId());
		this.rule = event.getRule();
	}

	/**
	 *  Get the rule.
	 *  return The rule.
	 */
	public IRule getRule()
	{
		return rule;
	}

	/**
	 *  Set the rule. 
	 *  @param rule The rule to set.
	 */
	public void setRule(IRule rule)
	{
		this.rule = rule;
	}
	
	/**
	 *  Copy the object.
	 */
	public ARulebaseEvent createCopy()	
	{
		return new RuleAddedEvent(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy