public class PeriodicTimeTrigger extends java.lang.Object implements TimeTrigger
| Modifier and Type | Field and Description |
|---|---|
protected long |
m_offset |
protected long |
m_period |
| Constructor and Description |
|---|
PeriodicTimeTrigger(int offset,
int period)
Creates a periodic trigger.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getOffset() |
long |
getPeriod() |
long |
getTimeAfter(long moment)
Returns the next time after the given moment when
this trigger goes off.
|
void |
reset()
Reset the original TimeTrigger.
|
java.lang.String |
toString() |
public PeriodicTimeTrigger(int offset,
int period)
offset - initial delay in milliseconds, -1 means fire immediatelyperiod - after initial delay in milliseconds, -1 means fire only once after initial delaypublic long getTimeAfter(long moment)
getTimeAfter in interface TimeTriggermoment - base point in millisecondspublic long getOffset()
public long getPeriod()
public void reset()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.