Skip to content

Commit 783e60c

Browse files
committed
Made minor model updates.
1 parent 220754f commit 783e60c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

sysml.library/Kernel Libraries/Kernel Function Library/DataFunctions.kerml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ standard library package DataFunctions {
77

88
private import Base::DataValue;
99
private import ScalarValues::Boolean;
10-
private import ControlFunctions::reduce;
10+
private import ControlFunctions::reduce;
1111

12+
abstract function '==' specializes BaseFunctions::'==' { in x: DataValue[0..1]; in y: DataValue[0..1];
13+
return : Boolean[1];
14+
}
1215
function '===' specializes BaseFunctions::'==='{ in x: DataValue[0..1]; in y: DataValue[0..1];
1316
return : Boolean[1] = x == y;
1417
}
1518

16-
1719
abstract function '+' { in x: DataValue[1]; in y: DataValue[0..1]; return : DataValue[1]; }
1820
abstract function '-' { in x: DataValue[1]; in y: DataValue[0..1]; return : DataValue[1]; }
1921
abstract function '*' { in x: DataValue[1]; in y: DataValue[1]; return : DataValue[1]; }
@@ -37,7 +39,5 @@ standard library package DataFunctions {
3739
abstract function Max { in x: DataValue[1]; in y: DataValue[1]; return : DataValue[1]; }
3840
abstract function Min { in x: DataValue[1]; in y: DataValue[1]; return : DataValue[1]; }
3941

40-
abstract function '==' specializes BaseFunctions::'==' { in x: DataValue[0..1]; in y: DataValue[0..1]; return : Boolean[1]; }
41-
4242
abstract function '..' { in lower: DataValue[1]; in upper: DataValue[1]; return : DataValue[0..*] ordered; }
4343
}

sysml/src/training/26. Occurrences/Interaction Example-2.sysml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ package 'Interaction Example-2' {
88
occurrence def CruiseControlInteraction {
99

1010
ref part driver : Driver {
11-
event setSpeedMessage.source;
11+
event setSpeedMessage.sourceEvent;
1212
}
1313

1414
ref part vehicle : Vehicle {
1515
part cruiseController : CruiseController {
16-
event setSpeedMessage.target;
17-
then event sensedSpeedMessage.target;
18-
then event fuelCommandMessage.source;
16+
event setSpeedMessage.targetEvent;
17+
then event sensedSpeedMessage.targetEvent;
18+
then event fuelCommandMessage.sourceEvent;
1919
}
2020

2121
part speedometer : Speedometer {
22-
event sensedSpeedMessage.source;
22+
event sensedSpeedMessage.sourceEvent;
2323
}
2424

2525
part engine : Engine {
26-
event fuelCommandMessage.target;
26+
event fuelCommandMessage.targetEvent;
2727
}
2828
}
2929

0 commit comments

Comments
 (0)