org.eclipse.ohf.stem.core.scenario.impl
Class ScenarioImpl

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.scenario.impl.ScenarioImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Identifiable, SanityChecker, Scenario

public class ScenarioImpl
extends IdentifiableImpl
implements Scenario

An implementation of the model object 'Scenario'.

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
static boolean reportEachUnresolvedIdentifiable
          This flag controls the reporting of each and every unresolved Identifiable reference encountered when creating the canonical graph.
static boolean reportNumberofUnresolvedIdentifiables
          This flag controls the reporting of a single summary message of the number of unresolved Identifiable references encountered when creating the canonical graph.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.ohf.stem.core.scenario.Scenario
URI_TYPE_SCENARIO_SEGMENT
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 Model basicGetModel()
           
 Sequencer basicGetSequencer()
           
 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)
           
 Graph getCanonicalGraph()
          The value is set in initialize()
 Model getModel()
           
 org.eclipse.emf.common.util.EList<Decorator> getScenarioDecorators()
           
 Sequencer getSequencer()
           
 void initialize()
           
 java.lang.String produceTitle()
           
 void reset()
           
 boolean sane()
           
 void setModel(Model newModel)
           
 void setSequencer(Sequencer newSequencer)
           
 boolean step()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ohf.stem.core.common.impl.IdentifiableImpl
basicSetDublinCore, eInverseRemove, getDublinCore, getTypeURI, getURI, 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.common.Identifiable
getDublinCore, getTypeURI, getURI, 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
 

Field Detail

reportEachUnresolvedIdentifiable

public static boolean reportEachUnresolvedIdentifiable
This flag controls the reporting of each and every unresolved Identifiable reference encountered when creating the canonical graph. Default: false


reportNumberofUnresolvedIdentifiables

public static boolean reportNumberofUnresolvedIdentifiables
This flag controls the reporting of a single summary message of the number of unresolved Identifiable references encountered when creating the canonical graph. Default: false

Method Detail

getModel

public Model getModel()

Specified by:
getModel in interface Scenario
Returns:
the Scenario's Model.

basicGetModel

public Model basicGetModel()


setModel

public void setModel(Model newModel)

Specified by:
setModel in interface Scenario
Parameters:
newModel - the new value of the 'Model' reference.
See Also:
Scenario.getModel()

getSequencer

public Sequencer getSequencer()

Specified by:
getSequencer in interface Scenario

basicGetSequencer

public Sequencer basicGetSequencer()


setSequencer

public void setSequencer(Sequencer newSequencer)

Specified by:
setSequencer in interface Scenario
Parameters:
newSequencer - the new value of the 'Sequencer' reference.
See Also:
Scenario.getSequencer()

getCanonicalGraph

public Graph getCanonicalGraph()
The value is set in initialize()

Specified by:
getCanonicalGraph in interface Scenario
Returns:
the canonical graph, or null if the Scenario hasn't been initialized.

step

public boolean step()

Specified by:
step in interface Scenario
Returns:
true if the simulation can continue (i.e., it's ok to call step again).
See Also:
Scenario.initialize()

reset

public void reset()

Specified by:
reset in interface Scenario

initialize

public void initialize()

Specified by:
initialize in interface Scenario
See Also:
Scenario.getCanonicalGraph()

produceTitle

public java.lang.String produceTitle()

Specified by:
produceTitle in interface Scenario
Returns:
the title of the scenario as specified by its DublinCore, or, if no title is defined, return the empty string.
See Also:
Identifiable.getDublinCore()

getScenarioDecorators

public org.eclipse.emf.common.util.EList<Decorator> getScenarioDecorators()

Specified by:
getScenarioDecorators in interface Scenario
Returns:
the Scenario Decorators
See Also:
Scenario.initialize(), Scenario.getCanonicalGraph()

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 IdentifiableImpl

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

toString

public java.lang.String toString()
Description copied from class: IdentifiableImpl

Overrides:
toString in class IdentifiableImpl
See Also:
com.ibm.almaden.stem.common.impl.IdentifiableImpl#toString()

sane

public boolean sane()
Description copied from class: IdentifiableImpl

Specified by:
sane in interface Identifiable
Specified by:
sane in interface SanityChecker
Overrides:
sane in class IdentifiableImpl
Returns:
true if the instance is "sane", false otherwise.
See Also:
com.ibm.almaden.stem.common.impl.IdentifiableImpl#sane()