RepeatConditionpublic final class RepeatCondition extends EventBaseCondition A RepeatCondition generates a TimeInstance
everytime the associated repeat event occurs with the expected
repeatCount value. |
Fields Summary |
---|
int | repeatCountThe repeatCount which triggers the condition. |
Constructors Summary |
---|
public RepeatCondition(TimedElementSupport timedElement, boolean isBegin, String eventBaseId, long offset, int repeatCount)
super(timedElement,
isBegin,
eventBaseId,
TimedElementSupport.REPEAT_EVENT_TYPE,
offset);
this.repeatCount = repeatCount;
|
Methods Summary |
---|
public void | handleEvent(org.w3c.dom.events.Event evt)Implementation of the EventListener interface.
This is a simple filtered version of the handleEvent implementation
in EventBaseCondition .
if (((ModelEvent) evt).repeatCount == repeatCount) {
super.handleEvent(evt);
}
| protected java.lang.String | toStringTrait()Converts this RepeatCondition to a String trait.
StringBuffer sb = new StringBuffer();
sb.append(eventBaseId);
sb.append(".repeat(");
sb.append(repeatCount);
sb.append(')");
if (offset != 0) {
if (offset > 0) {
sb.append('+");
}
sb.append(offset / 1000f);
sb.append('s");
}
return sb.toString();
|
|