Skip to content

Commit

Permalink
Arreglado propiedades compatibles con el modelo clafer, arreglado un …
Browse files Browse the repository at this point in the history
…error de FeatureIDE (ahora muestra si una feature es abstract)
  • Loading branch information
Enriquelp committed Feb 5, 2024
1 parent 353dd47 commit 98474e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rhea-backend/rhea/fm_tools/fm_tool_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ def get_tools_info() -> list[FMToolInfo]:
lc.LCPseudoComplexConstraint,
lc.LCStrictComplexConstraint]))
tools.append(FMToolInfo('Clafer', 'txt', [lc.LCFeature,
lc.LCNonUniqueFeature,
lc.LCAbstractFeature,
lc.LCOptionalFeature,
lc.LCMandatoryFeature,
lc.LCOrGroupFeature,
lc.LCXorGroupFeature,
lc.LCMutexGroupFeature,
lc.LCCardinalityGroupFeature,
lc.LCConstraint,
lc.LCRequiresConstraint,
lc.LCExcludesConstraint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
__all__ = ['GlencoeReader',
'JSONReader',
'JSONWriter',
'FeatureIDEWriter'
'FeatureIDEWriter',
'ClaferWriter']
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def _create_tree(parentElement: Element, relations: list[Relation]):
def _get_attributes(feature: Feature):
atributes = {}
if feature.is_mandatory(): atributes['mandatory'] ='true'
if feature.is_abstract: atributes['abstract'] ='true'
atributes['name'] = feature.name
return atributes

Expand Down

0 comments on commit 98474e0

Please sign in to comment.