|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.Trigger
public abstract class Trigger
A condition that can halt the evolution. Typically a Trigger will add a condition on an Indicator, such as "when an indicator is above a threshold".
| Field Summary | |
|---|---|
protected Indicator |
indicator
The indicator associated with the Trigger, or null if no indicator is used. |
| Constructor Summary | |
|---|---|
Trigger()
Creates a trigger that doesn't use an indicator. |
|
Trigger(Indicator indicator)
Creates a trigger that uses an indicator: setupFields, init and processPoint will be forwarded to the indicator. |
|
| Method Summary | |
|---|---|
void |
init()
Initializes the trigger, resetting the trigger computation. |
abstract boolean |
isVerified()
Returns whether the Trigger is verified. |
void |
processPoint(Point point)
Updates the trigger computation using the values at the point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Indicator indicator
| Constructor Detail |
|---|
public Trigger()
public Trigger(Indicator indicator)
indicator - the Indicator to be used by the Trigger| Method Detail |
|---|
public void init()
public void processPoint(Point point)
point - the point for this calculation step.public abstract boolean isVerified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||