Skip to content

Commit f053df8

Browse files
committed
Added other examples from unitary_schemas directory
1 parent 8cad6ec commit f053df8

2 files changed

Lines changed: 283 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file was generated by fedex_python. You probably don't want to edit
2+
# it since your modifications will be lost if fedex_plus is used to
3+
# regenerate it.
4+
from SCL.SCLBase import *
5+
from SCL.SimpleDataTypes import *
6+
from SCL.ConstructedDataTypes import *
7+
from SCL.AggregationDataTypes import *
8+
from SCL.TypeChecker import check_type
9+
from SCL.Expr import *
10+
maths_number = NUMBER
11+
# SELECT TYPE atom_based_value_
12+
if (not 'maths_number' in globals().keys()):
13+
maths_number = 'maths_number'
14+
if (not 'atom_based_tuple' in globals().keys()):
15+
atom_based_tuple = 'atom_based_tuple'
16+
atom_based_value = SELECT(
17+
'maths_number',
18+
'atom_based_tuple')
19+
atom_based_tuple = LIST(0,None,'atom_based_value')
Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
# This file was generated by fedex_python. You probably don't want to edit
2+
# it since your modifications will be lost if fedex_plus is used to
3+
# regenerate it.
4+
from SCL.SCLBase import *
5+
from SCL.SimpleDataTypes import *
6+
from SCL.ConstructedDataTypes import *
7+
from SCL.AggregationDataTypes import *
8+
from SCL.TypeChecker import check_type
9+
from SCL.Expr import *
10+
text = STRING
11+
representation_context = STRING
12+
identifier = STRING
13+
shape_definition = STRING
14+
transformation = STRING
15+
representation_item = STRING
16+
characterized_product_definition = STRING
17+
# SELECT TYPE characterized_definition_
18+
if (not 'characterized_object' in globals().keys()):
19+
characterized_object = 'characterized_object'
20+
if (not 'characterized_product_definition' in globals().keys()):
21+
characterized_product_definition = 'characterized_product_definition'
22+
if (not 'shape_definition' in globals().keys()):
23+
shape_definition = 'shape_definition'
24+
characterized_definition = SELECT(
25+
'characterized_object',
26+
'characterized_product_definition',
27+
'shape_definition')
28+
label = STRING
29+
characterized_object = STRING
30+
31+
####################
32+
# ENTITY representation_relationship #
33+
####################
34+
class representation_relationship(BaseEntityClass):
35+
'''Entity representation_relationship definition.
36+
37+
:param name
38+
:type name:STRING
39+
40+
:param rep_1
41+
:type rep_1:representation
42+
43+
:param rep_2
44+
:type rep_2:representation
45+
'''
46+
def __init__( self , name,rep_1,rep_2, ):
47+
self.name = name
48+
self.rep_1 = rep_1
49+
self.rep_2 = rep_2
50+
51+
@apply
52+
def name():
53+
def fget( self ):
54+
return self._name
55+
def fset( self, value ):
56+
# Mandatory argument
57+
if value==None:
58+
raise AssertionError('Argument name is mantatory and can not be set to None')
59+
if not check_type(value,STRING):
60+
self._name = STRING(value)
61+
else:
62+
self._name = value
63+
return property(**locals())
64+
65+
@apply
66+
def rep_1():
67+
def fget( self ):
68+
return self._rep_1
69+
def fset( self, value ):
70+
# Mandatory argument
71+
if value==None:
72+
raise AssertionError('Argument rep_1 is mantatory and can not be set to None')
73+
if not check_type(value,representation):
74+
self._rep_1 = representation(value)
75+
else:
76+
self._rep_1 = value
77+
return property(**locals())
78+
79+
@apply
80+
def rep_2():
81+
def fget( self ):
82+
return self._rep_2
83+
def fset( self, value ):
84+
# Mandatory argument
85+
if value==None:
86+
raise AssertionError('Argument rep_2 is mantatory and can not be set to None')
87+
if not check_type(value,representation):
88+
self._rep_2 = representation(value)
89+
else:
90+
self._rep_2 = value
91+
return property(**locals())
92+
93+
####################
94+
# ENTITY shape_representation_relationship #
95+
####################
96+
class shape_representation_relationship(representation_relationship):
97+
'''Entity shape_representation_relationship definition.
98+
'''
99+
def __init__( self , representation_relationship__name , representation_relationship__rep_1 , representation_relationship__rep_2 , ):
100+
representation_relationship.__init__(self , representation_relationship__name , representation_relationship__rep_1 , representation_relationship__rep_2 , )
101+
102+
####################
103+
# ENTITY representation #
104+
####################
105+
class representation(BaseEntityClass):
106+
'''Entity representation definition.
107+
108+
:param name
109+
:type name:STRING
110+
111+
:param items
112+
:type items:SET(1,None,'STRING')
113+
114+
:param context_of_items
115+
:type context_of_items:STRING
116+
'''
117+
def __init__( self , name,items,context_of_items, ):
118+
self.name = name
119+
self.items = items
120+
self.context_of_items = context_of_items
121+
122+
@apply
123+
def name():
124+
def fget( self ):
125+
return self._name
126+
def fset( self, value ):
127+
# Mandatory argument
128+
if value==None:
129+
raise AssertionError('Argument name is mantatory and can not be set to None')
130+
if not check_type(value,STRING):
131+
self._name = STRING(value)
132+
else:
133+
self._name = value
134+
return property(**locals())
135+
136+
@apply
137+
def items():
138+
def fget( self ):
139+
return self._items
140+
def fset( self, value ):
141+
# Mandatory argument
142+
if value==None:
143+
raise AssertionError('Argument items is mantatory and can not be set to None')
144+
if not check_type(value,SET(1,None,'STRING')):
145+
self._items = SET(value)
146+
else:
147+
self._items = value
148+
return property(**locals())
149+
150+
@apply
151+
def context_of_items():
152+
def fget( self ):
153+
return self._context_of_items
154+
def fset( self, value ):
155+
# Mandatory argument
156+
if value==None:
157+
raise AssertionError('Argument context_of_items is mantatory and can not be set to None')
158+
if not check_type(value,STRING):
159+
self._context_of_items = STRING(value)
160+
else:
161+
self._context_of_items = value
162+
return property(**locals())
163+
164+
####################
165+
# ENTITY property_definition #
166+
####################
167+
class property_definition(BaseEntityClass):
168+
'''Entity property_definition definition.
169+
170+
:param name
171+
:type name:STRING
172+
173+
:param definition
174+
:type definition:characterized_definition
175+
'''
176+
def __init__( self , name,definition, ):
177+
self.name = name
178+
self.definition = definition
179+
180+
@apply
181+
def name():
182+
def fget( self ):
183+
return self._name
184+
def fset( self, value ):
185+
# Mandatory argument
186+
if value==None:
187+
raise AssertionError('Argument name is mantatory and can not be set to None')
188+
if not check_type(value,STRING):
189+
self._name = STRING(value)
190+
else:
191+
self._name = value
192+
return property(**locals())
193+
194+
@apply
195+
def definition():
196+
def fget( self ):
197+
return self._definition
198+
def fset( self, value ):
199+
# Mandatory argument
200+
if value==None:
201+
raise AssertionError('Argument definition is mantatory and can not be set to None')
202+
if not check_type(value,characterized_definition):
203+
self._definition = characterized_definition(value)
204+
else:
205+
self._definition = value
206+
return property(**locals())
207+
208+
####################
209+
# ENTITY context_dependent_shape_representation #
210+
####################
211+
class context_dependent_shape_representation(BaseEntityClass):
212+
'''Entity context_dependent_shape_representation definition.
213+
214+
:param representation_relation
215+
:type representation_relation:shape_representation_relationship
216+
'''
217+
def __init__( self , representation_relation, ):
218+
self.representation_relation = representation_relation
219+
220+
@apply
221+
def representation_relation():
222+
def fget( self ):
223+
return self._representation_relation
224+
def fset( self, value ):
225+
# Mandatory argument
226+
if value==None:
227+
raise AssertionError('Argument representation_relation is mantatory and can not be set to None')
228+
if not check_type(value,shape_representation_relationship):
229+
self._representation_relation = shape_representation_relationship(value)
230+
else:
231+
self._representation_relation = value
232+
return property(**locals())
233+
234+
####################
235+
# ENTITY definitional_representation_relationship #
236+
####################
237+
class definitional_representation_relationship(representation_relationship):
238+
'''Entity definitional_representation_relationship definition.
239+
'''
240+
def __init__( self , representation_relationship__name , representation_relationship__rep_1 , representation_relationship__rep_2 , ):
241+
representation_relationship.__init__(self , representation_relationship__name , representation_relationship__rep_1 , representation_relationship__rep_2 , )
242+
243+
####################
244+
# ENTITY component_2d_location #
245+
####################
246+
class component_2d_location(context_dependent_shape_representation,shape_representation_relationship,definitional_representation_relationship):
247+
'''Entity component_2d_location definition.
248+
249+
:param context_dependent_shape_representation_representation_relation
250+
:type context_dependent_shape_representation_representation_relation:component_2d_location
251+
'''
252+
def __init__( self , context_dependent_shape_representation__representation_relation , ):
253+
context_dependent_shape_representation.__init__(self , context_dependent_shape_representation__representation_relation , )
254+
shape_representation_relationship.__init__(self , )
255+
definitional_representation_relationship.__init__(self , )
256+
257+
@apply
258+
def context_dependent_shape_representation_representation_relation():
259+
def fget( self ):
260+
return EvalDerivedAttribute(self,'''SELF''')
261+
def fset( self, value ):
262+
# DERIVED argument
263+
raise AssertionError('Argument context_dependent_shape_representation_representation_relation is DERIVED. It is computed and can not be set to any value')
264+
return property(**locals())

0 commit comments

Comments
 (0)