Export-import problems with a use case #976
johnafitch
started this conversation in
General
Replies: 1 comment
-
|
Hello, My answers below:
The import from textual SysMLv2 and export to textual SysMLv2 with SysON are currently under development and we still have some unhandled concepts/relations in both cases. Regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because of the UI limitations that I experienced per Discussion #975, I attempted to download/export the textual model of my example, fix it in a text editor and import it into a new package. The combined exported (first package), then imported (2nd package) code was:
package 'Direct Input - Flat structure' {
use case 'useCase-Transport1' {
action start {
action forkNode1;
action driverGetInVehicle;
action passenger1GetInVehicle;
first forkNode1 then driverGetInVehicle;
first forkNode1 then passenger1GetInVehicle;
action joinNode1;
action '^done';
action driverGetOutOfVehicle;
action passenger1GetOutOfVehicle;
action driveVehicleToDestination;
action providePower;
first driverGetInVehicle then joinNode1;
first passenger1GetInVehicle then joinNode1;
first forkNode2 then driveVehicleToDestination;
first forkNode2 then providePower;
action forkNode3;
first driveVehicleToDestination then forkNode3;
first providePower then forkNode3;
first forkNode3 then driverGetOutOfVehicle;
first forkNode3 then passenger1GetOutOfVehicle;
first driverGetOutOfVehicle then '^done';
first passenger1GetOutOfVehicle then '^done';
action ignitionCmd {
inout payload;
in receiver = ;
}
first joinNode1 then ignitionCmd;
action forkNode2;
first ignitionCmd then forkNode2;
}
}
}
Edited, then imported:
package 'Import actions under UC' {
use case 'useCase-Transport1b';
action start;
action forkNode1;
action driverGetInVehicle;
action passenger1GetInVehicle;
first forkNode1 then driverGetInVehicle;
first forkNode1 then passenger1GetInVehicle;
action joinNode1;
action '^done';
action driverGetOutOfVehicle;
action passenger1GetOutOfVehicle;
action driveVehicleToDestination;
action providePower;
first driverGetInVehicle then joinNode1;
first passenger1GetInVehicle then joinNode1;
first forkNode2 then driveVehicleToDestination;
first forkNode2 then providePower;
action forkNode3;
first driveVehicleToDestination then forkNode3;
first providePower then forkNode3;
first forkNode3 then driverGetOutOfVehicle;
first forkNode3 then passenger1GetOutOfVehicle;
first driverGetOutOfVehicle then;
first passenger1GetOutOfVehicle then;
action ignitionCmd {
inout payload;
in receiver = ;
}
first joinNode1 then ignitionCmd;
action forkNode2;
first ignitionCmd then forkNode2;
}
Several anomalies occurred in this process.
Some of this may be cockpit and coding errors on my part. If so, please advise.
UseCaseTransportPassenger-2025-01-28b-Import-under-UC.txt
Beta Was this translation helpful? Give feedback.
All reactions