|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Triggers.Trigger Triggers.TriggerPeriodic
Triggers a deterministic number m of events evenly spaced to the time horizon T of some asset.
Constructor Summary | |
TriggerPeriodic(Asset asset,
int m)
|
Method Summary | |
boolean |
isTriggered(int t,
int s)
Triggers at equal time intervals so as to get as close to m events as possible. |
Methods inherited from class Triggers.Trigger |
nextTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TriggerPeriodic(Asset asset, int m)
m
- number of events to be triggered.asset
- asset defining the horizon T.Method Detail |
public boolean isTriggered(int t, int s)
isTriggered
in class Trigger
t
- reference time < s.s
- current time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |