|
Trull | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.luc.cs.trull.BranchValuator
public class BranchValuator
An EventValuator suitable for branching on the label of an incoming event. This valuator returns the index of the label of the incoming event in the specified array of event labels, or -1 if not in the array.
| Field Summary | |
|---|---|
protected java.util.Map |
eventMap
|
| Constructor Summary | |
|---|---|
BranchValuator(java.lang.String[] labels)
Constructs a BranchValuator that returns the index of the label of the incoming event in the specified array |
|
| Method Summary | |
|---|---|
int |
apply(java.beans.PropertyChangeEvent incoming)
Computes an int from the given event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map eventMap
| Constructor Detail |
|---|
public BranchValuator(java.lang.String[] labels)
labels - the array of event labels to be considered.| Method Detail |
|---|
public int apply(java.beans.PropertyChangeEvent incoming)
EventValuator
apply in interface EventValuatorincoming - the event.
|
Trull | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||