Interface StateInvariant
-
- All Superinterfaces:
BaseElement,java.lang.Cloneable,java.lang.Comparable,Element,org.eclipse.emf.ecore.EObject,InteractionFragment,MDObject,ModelObject,NamedElement,org.eclipse.emf.common.notify.Notifier,javax.jmi.reflect.RefBaseObject,javax.jmi.reflect.RefFeatured,javax.jmi.reflect.RefObject
public interface StateInvariant extends InteractionFragment
A representation of the model object 'State Invariant'.A StateInvariant is a runtime constraint on the participants of the Interaction. It may be used to specify a variety of different kinds of Constraints, such as values of Attributes or Variables, internal or external States, and so on. A StateInvariant is an InteractionFragment and it is placed on a Lifeline.
The following features are supported:
- See Also:
UMLPackage.getStateInvariant()- Model:
- annotation="MOF package='interactions.mdbasicinteractions'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<Lifeline>getCovered()Returns the value of the 'Covered' reference list.ConstraintgetInvariant()Returns the value of the 'Invariant' containment reference.voidsetInvariant(Constraint value)Sets the value of the 'Invariant' containment reference.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
-
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 com.nomagic.uml2.ext.magicdraw.interactions.mdbasicinteractions.InteractionFragment
getEnclosingInteraction, getEnclosingOperand, getGeneralOrdering, hasCovered, hasGeneralOrdering, setEnclosingInteraction, setEnclosingOperand
-
Methods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.NamedElement
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, getVisibility, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespace, setVisibility
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
-
-
-
Method Detail
-
getInvariant
@CheckForNull Constraint getInvariant()
Returns the value of the 'Invariant' containment reference. It is bidirectional and its opposite is 'state Invariant Of Invariant'. A Constraint that should hold at runtime for this StateInvariant.- Returns:
- the value of the 'Invariant' containment reference.
- See Also:
setInvariant(Constraint),UMLPackage.getStateInvariant_Invariant(),Constraint.get_stateInvariantOfInvariant()- Model:
- opposite="_stateInvariantOfInvariant" containment="true" resolveProxies="true" required="true" ordered="false"
- Generated:
-
setInvariant
void setInvariant(@CheckForNull Constraint value)Sets the value of the 'Invariant' containment reference.- Parameters:
value- the new value of the 'Invariant' containment reference.- See Also:
getInvariant()- Generated:
-
getCovered
java.util.Collection<Lifeline> getCovered()
Returns the value of the 'Covered' reference list. The list contents are of typeLifeline. It is bidirectional and its opposite is 'state Invariant Of Covered'. References the Lifeline on which the StateInvariant appears.- Specified by:
getCoveredin interfaceInteractionFragment- Returns:
- the value of the 'Covered' reference list.
- See Also:
UMLPackage.getStateInvariant_Covered(),Lifeline.get_stateInvariantOfCovered()- Model:
- opposite="_stateInvariantOfCovered" ordered="false"
- Generated:
-
-