# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011-2013 EDF R&D
+# Copyright (C) 2011-2020 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# __MEM__: Note that this module does not depend on the SPADDER
# component on purpose (we could have use a derived structure of
-# SPADDER_ORB.MeshJobParameter). This choice is made to ease the test
+# SPADDER_ORB.MeshJobFile). This choice is made to ease the test
# and development of the gui part of the plugin. If this data
# structure becomes too important, we could make another arrangement
-# and use directly a SPADDER_ORB.MeshJobParameter.
+# and use directly a SPADDER_ORB.MeshJobFile.
class InputData(DataModeler):
MESHTYPES=Enumerate([
'STEELBAR'
])
+ maListe=MESHTYPES.listvalues()
+
def __init__(self):
DataModeler.__init__(self)
self.addAttribute(
)
self.addAttribute(
name = "meshName",
- type = TypeString,
- range = None
+ a_type = TypeString,
+ a_range = None
)
self.addAttribute(
name = "meshType",
- type = TypeInteger,
- range = self.MESHTYPES.listvalues()
+ a_type = TypeInteger,
+ a_range = [0,1]
)
self.addAttribute(
name = "groupName",
- type = TypeString,
- range = None
+ a_type = TypeString,
+ a_range = None
)
#