/
Reception.java
108 lines (100 loc) · 3.47 KB
/
Reception.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
* Copyright (c) 2005, 2018 IBM Corporation, CEA, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey (CEA) - 327039, 418466, 451350
* Christian W. Damus (CEA) - 251963
* Kenn Hussey - 535301
*
*/
package org.eclipse.uml2.uml;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Reception</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* A Reception is a declaration stating that a Classifier is prepared to react to the receipt of a Signal.
* <p>From package UML::SimpleClassifiers.</p>
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.eclipse.uml2.uml.Reception#getSignal <em>Signal</em>}</li>
* </ul>
*
* @see org.eclipse.uml2.uml.UMLPackage#getReception()
* @model
* @generated
*/
public interface Reception
extends BehavioralFeature {
/**
* Returns the value of the '<em><b>Signal</b></em>' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* The Signal that this Reception handles.
* <p>From package UML::SimpleClassifiers.</p>
* <!-- end-model-doc -->
* @return the value of the '<em>Signal</em>' reference.
* @see #setSignal(Signal)
* @see org.eclipse.uml2.uml.UMLPackage#getReception_Signal()
* @model required="true" ordered="false"
* @generated
*/
Signal getSignal();
/**
* Sets the value of the '{@link org.eclipse.uml2.uml.Reception#getSignal <em>Signal</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Signal</em>' reference.
* @see #getSignal()
* @generated
*/
void setSignal(Signal value);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* A Reception has the same name as its signal
* name = signal.name
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateSameNameAsSignal(DiagnosticChain diagnostics,
Map<Object, Object> context);
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
* A Reception's parameters match the ownedAttributes of its signal by name, type, and multiplicity
* signal.ownedAttribute->size() = ownedParameter->size() and
* Sequence{1..signal.ownedAttribute->size()}->forAll( i |
* ownedParameter->at(i).direction = ParameterDirectionKind::_'in' and
* ownedParameter->at(i).name = signal.ownedAttribute->at(i).name and
* ownedParameter->at(i).type = signal.ownedAttribute->at(i).type and
* ownedParameter->at(i).lowerBound() = signal.ownedAttribute->at(i).lowerBound() and
* ownedParameter->at(i).upperBound() = signal.ownedAttribute->at(i).upperBound()
* )
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model
* @generated
*/
boolean validateSameStructureAsSignal(DiagnosticChain diagnostics,
Map<Object, Object> context);
} // Reception