partition.tmplt 2.75 KB
Newer Older
1
2
3
4
@@-- The following tags are available in this template:
@@--
@@-- @_Name_@            : Partition name (usually the name of the binary)
@@-- @_Threads_@         : Code generated for the threads
5
6
@@-- @_Thread_Names_@    : Vector Tag: list of thread names
@@-- @_Thread_Has_Param_@ :  |_  true if the thread has a param
7
8
@@-- @_Node_Name_@       : Name of the node containing this partition
@@-- @_Blocks_@          : Code generated for protected functions
9
10
@@-- @_Block_Names@      : Vector Tag: list of block (user functions) names
@@-- @_Block_Languages_@ :   |_ Corresponding implementation language
11
12
13
14
15
@@-- @_Coverage_@        : True if user requested code coverage enable
@@-- @_Package_Name_@    : AADL Package name for the target (e.g. ocarina_porocessors_x86)
@@-- @_CPU_Name_@        : CPU Name (e.g. x86_linux)
@@-- @_CPU_Platform_@    : AADL CPU_Platform (e.g. PLATFORM_NATIVE)
@@-- @_CPU_Classifier_@  : AADL CPU Classifier (e.g. ocarina_processors_x86::x86.linux)
16
17
18
19
@@-- @_VP_Name_@         : Virtual processor name on which the partition is bounded
@@-- @_VP_Platform_@     : Virtual processor platform (e.g. PLATFORM_AIR)
@@-- @_VP_Classifier_@   : Virtual processor classifier
@@-- @_Ada_Runtime_@     : Set if CPU_Platform = PLATFORM_GNAT_RUNTIME
20
21
22
23
24
@@-- @_Bound_Functions_@ : List of user functions from Interface view
@@-- @_Thread_Src_Name_@ : Vector tag : connection thread name (source)
@@-- @_Thread_Dst_Name_@ : Vector tag : connection thread name (dest)
@@-- @_Thread_Src_Port_@ : Vector tag : connection port name (source)
@@-- @_Thread_Dst_Port_@ : Vector tag : connection port name (dest)
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@@-- @_In_Port_Names_@        : Vector tag: input ports of the partition
@@-- @_In_Port_Thread_Name_@  :     |_ corresponding thread inside the partition
@@-- @_In_Port_Type_Name_@    :     |_ corresponding parameter type name (optional)
@@-- @_Out_Port_Names_@       : Vector tag: output ports of the partition
@@-- @_Out_Port_Thread_Name_@ :     |_ corresponding thread inside the partition
@@-- @_Out_Port_Type_Name_@   :     |_ corresponding parameter type name (optional)
with Interfaces.C;
with PolyORB_HI_Generated.Deployment;
use  PolyORB_HI_Generated.Deployment;
@@TABLE@@
@@IF@@ @_Thread_Has_Param_@
@@SET@@ Need_Types=True
@@END_IF@@
@@END_TABLE@@
@@IF@@ @_Need_Types_@
with PolyORB_HI_Generated.Types;
use  PolyORB_HI_Generated.Types;
@@END_IF@@

@@-- Make sure at least someone includes the user Ada packages (for compilation/elaboration)
@@TABLE@@
  @@IF@@ @_Block_Languages_@ = SDL or @_Block_Languages_@ = Ada
with @_CAPITALIZE:Block_Names_@;
  @@END_IF@@
@@END_TABLE@@

package @_CAPITALIZE:Name_@_Polyorb_Interface is
   --  generated from templates/concurrency_view/ada_wrappers_source/partition.tmplt
   @_Blocks'Indent_@
   @_Threads'Indent_@
end @_CAPITALIZE:Name_@_Polyorb_Interface;