FileDocCategorySizeDatePackage
OffsetCondition.javaAPI DocphoneME MR2 API (J2ME)2472Wed May 02 18:00:36 BST 2007com.sun.perseus.model

OffsetCondition

public final class OffsetCondition extends TimeCondition
An OffsetCondition generates a single TimeInstance on initialization.
version
$Id: OffsetCondition.java,v 1.2 2006/04/21 06:38:06 st125089 Exp $

Fields Summary
long
offset
Offset from the time container's begin time.
Constructors Summary
public OffsetCondition(TimedElementSupport timedElement, boolean isBegin, long offset)

param
timedElement the associated TimedElementSupport. Should not be null.
param
isBegin defines whether this condition is for a begin list.
param
offset offset compared to the time container's begin time.

        super(timedElement, isBegin);
        this.offset = offset;

        //
        // Insert a new TimeInstance in the associated TimedElementSupport's
        // begin or end list.
        //
        new TimeInstance(timedElement,
                         new Time(offset),
                         false, // no clear on reset
                         isBegin);
    
Methods Summary
protected java.lang.StringtoStringTrait()
Converts this OffsetCondition to a String trait.

return
a string describing this TimeCondition

        return (offset / 1000f) + "s";