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

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
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Sequencer, SequentialSequencer
Direct Known Subclasses:
RealTimeSequencerImpl

public class SequentialSequencerImpl
extends SequencerImpl
implements SequentialSequencer

An implementation of the model object 'Sequential Sequencer'.

The following features are implemented:


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
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 STEMTime getNextTime()
           
 long getTimeIncrement()
           
 int getWorkIncrement()
           
 boolean isTimeToStop()
           
 void reset()
          handle what needs to be done when a simulation is reset.
 void setTimeIncrement(long newTimeIncrement)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.core.sequencer.impl.SequencerImpl
basicSetCurrentTime, basicSetEndTime, basicSetStartTime, eInverseRemove, getCurrentTime, getCycle, getDuration, getEndTime, getStartTime, getTimeDelta, getWorkComplete, setCurrentTime, setCycle, setDuration, setEndTime, 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.Sequencer
getCurrentTime, getCycle, getDuration, getEndTime, getStartTime, getTimeDelta, getWorkComplete, setCurrentTime, setCycle, setDuration, setEndTime, 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

getTimeIncrement

public long getTimeIncrement()

Specified by:
getTimeIncrement in interface SequentialSequencer
Returns:
the number of milliseconds between the time points returned by successive calls to Sequencer.getNextTime().

isTimeToStop

public boolean isTimeToStop()
Description copied from class: SequencerImpl

Specified by:
isTimeToStop in interface Sequencer
Overrides:
isTimeToStop in class SequencerImpl
Returns:
true if the sequence has ended.
See Also:
com.ibm.almaden.stem.scenario.impl.SequencerImpl#isTimeToStop()

setTimeIncrement

public void setTimeIncrement(long newTimeIncrement)

Specified by:
setTimeIncrement in interface SequentialSequencer
Parameters:
newTimeIncrement - the new value of the 'Time Increment' attribute.
See Also:
SequentialSequencer.getTimeIncrement()

getNextTime

public STEMTime getNextTime()
Description copied from class: SequencerImpl

Specified by:
getNextTime in interface Sequencer
Overrides:
getNextTime in class SequencerImpl
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:
Among other things that this does, it increments the count of the number of completed cycles.

getWorkIncrement

public int getWorkIncrement()
Description copied from class: SequencerImpl

Specified by:
getWorkIncrement in interface Sequencer
Overrides:
getWorkIncrement in class SequencerImpl
Returns:
an integer (0-100) representing the precentage of the sequence that was completed by the time delta between the previous two calls to Sequencer.getNextTime()
See Also:
com.ibm.almaden.stem.scenario.impl.SequencerImpl#getWorkIncrement()

reset

public void reset()
handle what needs to be done when a simulation is reset.

Specified by:
reset in interface Sequencer
Overrides:
reset in class SequencerImpl
See Also:
Sequencer.getNextTime(), Sequencer.getWorkComplete()

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class SequencerImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class SequencerImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class SequencerImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class SequencerImpl

toString

public java.lang.String toString()

Overrides:
toString in class SequencerImpl