Commit 60ca3183 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

In SDL backend, add case for instances and timers

parent 2b73475b
......@@ -42,13 +42,26 @@ system @_CAPITALIZE:Name_@;
@_STRIP:Provided_Interfaces_@;
@@END_TABLE@@
@@-- Instances: timers have to be treated as signals
@@IF@@ @_Instance_Of_@ /= ""
@@TABLE@@
signal @_Timers_@;
@@END_TABLE@@
@@END_IF@@
@@TABLE@@
@_STRIP:Required_Interfaces_@;
@@END_TABLE@@
channel c
@@IF@@ @_List_Of_PIs'Length_@ > 0
@@IF@@ @_Timers'Length_@ = 0 or @_Instance_Of_@ = ""
from env to @_CAPITALIZE:Name_@ with @_List_Of_ASync_PIs_@;
@@ELSIF@@ @_Instance_Of_@ /= ""
from env to @_CAPITALIZE:Name_@ with @_List_Of_ASync_PIs_@, @_Timers_@;
@@END_IF@@
@@ELSIF@@ @_Timers'Length_@ > 0 and @_Instance_Of_@ /= ""
from env to @_CAPITALIZE:Name_@ with @_Timers_@;
@@END_IF@@
@@IF@@ @_List_Of_RIs'Length_@ > 0
from @_CAPITALIZE:Name_@ to env with @_List_Of_ASync_RIs_@;
......
......@@ -381,6 +381,10 @@ PROPERTIES
END MotherClass_Appear;
SYSTEM IMPLEMENTATION MotherClass_Appear.others
SUBCOMPONENTS
my_timer : DATA DataView::Timer {
Taste::FS_Default_Value => "1";
};
END MotherClass_Appear.others;
END interfaceview::IV::Function1_ShouldNotAppear::MotherClass_Appear;
......@@ -829,12 +833,52 @@ END Y_Hidden.others;
END interfaceview::IV::Y_Hidden;
PACKAGE interfaceview::IV::Instance_of_MotherClass_Appear
PUBLIC
WITH Taste;
WITH DataView;
WITH TASTE_IV_Properties;
SUBPROGRAM PI_run
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_run;
SUBPROGRAM IMPLEMENTATION PI_run.others
PROPERTIES
Compute_Execution_Time => 0 ms .. 0 ms;
END PI_run.others;
SYSTEM Instance_of_MotherClass_Appear
FEATURES
PI_run : PROVIDES SUBPROGRAM ACCESS interfaceview::IV::Instance_of_MotherClass_Appear::PI_run.others {
Taste::coordinates => "153225 127241";
Taste::RCMoperationKind => cyclic;
Taste::RCMperiod => 1000 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "run";
};
PROPERTIES
Source_Language => (SDL);
Taste::Active_Interfaces => any;
END Instance_of_MotherClass_Appear;
SYSTEM IMPLEMENTATION Instance_of_MotherClass_Appear.others
SUBCOMPONENTS
my_timer : DATA DataView::Timer {
Taste::FS_Default_Value => "1";
};
END Instance_of_MotherClass_Appear.others;
END interfaceview::IV::Instance_of_MotherClass_Appear;
PACKAGE interfaceview::IV
PUBLIC
WITH interfaceview::IV::Function1_ShouldNotAppear;
WITH interfaceview::IV::Level0_Appear;
WITH interfaceview::IV::Y_Hidden;
WITH interfaceview::IV::Instance_of_MotherClass_Appear;
WITH Taste;
WITH DataView;
WITH TASTE_IV_Properties;
......@@ -852,6 +896,11 @@ SUBCOMPONENTS
Y_Hidden : SYSTEM interfaceview::IV::Y_Hidden::Y_Hidden.others {
Taste::coordinates => "81833 95002 109817 119693";
};
Instance_of_MotherClass_Appear : SYSTEM interfaceview::IV::Instance_of_MotherClass_Appear::Instance_of_MotherClass_Appear.others {
Taste::coordinates => "133540 127241 174169 140057";
TASTE_IV_Properties::is_Component_Type => false;
TASTE_IV_Properties::is_instance_of => "MotherClass_Appear";
};
CONNECTIONS
Function1_ShouldNotAppear_PI_hello_Level0_Appear_RI_I_say_hello : SUBPROGRAM ACCESS Function1_ShouldNotAppear.PI_hello -> Level0_Appear.RI_I_say_hello {
Taste::coordinates => "99353 67961 111816 67961 111816 55614 124279 55614";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment