Package jadex.rules.rulesystem
Class Activation
- java.lang.Object
-
- jadex.rules.rulesystem.Activation
-
public class Activation extends java.lang.ObjectAn activation is a rule and an associated fact tuple which represents a full match. Activations are created from terminal nodes and will be added to the agenda.
-
-
Constructor Summary
Constructors Constructor Description Activation(IRule rule, IVariableAssignments values, IOAVState state)Create a new Activation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two activations are equal.voidexecute()Execute the activation.intgetPriority()Get the priority.IRulegetRule()Get the rule.IVariableAssignmentsgetVariableAssignments()Get the variable assignments.inthashCode()Get the hashcode of this object.java.lang.StringtoString()Create a string representation of the activation.
-
-
-
Field Detail
-
rule
protected IRule rule
The rule.
-
values
protected IVariableAssignments values
The values.
-
state
protected IOAVState state
The state.
-
priority
protected int priority
The priority.
-
inited
protected boolean inited
-
-
Constructor Detail
-
Activation
public Activation(IRule rule, IVariableAssignments values, IOAVState state)
Create a new Activation.- Parameters:
rule- The rule.
-
-
Method Detail
-
getRule
public IRule getRule()
Get the rule.- Returns:
- The rule.
-
getVariableAssignments
public IVariableAssignments getVariableAssignments()
Get the variable assignments.
-
getPriority
public int getPriority()
Get the priority.- Returns:
- The priority.
-
execute
public void execute()
Execute the activation.
-
hashCode
public int hashCode()
Get the hashcode of this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hashcode.
-
equals
public boolean equals(java.lang.Object o)
Test if two activations are equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to test.
-
toString
public java.lang.String toString()
Create a string representation of the activation.- Overrides:
toStringin classjava.lang.Object
-
-