| java.lang.Object com.sun.perseus.model.TimeCondition com.sun.perseus.model.SyncBaseCondition
SyncBaseCondition | final public class SyncBaseCondition extends TimeCondition implements TimeDependent,IDRef(Code) | | An SyncBaseCondition generates a TimeInstance
everytime the SyncBase TimedElementSupport generates a new
interval (i.e., each time its newInterval method is
called by the TypedElement . A SyncBaseCondition
is a time dependent of it's sync base TimedElementSupport
version: $Id: SyncBaseCondition.java,v 1.3 2006/04/21 06:39:09 st125089 Exp $ |
Constructor Summary | |
public | SyncBaseCondition(TimedElementNode timedElementNode, boolean isBegin, String syncBaseId, boolean isBeginSync, long offset) Parameters: timedElementNode - the associated TimedElementNode . |
isBeginSync | boolean isBeginSync(Code) | | True if this condition is on the syncBase's begin.
|
offset | long offset(Code) | | Offset from the synch base
|
SyncBaseCondition | public SyncBaseCondition(TimedElementNode timedElementNode, boolean isBegin, String syncBaseId, boolean isBeginSync, long offset)(Code) | | Parameters: timedElementNode - the associated TimedElementNode . Should not be null. Parameters: isBegin - defines whether this condition is for a begin list. Parameters: syncBaseId - identifier of the TimedElementSupport thiscondition is synchronized on. Should not be null. Parameters: isBeginSync - true if this condition is on the syncBase's begincondition. False if this condition is on the syncBase's end condition. Parameters: offset - offset from the sync base. This means that time instancessynchronized on the syncBase begin or end time are offset by this amount. |
onNewInterval | public void onNewInterval(TimedElementSupport syncBase)(Code) | | Called by the associated sync base when it creates a new
current TimeInterval . Whenever this happens, a
new IntervalTimeInstance is added for the sync base's begin or end
interval time (depending on isBeginSync), to the timedElement's
begin or end instance list (depending on isBegin).
Parameters: syncBase - the element which just generated a new interval. |
resolveTo | public void resolveTo(ElementNode ref)(Code) | | IDRef implementation.
Parameters: ref - the resolved reference (mapped from the syncBaseid passed to the constructor. |
toStringTrait | protected String toStringTrait()(Code) | | Converts this SyncBaseCondition to a String trait.
a string describing this TimeCondition |
|
|