forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_array.py
More file actions
43 lines (36 loc) · 1.08 KB
/
Copy pathtest_array.py
File metadata and controls
43 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# This file was generated by exp2python. You probably don't want to edit
# it since your modifications will be lost if exp2python is used to
# regenerate it.
import sys
from SCL.SCLBase import *
from SCL.SimpleDataTypes import *
from SCL.ConstructedDataTypes import *
from SCL.AggregationDataTypes import *
from SCL.TypeChecker import check_type
from SCL.Builtin import *
from SCL.Rules import *
schema_name = 'test_array'
schema_scope = sys.modules[__name__]
####################
# ENTITY point #
####################
class point(BaseEntityClass):
'''Entity point definition.
:param coords
:type coords:ARRAY(1,3,'REAL', scope = schema_scope)
'''
def __init__( self , coords, ):
self.coords = coords
@apply
def coords():
def fget( self ):
return self._coords
def fset( self, value ):
# Mandatory argument
if value==None:
raise AssertionError('Argument coords is mantatory and can not be set to None')
if not check_type(value,ARRAY(1,3,'REAL', scope = schema_scope)):
self._coords = ARRAY(value)
else:
self._coords = value
return property(**locals())