-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFlow.java
More file actions
30 lines (28 loc) · 979 Bytes
/
Copy pathFlow.java
File metadata and controls
30 lines (28 loc) · 979 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
30
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;
import sysmlinjava.kinds.SysMLFlowDirectionKind;
/**
* Indicates that the field that follows represents a SysML "flow" property. The
* field variable should be an instance of an extension to the
* {@code SysMLValueType} and is created/initialized in a {@code createFlows()}
* method. Optionally, the annotation can specify the flow direction, i.e. in,
* out, inout, which defaults to in.
*
* @author ModelerOne
*
* @see sysmlinjava.valuetypes.SysMLValueType
*/
@Retention(SOURCE)
@Target(FIELD)
public @interface Flow
{
/**
* Returns the kind of direction to be associated with the flow
*
* @return direction: in or out or inout
*/
SysMLFlowDirectionKind direction() default SysMLFlowDirectionKind.in;
}