Interface StateInvariant
- All Superinterfaces:
 BaseElement,Cloneable,Comparable,Element,org.eclipse.emf.ecore.EObject,InteractionFragment,MDObject,com.dassault_systemes.modeler.foundation.model.ModelElement,ModelObject,NamedElement,org.eclipse.emf.common.notify.Notifier,javax.jmi.reflect.RefBaseObject,javax.jmi.reflect.RefFeatured,javax.jmi.reflect.RefObject
 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:
 - Model:
 - annotation="MOF package='interactions.mdbasicinteractions'"
 - Generated:
 
- 
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Covered' reference list.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, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, isEditable, removePropertyChangeListener, sGetIDMethods inherited from interface java.lang.Comparable
compareToMethods 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, setSyncElementMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface com.nomagic.uml2.ext.magicdraw.interactions.mdbasicinteractions.InteractionFragment
getEnclosingInteraction, getEnclosingOperand, getGeneralOrdering, hasCovered, hasGeneralOrdering, setEnclosingInteraction, setEnclosingOperandMethods inherited from interface com.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setIDMethods inherited from interface com.dassault_systemes.modeler.foundation.model.ModelElement
canChangeElementOwner, eDynamicGet, getElementOwner, getLocalID, getObjectParent, setLocalID, sGetLocalIDMethods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, ignoringRefGetValue, ignoringRefGetValue, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationTextMethods 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, setVisibilityMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliverMethods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraintsMethods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValueMethods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite 
- 
Method Details
- 
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:
 - Model:
 - opposite="_stateInvariantOfInvariant" containment="true" resolveProxies="true" required="true" ordered="false"
 - Generated:
 
 - 
setInvariant
Sets the value of the 'Invariant' containment reference.- Parameters:
 value- the new value of the 'Invariant' containment reference.- See Also:
 - Generated:
 
 - 
getCovered
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:
 - Model:
 - opposite="_stateInvariantOfCovered" ordered="false"
 - Generated:
 
 
 -