|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.BasicNotifierImpl org.eclipse.emf.ecore.impl.BasicEObjectImpl org.eclipse.emf.ecore.impl.MinimalEObjectImpl org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container org.eclipse.emf.henshin.statespace.impl.StorageImpl org.eclipse.emf.henshin.statespace.impl.StateSpaceImpl
public class StateSpaceImpl
Default implementation of the StateSpace
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
---|
MinimalEObjectImpl.Container.Dynamic |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
---|
MinimalEObjectImpl.Container |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
InternalEObject.EStore |
Field Summary | |
---|---|
protected static int[] |
ALL_PARAMETER_KEYS_EDEFAULT
The default value of the ' All Parameter Keys ' attribute. |
protected EqualityHelper |
equalityHelper
The cached value of the ' Equality Helper ' containment reference. |
protected EList<State> |
initialStates
The cached value of the ' Initial States ' reference list. |
protected static boolean |
LAYOUT_HIDE_INDIZES_EDEFAULT
The default value of the ' Layout Hide Indizes ' attribute. |
protected static boolean |
LAYOUT_HIDE_LABELS_EDEFAULT
The default value of the ' Layout Hide Labels ' attribute. |
protected static int |
LAYOUT_STATE_REPULSION_EDEFAULT
The default value of the ' Layout State Repulsion ' attribute. |
protected static int |
LAYOUT_TRANSITION_ATTRACTION_EDEFAULT
The default value of the ' Layout Transition Attraction ' attribute. |
protected static int |
LAYOUT_ZOOM_LEVEL_EDEFAULT
The default value of the ' Layout Zoom Level ' attribute. |
protected static int |
MAX_STATE_DISTANCE_EDEFAULT
The default value of the ' Max State Distance ' attribute. |
protected Set<State> |
openStates
Set of open states. |
protected EMap<String,String> |
properties
The cached value of the ' Properties ' map. |
protected EList<Rule> |
rules
The cached value of the ' Rules ' reference list. |
protected static int |
STATE_COUNT_EDEFAULT
The default value of the ' State Count ' attribute. |
protected EList<State> |
states
The cached value of the ' States ' containment reference list. |
protected static int |
TRANSITION_COUNT_EDEFAULT
The default value of the ' Transition Count ' attribute. |
protected int |
transitionCount
The cached value of the ' Transition Count ' attribute. |
Fields inherited from class org.eclipse.emf.henshin.statespace.impl.StorageImpl |
---|
data, DATA_EDEFAULT, EMPTY_DATA |
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
---|
eContainer |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.henshin.statespace.StateSpace |
---|
PROPERTY_CHECK_LINK_ORDER, PROPERTY_CLOCK_DECLARATIONS, PROPERTY_COLLECT_MISSING_ROOTS, PROPERTY_CONSTANTS, PROPERTY_GOAL_PROPERTY, PROPERTY_IDENTITY_TYPES, PROPERTY_IGNORE_DUPLICATE_TRANSITIONS, PROPERTY_IGNORED_ATTRIBUTES, PROPERTY_USE_CLOCKS |
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder |
---|
NIL |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
StateSpaceImpl()
Default constructor. |
|
StateSpaceImpl(Module module)
Constructor. |
Method Summary | |
---|---|
NotificationChain |
basicSetEqualityHelper(EqualityHelper newEqualityHelper,
NotificationChain msgs)
|
Object |
eGet(int featureID,
boolean resolve,
boolean coreType)
|
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
|
boolean |
eIsSet(int featureID)
|
void |
eSet(int featureID,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(int featureID)
|
int[] |
getAllParameterKeys()
Get all object keys used as parameters in transitions in this state space. |
EqualityHelper |
getEqualityHelper()
|
EList<State> |
getInitialStates()
|
int |
getLayoutStateRepulsion()
Get the state repulsion to be used when layouting this state space. |
int |
getLayoutTransitionAttraction()
Get the transition attraction to be used when layouting this state space. |
int |
getLayoutZoomLevel()
Get the zoom level to be used when this state space is displayed. |
int |
getMaxStateDistance()
Get the maximum distance of states from the initial states. |
Set<State> |
getOpenStates()
Get the set of open states in this state space. |
EMap<String,String> |
getProperties()
|
EList<Rule> |
getRules()
|
int |
getStateCount()
Get the number of states in this state space. |
EList<State> |
getStates()
Get the list of states in this state space. |
int |
getTransitionCount()
|
int |
incTransitionCount()
|
boolean |
isLayoutHideIndizes()
Returns the value of the 'Layout Hide Indizes' attribute. |
boolean |
isLayoutHideLabels()
Check whether labels should be hidden. |
boolean |
removeState(State state)
Remove a state and detach its transitions from the other states. |
void |
setEqualityHelper(EqualityHelper newEqualityHelper)
Set the equality helper for this state space. |
void |
setLayoutHideIndizes(boolean hideIndizes)
Sets the value of the ' Layout Hide Indizes ' attribute. |
void |
setLayoutHideLabels(boolean hideLabels)
Set the hide-labels flag. |
void |
setLayoutStateRepulsion(int repulsion)
Set the state repulsion to be used when layouting this state space. |
void |
setLayoutTransitionAttraction(int attraction)
Set the transition attraction to be used when layouting this state space. |
void |
setLayoutZoomLevel(int zoomLevel)
Set the zoom level for this state space. |
void |
setMaxStateDistance(int maxStateDistance)
Set the maximum distance of states from the initial states. |
void |
setTransitionCount(int newTransitionCount)
|
String |
toString()
|
void |
updateEqualityHelper()
|
Methods inherited from class org.eclipse.emf.henshin.statespace.impl.StorageImpl |
---|
getData, getData, getData, setData, setData, setData, setData |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
---|
eBasicSetContainer, eInternalContainer |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
---|
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.henshin.statespace.Storage |
---|
getData, getData, getData, setData, setData, setData, setData |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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 |
---|
protected EList<Rule> rules
Rules
' reference list.
getRules()
protected EList<State> states
States
' containment reference list.
getStates()
protected EList<State> initialStates
Initial States
' reference list.
getInitialStates()
protected Set<State> openStates
getOpenStates()
protected static final int STATE_COUNT_EDEFAULT
State Count
' attribute.
getStateCount()
,
Constant Field Valuesprotected static final int TRANSITION_COUNT_EDEFAULT
Transition Count
' attribute.
getTransitionCount()
,
Constant Field Valuesprotected int transitionCount
Transition Count
' attribute.
getTransitionCount()
protected EqualityHelper equalityHelper
Equality Helper
' containment reference.
getEqualityHelper()
protected static final int LAYOUT_ZOOM_LEVEL_EDEFAULT
Layout Zoom Level
' attribute.
getLayoutZoomLevel()
,
Constant Field Valuesprotected static final int LAYOUT_STATE_REPULSION_EDEFAULT
Layout State Repulsion
' attribute.
getLayoutStateRepulsion()
,
Constant Field Valuesprotected static final int LAYOUT_TRANSITION_ATTRACTION_EDEFAULT
Layout Transition Attraction
' attribute.
getLayoutTransitionAttraction()
,
Constant Field Valuesprotected static final boolean LAYOUT_HIDE_LABELS_EDEFAULT
Layout Hide Labels
' attribute.
isLayoutHideLabels()
,
Constant Field Valuesprotected static final boolean LAYOUT_HIDE_INDIZES_EDEFAULT
Layout Hide Indizes
' attribute.
isLayoutHideIndizes()
,
Constant Field Valuesprotected static final int MAX_STATE_DISTANCE_EDEFAULT
Max State Distance
' attribute.
getMaxStateDistance()
,
Constant Field Valuesprotected EMap<String,String> properties
Properties
' map.
getProperties()
protected static final int[] ALL_PARAMETER_KEYS_EDEFAULT
All Parameter Keys
' attribute.
getAllParameterKeys()
Constructor Detail |
---|
protected StateSpaceImpl()
public StateSpaceImpl(Module module)
module
- Module which contains the rules to be used.Method Detail |
---|
public Set<State> getOpenStates()
getOpenStates
in interface StateSpace
public int getStateCount()
StateSpace
getStateCount
in interface StateSpace
StateSpacePackage.getStateSpace_StateCount()
public boolean removeState(State state)
removeState
in interface StateSpace
public void updateEqualityHelper()
updateEqualityHelper
in interface StateSpace
public int incTransitionCount()
incTransitionCount
in interface StateSpace
public int[] getAllParameterKeys()
StateSpace
getAllParameterKeys
in interface StateSpace
public int getLayoutZoomLevel()
StateSpace
getLayoutZoomLevel
in interface StateSpace
StateSpace.setLayoutZoomLevel(int)
public void setLayoutZoomLevel(int zoomLevel)
StateSpace
setLayoutZoomLevel
in interface StateSpace
zoomLevel
- the new value of the 'Zoom Level' attribute.StateSpace.getLayoutZoomLevel()
public int getLayoutStateRepulsion()
StateSpace
getLayoutStateRepulsion
in interface StateSpace
StateSpace.setLayoutStateRepulsion(int)
public void setLayoutStateRepulsion(int repulsion)
StateSpace
setLayoutStateRepulsion
in interface StateSpace
repulsion
- the new value of the 'State Repulsion' attribute.StateSpace.getLayoutStateRepulsion()
public int getLayoutTransitionAttraction()
StateSpace
getLayoutTransitionAttraction
in interface StateSpace
StateSpace.setLayoutTransitionAttraction(int)
public void setLayoutTransitionAttraction(int attraction)
StateSpace
setLayoutTransitionAttraction
in interface StateSpace
attraction
- the new value of the 'Transition Attraction' attribute.StateSpace.getLayoutTransitionAttraction()
public int getMaxStateDistance()
StateSpace
getMaxStateDistance
in interface StateSpace
StateSpace.setMaxStateDistance(int)
,
StateSpacePackage.getStateSpace_MaxStateDistance()
public void setMaxStateDistance(int maxStateDistance)
StateSpace
setMaxStateDistance
in interface StateSpace
maxStateDistance
- the new value of the 'Max State Distance' attribute.StateSpace.getMaxStateDistance()
public boolean isLayoutHideLabels()
StateSpace
isLayoutHideLabels
in interface StateSpace
StateSpace.setLayoutHideLabels(boolean)
,
org.eclipse.emf.henshin.statespace.StateSpacePackage#getStateSpace_HideLabels()
public void setLayoutHideLabels(boolean hideLabels)
StateSpace
setLayoutHideLabels
in interface StateSpace
hideLabels
- the new value of the 'Hide Labels' attribute.StateSpace.isLayoutHideLabels()
public boolean isLayoutHideIndizes()
StateSpace
isLayoutHideIndizes
in interface StateSpace
StateSpace.setLayoutHideIndizes(boolean)
,
StateSpacePackage.getStateSpace_LayoutHideIndizes()
public void setLayoutHideIndizes(boolean hideIndizes)
StateSpace
Layout Hide Indizes
' attribute.
setLayoutHideIndizes
in interface StateSpace
hideIndizes
- the new value of the 'Layout Hide Indizes' attribute.StateSpace.isLayoutHideIndizes()
protected EClass eStaticClass()
eStaticClass
in class StorageImpl
public EList<State> getStates()
getStates
in interface StateSpace
public EList<State> getInitialStates()
getInitialStates
in interface StateSpace
public EList<Rule> getRules()
getRules
in interface StateSpace
public int getTransitionCount()
getTransitionCount
in interface StateSpace
StateSpace.setTransitionCount(int)
public void setTransitionCount(int newTransitionCount)
setTransitionCount
in interface StateSpace
StateSpace.getTransitionCount()
public EqualityHelper getEqualityHelper()
getEqualityHelper
in interface StateSpace
StateSpace.setEqualityHelper(EqualityHelper)
public EMap<String,String> getProperties()
getProperties
in interface StateSpace
StateSpacePackage.getStateSpace_Properties()
public NotificationChain basicSetEqualityHelper(EqualityHelper newEqualityHelper, NotificationChain msgs)
public void setEqualityHelper(EqualityHelper newEqualityHelper)
StateSpace
setEqualityHelper
in interface StateSpace
newEqualityHelper
- the new equality helper.StateSpace.getEqualityHelper()
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseAdd
in class BasicEObjectImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class BasicEObjectImpl
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class StorageImpl
public void eSet(int featureID, Object newValue)
eSet
in interface InternalEObject
eSet
in class StorageImpl
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class StorageImpl
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class StorageImpl
public String toString()
toString
in class StorageImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |