-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSignal.java
More file actions
29 lines (26 loc) · 985 Bytes
/
Copy pathSignal.java
File metadata and controls
29 lines (26 loc) · 985 Bytes
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
package sysmlinjava.annotations;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Indicates that the field that follows represents a SysML signal, The
* field variable should be an instance an extension to the
* {@code SysMLSignal}and should be created/initialized in the
* {@code createAttributes()} method.
* <p>
* Note to be compliant with SysML, this annotation should not be used for a
* field in a {@code SysMLBlock} as the SysML block does une "attributes" in the
* sense that the class does. Instead, annotations in the block should be
* {@code @Value}, {@code @FullPort}, {@code @Reference},
* {@code @Part}, {@code @Constraint}, etc.
*
* @author ModelerOne
*
* @see sysmlinjava.common.SysMLClass
*/
@Retention(SOURCE)
@Target(FIELD)
public @interface Signal
{
}