Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0327bfa

Browse files
Initial version, added annotations 1
1 parent 1b5fe19 commit 0327bfa

File tree

94 files changed

+2432
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2432
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package sysmlinjava.annotations.blockcontainers;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents the realization of a SysML
11+
* association, i.e. a "connector" with a block "part" that is external to the
12+
* current {@code BlockContainer}. The connector is defined by an instance of a
13+
* {@code SysMLAssociationBlock} within the context of the current
14+
* {@code SysMLBlock}. Upon initialization of the association, an
15+
* {@code @AssociationConnectorFunction} contained in the
16+
* {@code SysMLAssociationBlock} actually makes the connection(s) between
17+
* participants in the association that are also defined by the
18+
* {@code SysMLAssociationBlock}.
19+
*
20+
* @author ModelerOne
21+
*
22+
* @see sysmlinjava.connectors.SysMLExternalAssociationBlockConnectorFunction
23+
* @see sysmlinjava.connectors.SysMLExternalAssociationBlockConnector
24+
*
25+
*/
26+
@Documented
27+
@Retention(SOURCE)
28+
@Target(FIELD)
29+
public @interface ExternalAssociationConnector
30+
{
31+
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package sysmlinjava.annotations.blockcontainers;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a SysML "connector", i.e. a
11+
* function that makes the connections between participants in the association
12+
* defined by a {@code SysMLAssociationBlock}. The initialization (constructor)
13+
* of a {@code SysMLAssociationBlockConnector} within the context of the current
14+
* SysMLBlock is invoked by a containing {@code SysMLBlockAssociationBlock}
15+
* during a {@code createConnectors} operation in the block to actually make the
16+
* connections that are defined by the initialization of the
17+
* {@code SysMLBlockAssociationBlock} that defines the connection.
18+
*
19+
* @author ModelerOne
20+
*
21+
* @see sysmlinjava.connectors.SysMLExternalAssociationBlockConnectorFunction
22+
* @see sysmlinjava.connectors.SysMLExternalAssociationBlockConnector
23+
*/
24+
@Documented
25+
@Retention(SOURCE)
26+
@Target(FIELD)
27+
public @interface ExternalAssociationConnectorFunction
28+
{
29+
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package sysmlinjava.annotations.blockcontainers;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a replica of a SysML block
11+
* "part" that is external to the context of the current {@code SysMLBlock}
12+
* container. The {@code ExternalPartReplica} is used to create connectors to
13+
* the actual part when the part is external to the current
14+
* {@code BlockContainer}, i.e. internal to another {@code BlockContainer}. The
15+
* {@code ExternalPartReplica} provides the information needed to make the
16+
* connection to the actual part that is external to the container, e.g. the
17+
* replica includes the external part's fullPort's, their IP addresses and UDP
18+
* ports, contextBlock, etc. These elements and values are typically used to
19+
* connect parts in the container to parts in other containers.
20+
*
21+
* @author ModelerOne
22+
*
23+
* @see sysmlinjava.blocks.BlockContainer
24+
*/
25+
@Documented
26+
@Retention(SOURCE)
27+
@Target(FIELD)
28+
public @interface ExternalPartReplica
29+
{
30+
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* Contains annotations on fields used to identify them as connectors between
3+
* blocks or ports located in different {@code BlockContainer}s, i.e. in
4+
* different proceses, of executing SysMLinJava models.
5+
*/
6+
package sysmlinjava.annotations.blockcontainers;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a SysML comment, i.e. an
10+
* instance of a {@code SysMLComment}
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target({FIELD})
17+
public @interface Comment
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a SysML constraint note
11+
* comment, i.e. an instance of a {@code SysMLConstraintNote}
12+
*
13+
* @author ModelerOne
14+
*
15+
*/
16+
@Documented
17+
@Retention(SOURCE)
18+
@Target(FIELD)
19+
public @interface ConstraintNote
20+
{
21+
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a SysML element group
11+
* comment, i.e. an instance of a {@code SysMLElementGroup}
12+
*
13+
* @author ModelerOne
14+
*
15+
*/
16+
@Documented
17+
@Retention(SOURCE)
18+
@Target(FIELD)
19+
public @interface ElementGroup
20+
{
21+
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a SysML hyperlink comment,
11+
* i.e. an instance of a {@code SysMLHyperlink}
12+
*
13+
* @author ModelerOne
14+
*
15+
*/
16+
@Documented
17+
@Retention(SOURCE)
18+
@Target(FIELD)
19+
public @interface Hyperlink
20+
{
21+
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a SysML problem comment,
10+
* i.e. an instance of a {@code SysMLProblem}
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target({FIELD})
17+
public @interface Problem
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.comments;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a SysML rationale comment,
10+
* i.e. an instance of a {@code SysMLRationale}
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target(FIELD)
17+
public @interface Rationale
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Contains annotations on fields used to identify them as SysML comments.
3+
*/
4+
package sysmlinjava.annotations.comments;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.dependencies;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a model element upon
10+
* which the current element has a SysML allocate dependency
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target(FIELD)
17+
public @interface Allocate
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.dependencies;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a model element on which the
10+
* current element has a SysML conform dependency
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target(FIELD)
17+
public @interface Conform
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
package sysmlinjava.annotations.dependencies;
3+
4+
import static java.lang.annotation.ElementType.FIELD;
5+
import static java.lang.annotation.RetentionPolicy.SOURCE;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a model element on which the
11+
* current element has a SysML copy dependency
12+
*
13+
* @author ModelerOne
14+
*
15+
*/
16+
@Retention(SOURCE)
17+
@Target(FIELD)
18+
public @interface Copy
19+
20+
{
21+
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package sysmlinjava.annotations.dependencies;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.CLASS;
5+
import java.lang.annotation.Documented;
6+
import java.lang.annotation.Retention;
7+
import java.lang.annotation.Target;
8+
9+
/**
10+
* Indicates that the field that follows represents a model element upon which
11+
* the current element has a SysML dependency
12+
*
13+
* @author ModelerOne
14+
*
15+
*/
16+
@Documented
17+
@Retention(CLASS)
18+
@Target(FIELD)
19+
public @interface Dependency
20+
{
21+
/**
22+
* Return whether this side of the dependency is the dependent (on the other
23+
* side)
24+
*
25+
* @return true if this side of the dependency is the dependent, false otherwise
26+
*/
27+
boolean isDependent() default true;
28+
29+
/**
30+
* Minimum of the multiplicity
31+
*
32+
* @return minimum of multiplicity
33+
*/
34+
int multiplicityMin() default 1;
35+
36+
/**
37+
* Maximum of the multiplicity
38+
*
39+
* @return maximum of multiplicity
40+
*/
41+
int multiplicityMax() default 1;
42+
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.dependencies;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a model element on which the
10+
* current element has a SysML derive dependency
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target(FIELD)
17+
public @interface Derive
18+
{
19+
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sysmlinjava.annotations.dependencies;
2+
3+
import static java.lang.annotation.ElementType.FIELD;
4+
import static java.lang.annotation.RetentionPolicy.SOURCE;
5+
import java.lang.annotation.Retention;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Indicates that the field that follows represents a model element on which the
10+
* current element has a SysML expose dependency
11+
*
12+
* @author ModelerOne
13+
*
14+
*/
15+
@Retention(SOURCE)
16+
@Target(FIELD)
17+
public @interface Expose
18+
{
19+
20+
}

0 commit comments

Comments
 (0)