2929 *
3030 */
3131
32- encapsulated package NFComponent
32+ encapsulated uniontype NFComponent
3333
3434import DAE ;
3535import NFBinding.Binding ;
@@ -49,71 +49,70 @@ import List;
4949import Prefixes = NFPrefixes ;
5050import SCodeUtil ;
5151import Restriction = NFRestriction ;
52+ import Component = NFComponent ;
5253
5354public
54- constant Component . Attributes DEFAULT_ATTR =
55- Component . Attributes . ATTRIBUTES (
56- ConnectorType . NON_CONNECTOR ,
57- Parallelism . NON_PARALLEL ,
58- Variability . CONTINUOUS ,
59- Direction . NONE ,
60- InnerOuter . NOT_INNER_OUTER ,
61- false ,
62- false ,
63- Replaceable . NOT_REPLACEABLE ()
64- );
65- constant Component . Attributes INPUT_ATTR =
66- Component . Attributes . ATTRIBUTES (
67- ConnectorType . NON_CONNECTOR ,
68- Parallelism . NON_PARALLEL ,
69- Variability . CONTINUOUS ,
70- Direction . INPUT ,
71- InnerOuter . NOT_INNER_OUTER ,
72- false ,
73- false ,
74- Replaceable . NOT_REPLACEABLE ()
75- );
76-
77- constant Component . Attributes OUTPUT_ATTR =
78- Component . Attributes . ATTRIBUTES (
79- ConnectorType . NON_CONNECTOR ,
80- Parallelism . NON_PARALLEL ,
81- Variability . CONTINUOUS ,
82- Direction . OUTPUT ,
83- InnerOuter . NOT_INNER_OUTER ,
84- false ,
85- false ,
86- Replaceable . NOT_REPLACEABLE ()
87- );
88-
89- constant Component . Attributes CONSTANT_ATTR =
90- Component . Attributes . ATTRIBUTES (
91- ConnectorType . NON_CONNECTOR ,
92- Parallelism . NON_PARALLEL ,
93- Variability . CONSTANT ,
94- Direction . NONE ,
95- InnerOuter . NOT_INNER_OUTER ,
96- false ,
97- false ,
98- Replaceable . NOT_REPLACEABLE ()
99- );
100-
101- constant Component . Attributes IMPL_DISCRETE_ATTR =
102- Component . Attributes . ATTRIBUTES (
103- ConnectorType . NON_CONNECTOR ,
104- Parallelism . NON_PARALLEL ,
105- Variability . IMPLICITLY_DISCRETE ,
106- Direction . NONE ,
107- InnerOuter . NOT_INNER_OUTER ,
108- false ,
109- false ,
110- Replaceable . NOT_REPLACEABLE ()
111- );
112-
113- uniontype Component
114- uniontype Attributes
115- import SCode ;
55+ constant Attributes DEFAULT_ATTR =
56+ Attributes . ATTRIBUTES (
57+ ConnectorType . NON_CONNECTOR ,
58+ Parallelism . NON_PARALLEL ,
59+ Variability . CONTINUOUS ,
60+ Direction . NONE ,
61+ InnerOuter . NOT_INNER_OUTER ,
62+ false ,
63+ false ,
64+ Replaceable . NOT_REPLACEABLE ()
65+ );
66+
67+ constant Attributes INPUT_ATTR =
68+ Attributes . ATTRIBUTES (
69+ ConnectorType . NON_CONNECTOR ,
70+ Parallelism . NON_PARALLEL ,
71+ Variability . CONTINUOUS ,
72+ Direction . INPUT ,
73+ InnerOuter . NOT_INNER_OUTER ,
74+ false ,
75+ false ,
76+ Replaceable . NOT_REPLACEABLE ()
77+ );
78+
79+ constant Attributes OUTPUT_ATTR =
80+ Attributes . ATTRIBUTES (
81+ ConnectorType . NON_CONNECTOR ,
82+ Parallelism . NON_PARALLEL ,
83+ Variability . CONTINUOUS ,
84+ Direction . OUTPUT ,
85+ InnerOuter . NOT_INNER_OUTER ,
86+ false ,
87+ false ,
88+ Replaceable . NOT_REPLACEABLE ()
89+ );
90+
91+ constant Attributes CONSTANT_ATTR =
92+ Attributes . ATTRIBUTES (
93+ ConnectorType . NON_CONNECTOR ,
94+ Parallelism . NON_PARALLEL ,
95+ Variability . CONSTANT ,
96+ Direction . NONE ,
97+ InnerOuter . NOT_INNER_OUTER ,
98+ false ,
99+ false ,
100+ Replaceable . NOT_REPLACEABLE ()
101+ );
102+
103+ constant Attributes IMPL_DISCRETE_ATTR =
104+ Attributes . ATTRIBUTES (
105+ ConnectorType . NON_CONNECTOR ,
106+ Parallelism . NON_PARALLEL ,
107+ Variability . IMPLICITLY_DISCRETE ,
108+ Direction . NONE ,
109+ InnerOuter . NOT_INNER_OUTER ,
110+ false ,
111+ false ,
112+ Replaceable . NOT_REPLACEABLE ()
113+ );
116114
115+ uniontype Attributes
117116 record ATTRIBUTES
118117 // adrpo: keep the order in DAE.ATTR
119118 ConnectorType . Type connectorType;
@@ -1002,7 +1001,6 @@ uniontype Component
10021001 else false ;
10031002 end match;
10041003 end isTypeAttribute;
1005- end Component ;
10061004
10071005annotation(__OpenModelica_Interface= "frontend" );
10081006end NFComponent ;
0 commit comments