1 |
| package org.drools.event; |
2 |
| |
3 |
| import org.drools.WorkingMemory; |
4 |
| import org.drools.rule.Rule; |
5 |
| import org.drools.spi.Condition; |
6 |
| import org.drools.spi.Tuple; |
7 |
| |
8 |
| public class ConditionTestedEvent extends WorkingMemoryEvent |
9 |
| { |
10 |
| private final Rule rule; |
11 |
| |
12 |
| private final Condition condition; |
13 |
| |
14 |
| private final Tuple tuple; |
15 |
| |
16 |
| private final boolean passed; |
17 |
| |
18 |
2594
| public ConditionTestedEvent(WorkingMemory workingMemory,
|
19 |
| Rule rule, |
20 |
| Condition condition, |
21 |
| Tuple tuple, |
22 |
| boolean passed) |
23 |
| { |
24 |
2594
| super( workingMemory );
|
25 |
| |
26 |
2594
| this.rule = rule;
|
27 |
2594
| this.condition = condition;
|
28 |
2594
| this.tuple = tuple;
|
29 |
2594
| this.passed = passed;
|
30 |
| } |
31 |
| |
32 |
0
| public Rule getRule()
|
33 |
| { |
34 |
0
| return this.rule;
|
35 |
| } |
36 |
| |
37 |
0
| public Condition getCondition()
|
38 |
| { |
39 |
0
| return this.condition;
|
40 |
| } |
41 |
| |
42 |
0
| public Tuple getTuple()
|
43 |
| { |
44 |
0
| return this.tuple;
|
45 |
| } |
46 |
| |
47 |
0
| public boolean getPassed()
|
48 |
| { |
49 |
0
| return this.passed;
|
50 |
| } |
51 |
| |
52 |
0
| public String toString()
|
53 |
| { |
54 |
0
| return "[ConditionTested: rule=" + this.rule.getName( ) + "; condition=" + this.condition + "; passed=" + this.passed + "; tuple=" + this.tuple + "]";
|
55 |
| } |
56 |
| } |