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 SummaryConstructors Constructor Description Activation(IRule rule, IVariableAssignments values, IOAVState state)Create a new Activation.
 - 
Method SummaryAll 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- 
ruleprotected IRule rule The rule.
 - 
valuesprotected IVariableAssignments values The values.
 - 
stateprotected IOAVState state The state.
 - 
priorityprotected int priority The priority.
 - 
initedprotected boolean inited 
 
- 
 - 
Constructor Detail- 
Activationpublic Activation(IRule rule, IVariableAssignments values, IOAVState state) Create a new Activation.- Parameters:
- rule- The rule.
 
 
- 
 - 
Method Detail- 
getRulepublic IRule getRule() Get the rule.- Returns:
- The rule.
 
 - 
getVariableAssignmentspublic IVariableAssignments getVariableAssignments() Get the variable assignments.
 - 
getPrioritypublic int getPriority() Get the priority.- Returns:
- The priority.
 
 - 
executepublic void execute() Execute the activation.
 - 
hashCodepublic int hashCode() Get the hashcode of this object.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hashcode.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two activations are equal.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- o- The object to test.
 
 - 
toStringpublic java.lang.String toString() Create a string representation of the activation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-