Package com.sodius.mdw.metamodel.uml21
Interface AcceptEventAction
-
- All Superinterfaces:
Action,ActivityNode,Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,ExecutableNode,MDWEObject,MDWObject,NamedElement,org.eclipse.emf.common.notify.Notifier,RedefinableElement
- All Known Subinterfaces:
AcceptCallAction
public interface AcceptEventAction extends Action
A representation of the model object 'Accept Event Action'. A accept event action is an action that waits for the occurrence of an event meeting specified conditions.The following features are supported:
- See Also:
UMLPackage.getAcceptEventAction()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputPincreateResult(String name, Type type)Creates a newOutputPin, with the specified 'Name', and 'Type', and appends it to the 'Result' containment reference list.TriggercreateTrigger(String name)Creates a newTrigger, with the specified 'Name', and appends it to the ' Trigger' containment reference list.OutputPingetResult(String name, Type type)Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' containment reference list.OutputPingetResult(String name, Type type, boolean ignoreCase)Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' reference list.OutputPingetResult(String name, Type type, boolean ignoreCase, boolean createOnDemand)Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' containment reference list.MDWEList<OutputPin>getResults()Returns the value of the 'Result' containment reference list.TriggergetTrigger(String name)Retrieves the firstTriggerwith the specified 'Name' from the 'Trigger' containment reference list.TriggergetTrigger(String name, boolean ignoreCase, boolean createOnDemand)Retrieves the firstTriggerwith the specified 'Name' from the 'Trigger' containment reference list.MDWEList<Trigger>getTriggers()Returns the value of the 'Trigger' containment reference list.booleanisUnmarshall()Returns the value of the 'Is Unmarshall' attribute.voidsetIsUnmarshall(boolean value)Sets the value of the 'Is Unmarshall' attribute.booleanvalidateNoInputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)AcceptEventActions may have no input pins.booleanvalidateNoOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)There are no output pins if the trigger events are only ChangeEvents, or if they are only CallEvents when this action is an instance of AcceptEventAction and not an instance of a descendant of AcceptEventAction (such as AcceptCallAction).booleanvalidateTriggerEvents(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If the trigger events are all TimeEvents, there is exactly one output pin.booleanvalidateUnmarshallSignalEvents(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If isUnmarshall is true, there must be exactly one trigger for events of type SignalEvent.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Action
createLocalPostcondition, createLocalPostcondition, createLocalPrecondition, createLocalPrecondition, getContext, getInput, getInput, getInputs, getLocalPostcondition, getLocalPostcondition, getLocalPostconditions, getLocalPrecondition, getLocalPrecondition, getLocalPreconditions, getOutput, getOutput, getOutputs
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ActivityNode
getActivity, getIncoming, getIncoming, getIncomings, getInGroups, getInInterruptibleRegions, getInPartition, getInPartition, getInPartitions, getInStructuredNode, getOutgoing, getOutgoing, getOutgoings, getRedefinedNode, getRedefinedNode, getRedefinedNodes, setActivity, setInStructuredNode, validateOwned, validateOwnedStructuredNode
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
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.sodius.mdw.metamodel.uml21.ExecutableNode
createHandler, getHandlers
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.RedefinableElement
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid
-
-
-
-
Method Detail
-
isUnmarshall
boolean isUnmarshall()
Returns the value of the 'Is Unmarshall' attribute. The default value is"false". Indicates whether there is a single output pin for the event, or multiple output pins for attributes of the event.- Returns:
- the value of the 'Is Unmarshall' attribute.
- See Also:
setIsUnmarshall(boolean),UMLPackage.getAcceptEventAction_IsUnmarshall()
-
setIsUnmarshall
void setIsUnmarshall(boolean value)
Sets the value of the 'Is Unmarshall' attribute.- Parameters:
value- the new value of the 'Is Unmarshall' attribute.- See Also:
isUnmarshall()
-
getResults
MDWEList<OutputPin> getResults()
Returns the value of the 'Result' containment reference list. The list contents are of typeOutputPin. Pins holding the received event objects or their attributes. Event objects may be copied in transmission, so identity might not be preserved.- Returns:
- the value of the 'Result' containment reference list.
- See Also:
UMLPackage.getAcceptEventAction_Result()
-
createResult
OutputPin createResult(String name, Type type)
Creates a newOutputPin, with the specified 'Name', and 'Type', and appends it to the 'Result' containment reference list.- Parameters:
name- The 'Name' for the newOutputPin, ornull.type- The 'Type' for the newOutputPin, ornull.- Returns:
- The new
OutputPin. - See Also:
getResults()
-
getResult
OutputPin getResult(String name, Type type)
Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' containment reference list.- Parameters:
name- The 'Name' of theOutputPinto retrieve, ornull.type- The 'Type' of theOutputPinto retrieve, ornull.- Returns:
- The first
OutputPinwith the specified 'Name', and 'Type', ornull. - See Also:
getResults()
-
getResult
OutputPin getResult(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' containment reference list.- Parameters:
name- The 'Name' of theOutputPinto retrieve, ornull.type- The 'Type' of theOutputPinto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aOutputPinon demand if not found.- Returns:
- The first
OutputPinwith the specified 'Name', and 'Type', ornull. - See Also:
getResults()
-
getResult
OutputPin getResult(String name, Type type, boolean ignoreCase)
Retrieves the firstOutputPinwith the specified 'Name', and 'Type' from the 'Result' reference list.- Parameters:
name- The 'Name' of theOutputPinto retrieve, ornull.type- The 'Type' of theOutputPinto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.- Returns:
- The first
OutputPinwith the specified 'Name', and 'Type', ornull. - See Also:
getResults()
-
getTriggers
MDWEList<Trigger> getTriggers()
Returns the value of the 'Trigger' containment reference list. The list contents are of typeTrigger. The type of events accepted by the action, as specified by triggers. For triggers with signal events, a signal of the specified type or any subtype of the specified signal type is accepted.- Returns:
- the value of the 'Trigger' containment reference list.
- See Also:
UMLPackage.getAcceptEventAction_Trigger()
-
createTrigger
Trigger createTrigger(String name)
Creates a newTrigger, with the specified 'Name', and appends it to the ' Trigger' containment reference list.- Parameters:
name- The 'Name' for the newTrigger, ornull.- Returns:
- The new
Trigger. - See Also:
getTriggers()
-
getTrigger
Trigger getTrigger(String name)
Retrieves the firstTriggerwith the specified 'Name' from the 'Trigger' containment reference list.- Parameters:
name- The 'Name' of theTriggerto retrieve, ornull.- Returns:
- The first
Triggerwith the specified 'Name', ornull. - See Also:
getTriggers()
-
getTrigger
Trigger getTrigger(String name, boolean ignoreCase, boolean createOnDemand)
Retrieves the firstTriggerwith the specified 'Name' from the 'Trigger' containment reference list.- Parameters:
name- The 'Name' of theTriggerto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.createOnDemand- Whether to create aTriggeron demand if not found.- Returns:
- The first
Triggerwith the specified 'Name', ornull. - See Also:
getTriggers()
-
validateNoInputPins
boolean validateNoInputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)AcceptEventActions may have no input pins. true
-
validateNoOutputPins
boolean validateNoOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)There are no output pins if the trigger events are only ChangeEvents, or if they are only CallEvents when this action is an instance of AcceptEventAction and not an instance of a descendant of AcceptEventAction (such as AcceptCallAction). true
-
validateTriggerEvents
boolean validateTriggerEvents(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If the trigger events are all TimeEvents, there is exactly one output pin. true
-
validateUnmarshallSignalEvents
boolean validateUnmarshallSignalEvents(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)If isUnmarshall is true, there must be exactly one trigger for events of type SignalEvent. The number of result output pins must be the same as the number of attributes of the signal. The type and ordering of each result output pin must be the same as the corresponding attribute of the signal. The multiplicity of each result output pin must be compatible with the multiplicity of the corresponding attribute. true
-
-