Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ component grammar ComponentConnector
;

/**
* Requirements: Wir berücksichtigen primär die Namen der Requirements
* Requirements bestehen aus einem Namen, einem Subjekt (vom Typ PartDef),
* einer Liste von Annahmen und einer Garantie.
*/
interface symbol Requirement =
name:Name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
public class DirectionCompleter implements SysMLBasisVisitor2, SysMLPartsVisitor2 {

/**
* Returns whether this is an input. Defaults to {@code true} if no direction was explicitly set. The keyword "inout"
* yields true.
* Returns whether this is an input. Defaults to {@code true} if no direction
* was explicitly set. The keyword "inout" yields false (by isOut behavior).
*/
protected boolean isIn(ASTModifier modifier) {
return modifier.isIn() || !modifier.isOut() && !modifier.isReturn();
return modifier.isIn() || (!modifier.isOut() && !modifier.isReturn());
}

/**
* Returns whether this is an input. Defaults to {@code false} if no direction was explicitly set. The keyword "inout"
* yields true. The keyword "return" is treated as output.
* Returns whether this is an output. Defaults to {@code false} if no
* direction was explicitly set. The keyword "inout" yields true. The keyword
* "return" is treated as output.
*/
protected boolean isOut(ASTModifier modifier) {
return modifier.isOut() || modifier.isInout() || modifier.isReturn();
Expand Down
Loading