Triggers
Class TriggerPeriodic

java.lang.Object
  extended byTriggers.Trigger
      extended byTriggers.TriggerPeriodic

public class TriggerPeriodic
extends Trigger

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

TriggerPeriodic

public TriggerPeriodic(Asset asset,
                       int m)
Parameters:
m - number of events to be triggered.
asset - asset defining the horizon T.
Method Detail

isTriggered

public boolean isTriggered(int t,
                           int s)
Triggers at equal time intervals so as to get as close to m events as possible.

Specified by:
isTriggered in class Trigger
Parameters:
t - reference time < s.
s - current time.