Package jadex.rules.rulesystem
Class Activation
- java.lang.Object
-
- jadex.rules.rulesystem.Activation
-
public class Activation extends java.lang.Object
An 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 boolean
equals(java.lang.Object o)
Test if two activations are equal.void
execute()
Execute the activation.int
getPriority()
Get the priority.IRule
getRule()
Get the rule.IVariableAssignments
getVariableAssignments()
Get the variable assignments.int
hashCode()
Get the hashcode of this object.java.lang.String
toString()
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:
hashCode
in classjava.lang.Object
- Returns:
- The hashcode.
-
equals
public boolean equals(java.lang.Object o)
Test if two activations are equal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- The object to test.
-
toString
public java.lang.String toString()
Create a string representation of the activation.- Overrides:
toString
in classjava.lang.Object
-
-