|
|||||||||
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.StateImpl
public class StateImpl
Default implementation of the State
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 |
DERIVED_FROM_EDEFAULT
The default value of the ' Derived From ' attribute. |
protected static boolean |
GOAL_EDEFAULT
The default value of the ' Goal ' attribute. |
protected static int |
HASH_CODE_EDEFAULT
The default value of the ' Hash Code ' attribute. |
protected EList<Transition> |
incoming
The cached value of the ' Incoming ' reference list. |
protected int |
index
The cached value of the ' Index ' attribute. |
protected static int |
INDEX_EDEFAULT
The default value of the ' Index ' attribute. |
protected static int[] |
LOCATION_EDEFAULT
The default value of the ' Location ' attribute. |
protected Model |
model
The cached value of the ' Model ' attribute. |
protected static int |
OBJECT_COUNT_EDEFAULT
The default value of the ' Object Count ' attribute. |
protected static int[] |
OBJECT_KEYS_EDEFAULT
The default value of the ' Object Keys ' attribute. |
protected static boolean |
OPEN_EDEFAULT
The default value of the ' Open ' attribute. |
protected EList<Transition> |
outgoing
The cached value of the ' Outgoing ' containment reference list. |
protected static boolean |
PRUNED_EDEFAULT
The default value of the ' Pruned ' 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.State |
---|
COLOR_DEFAULT, COLOR_INITIAL, COLOR_OPEN, COLOR_PRUNED, COLOR_TERMINAL |
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 | |
---|---|
StateImpl()
|
|
StateImpl(int index)
Constructor. |
Method Summary | |
---|---|
NotificationChain |
basicSetModel(Model newModel,
NotificationChain msgs)
|
NotificationChain |
basicSetStateSpace(StateSpace newStateSpace,
NotificationChain msgs)
|
NotificationChain |
eBasicRemoveFromContainerFeature(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 |
getDerivedFrom()
Returns the value of the 'Derived From' attribute. |
int |
getHashCode()
Get the hash code of this state. |
EList<Transition> |
getIncoming()
Get the list of incoming transitions of this state. |
int |
getIndex()
|
int[] |
getLocation()
Get the location of this state. |
Model |
getModel()
Get the associated model of this state. |
int |
getObjectCount()
Get the number of nodes in this state's model. |
int[] |
getObjectKeys()
Get the object keys for the current state model. |
EList<Transition> |
getOutgoing()
Get the list of outgoing transitions of this state. |
Transition |
getOutgoing(State target,
Rule rule,
int match,
int[] paramIDs)
|
StateSpace |
getStateSpace()
Get the state space that contains this state. |
boolean |
isGoal()
Returns the value of the 'Goal' attribute. |
boolean |
isInitial()
Check whether this state is an initial one. |
boolean |
isOpen()
Check whether this state is open. |
boolean |
isPruned()
Returns the value of the 'Pruned' attribute. |
boolean |
isTerminal()
Check whether this state is terminal. |
void |
setDerivedFrom(int derivedFrom)
Sets the value of the ' Derived From ' attribute. |
void |
setGoal(boolean goal)
Sets the value of the ' Goal ' attribute. |
void |
setHashCode(int hashCode)
Set the hash code of this state. |
void |
setIndex(int newIndex)
|
void |
setLocation(int... location)
Sets the location of this state. |
void |
setModel(Model newModel)
Set the model for this state. |
void |
setObjectCount(int objectCount)
Set the number of objects in this state's model. |
void |
setObjectKeys(int[] objectKeys)
Set the object keys for the current state model. |
void |
setOpen(boolean open)
Set the open flag. |
void |
setPruned(boolean pruned)
Sets the value of the ' Pruned ' attribute. |
void |
setStateSpace(StateSpace newStateSpace)
Set the state space that contains this state. |
String |
toString()
|
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 static final int INDEX_EDEFAULT
Index
' attribute.
getIndex()
,
Constant Field Valuesprotected int index
Index
' attribute.
getIndex()
protected EList<Transition> incoming
Incoming
' reference list.
getIncoming()
protected EList<Transition> outgoing
Outgoing
' containment reference list.
getOutgoing()
protected static final int HASH_CODE_EDEFAULT
Hash Code
' attribute.
getHashCode()
,
Constant Field Valuesprotected static final int DERIVED_FROM_EDEFAULT
Derived From
' attribute.
getDerivedFrom()
,
Constant Field Valuesprotected static final boolean OPEN_EDEFAULT
Open
' attribute.
isOpen()
,
Constant Field Valuesprotected static final boolean GOAL_EDEFAULT
Goal
' attribute.
isGoal()
,
Constant Field Valuesprotected static final boolean PRUNED_EDEFAULT
Pruned
' attribute.
isPruned()
,
Constant Field Valuesprotected static final int[] LOCATION_EDEFAULT
Location
' attribute.
getLocation()
protected static final int OBJECT_COUNT_EDEFAULT
Object Count
' attribute.
getObjectCount()
,
Constant Field Valuesprotected static final int[] OBJECT_KEYS_EDEFAULT
Object Keys
' attribute.
getObjectKeys()
protected Model model
Model
' attribute.
getModel()
Constructor Detail |
---|
public StateImpl(int index)
index
- The index of this state.public StateImpl()
Method Detail |
---|
public boolean isInitial()
isInitial
in interface State
public boolean isTerminal()
public Transition getOutgoing(State target, Rule rule, int match, int[] paramIDs)
State
getOutgoing
in interface State
public int getHashCode()
State
getHashCode
in interface State
State.setHashCode(int)
public void setHashCode(int hashCode)
State
setHashCode
in interface State
State.getHashCode()
public int getDerivedFrom()
State
getDerivedFrom
in interface State
State.setDerivedFrom(int)
,
StateSpacePackage.getState_DerivedFrom()
public void setDerivedFrom(int derivedFrom)
State
Derived From
' attribute.
setDerivedFrom
in interface State
derivedFrom
- the new value of the 'Derived From' attribute.State.getDerivedFrom()
public boolean isOpen()
State
isOpen
in interface State
true
if it is open.State.setOpen(boolean)
public void setOpen(boolean open)
State
setOpen
in interface State
open
- the new value of the open flag.State.isOpen()
public boolean isGoal()
State
"false"
.
isGoal
in interface State
State.setGoal(boolean)
,
StateSpacePackage.getState_Goal()
public void setGoal(boolean goal)
State
Goal
' attribute.
setGoal
in interface State
goal
- the new value of the 'Goal' attribute.State.isGoal()
public boolean isPruned()
State
"false"
.
isPruned
in interface State
State.setPruned(boolean)
,
StateSpacePackage.getState_Pruned()
public void setPruned(boolean pruned)
State
Pruned
' attribute.
setPruned
in interface State
pruned
- the new value of the 'Pruned' attribute.State.isPruned()
public int getObjectCount()
State
getObjectCount
in interface State
State.setObjectCount(int)
,
org.eclipse.emf.henshin.statespace.StateSpacePackage#getState_NodeCount()
public void setObjectCount(int objectCount)
State
setObjectCount
in interface State
State.getObjectCount()
public int[] getLocation()
State
getLocation
in interface State
State.setLocation(int[])
public void setLocation(int... location)
State
setLocation
in interface State
State.getLocation()
public int[] getObjectKeys()
State
getObjectKeys
in interface State
public void setObjectKeys(int[] objectKeys)
State
setObjectKeys
in interface State
State.getObjectKeys()
public String toString()
toString
in class StorageImpl
protected EClass eStaticClass()
eStaticClass
in class StorageImpl
public int getIndex()
getIndex
in interface State
State.setIndex(int)
,
StateSpacePackage.getState_Index()
public void setIndex(int newIndex)
setIndex
in interface State
newIndex
- the new index.State.getIndex()
public EList<Transition> getIncoming()
getIncoming
in interface State
Transition.getTarget()
public EList<Transition> getOutgoing()
getOutgoing
in interface State
Transition.getSource()
public Model getModel()
State
getModel
in interface State
#setModel(Resource)
public NotificationChain basicSetModel(Model newModel, NotificationChain msgs)
public void setModel(Model newModel)
State
setModel
in interface State
newModel
- the new value of the 'Model' containment reference.State.getModel()
public StateSpace getStateSpace()
State
getStateSpace
in interface State
State.setStateSpace(StateSpace)
public NotificationChain basicSetStateSpace(StateSpace newStateSpace, NotificationChain msgs)
public void setStateSpace(StateSpace newStateSpace)
State
setStateSpace
in interface State
State.getStateSpace()
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 NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
eBasicRemoveFromContainerFeature
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |