org.eclipse.ohf.stem.core.sequencer.impl
Class RealTimeSequencerImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
                  extended by org.eclipse.ohf.stem.core.sequencer.impl.SequencerImpl
                      extended by org.eclipse.ohf.stem.core.sequencer.impl.SequentialSequencerImpl
                          extended by org.eclipse.ohf.stem.core.sequencer.impl.RealTimeSequencerImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, RealTimeSequencer, Sequencer, SequentialSequencer

public class RealTimeSequencerImpl
extends SequentialSequencerImpl
implements RealTimeSequencer

An implementation of the model object 'Real Time Sequencer'.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.ohf.stem.core.sequencer.impl.SequencerImpl
dateFormat
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.ohf.stem.core.sequencer.Sequencer
UNKNOWN_DURATION
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 STEMTime getNextTime()
           
 STEMTime getStartTime()
          The start time for a real-time sequencer is the current time until there is a call to getNextTime(), at which point the start time is fixed.
 void reset()
          handle what needs to be done when a simulation is reset.
 void setEndTime(STEMTime newEndTime)
           
 
Methods inherited from class org.eclipse.ohf.stem.core.sequencer.impl.SequentialSequencerImpl
eGet, eIsSet, eSet, eUnset, getTimeIncrement, getWorkIncrement, isTimeToStop, setTimeIncrement, toString
 
Methods inherited from class org.eclipse.ohf.stem.core.sequencer.impl.SequencerImpl
basicSetCurrentTime, basicSetEndTime, basicSetStartTime, eInverseRemove, getCurrentTime, getCycle, getDuration, getEndTime, getTimeDelta, getWorkComplete, setCurrentTime, setCycle, setDuration, setStartTime, setWorkComplete
 
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
basicSetDublinCore, getDublinCore, getTypeURI, getURI, sane, setDublinCore, setTypeURI, setURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ohf.stem.core.sequencer.SequentialSequencer
getTimeIncrement, setTimeIncrement
 
Methods inherited from interface org.eclipse.ohf.stem.core.sequencer.Sequencer
getCurrentTime, getCycle, getDuration, getEndTime, getTimeDelta, getWorkComplete, getWorkIncrement, isTimeToStop, setCurrentTime, setCycle, setDuration, setStartTime, setWorkComplete
 
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable
getDublinCore, getTypeURI, getURI, sane, setDublinCore, setTypeURI, setURI
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getStartTime

public STEMTime getStartTime()
The start time for a real-time sequencer is the current time until there is a call to getNextTime(), at which point the start time is fixed.

Specified by:
getStartTime in interface Sequencer
Overrides:
getStartTime in class SequencerImpl
Returns:
the start time of the sequence.
See Also:
getNextCalled, getNextTime()

getNextTime

public STEMTime getNextTime()
Description copied from class: SequencerImpl

Specified by:
getNextTime in interface Sequencer
Overrides:
getNextTime in class SequentialSequencerImpl
Returns:
the next time point in the sequence. As a side effect the sequencer's current time is set to the returned value.
See Also:
SequentialSequencerImpl.getNextTime()

setEndTime

public void setEndTime(STEMTime newEndTime)
Description copied from class: SequencerImpl

Specified by:
setEndTime in interface Sequencer
Overrides:
setEndTime in class SequencerImpl
Parameters:
newEndTime - the new value of the 'End Time' containment reference.
Throws:
java.lang.IllegalArgumentException - if the new end time is before the current (wall clock) time.
See Also:
SequencerImpl.setEndTime(org.eclipse.ohf.stem.core.model.STEMTime)

reset

public void reset()
Description copied from class: SequentialSequencerImpl
handle what needs to be done when a simulation is reset.

Specified by:
reset in interface Sequencer
Overrides:
reset in class SequentialSequencerImpl
See Also:
SequentialSequencerImpl.reset()