diff options
author | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2017-08-02 20:16:20 +0200 |
---|---|---|
committer | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2017-08-02 20:16:20 +0200 |
commit | 942dcb2f66ac2317e17bea84b13fabce805e0b8e (patch) | |
tree | c426bd2e48db9cc526af854e9308686cd2490c18 /Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend | |
parent | Removed dependency (diff) | |
download | VIATRA-Generator-942dcb2f66ac2317e17bea84b13fabce805e0b8e.tar.gz VIATRA-Generator-942dcb2f66ac2317e17bea84b13fabce805e0b8e.tar.zst VIATRA-Generator-942dcb2f66ac2317e17bea84b13fabce805e0b8e.zip |
Added methods to decide which attribure or enum type is mapped ot the
logic problem.
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend index b78ad89f..74f82a13 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend +++ b/Framework/hu.bme.mit.inf.dslreasoner.ecore2logic/src/hu/bme/mit/inf/dslreasoner/ecore2logic/AttributeMapper.xtend | |||
@@ -18,6 +18,7 @@ interface EAttributeMapper { | |||
18 | def Term IsAttributeValue(Ecore2Logic_Trace trace, TermDescription object, TermDescription value, EAttribute attribute) | 18 | def Term IsAttributeValue(Ecore2Logic_Trace trace, TermDescription object, TermDescription value, EAttribute attribute) |
19 | def RelationDeclaration relationOfAttribute(Ecore2Logic_Trace trace, EAttribute attribute) | 19 | def RelationDeclaration relationOfAttribute(Ecore2Logic_Trace trace, EAttribute attribute) |
20 | def TypeDescriptor TypeOfRange(Ecore2Logic_Trace trace, EAttribute attribute) | 20 | def TypeDescriptor TypeOfRange(Ecore2Logic_Trace trace, EAttribute attribute) |
21 | def Iterable<EAttribute> allAttributesInScope(Ecore2Logic_Trace trace) | ||
21 | } | 22 | } |
22 | 23 | ||
23 | class EAttributeMapper_RelationsOverTypes_Trace implements Trace<EAttributeMapper_RelationsOverTypes>{ | 24 | class EAttributeMapper_RelationsOverTypes_Trace implements Trace<EAttributeMapper_RelationsOverTypes>{ |
@@ -116,4 +117,9 @@ class EAttributeMapper_RelationsOverTypes implements EAttributeMapper { | |||
116 | override relationOfAttribute(Ecore2Logic_Trace trace, EAttribute attribute) { | 117 | override relationOfAttribute(Ecore2Logic_Trace trace, EAttribute attribute) { |
117 | trace.attributeMapperTrace.asTrace.indicators.get(attribute) | 118 | trace.attributeMapperTrace.asTrace.indicators.get(attribute) |
118 | } | 119 | } |
120 | |||
121 | override allAttributesInScope(Ecore2Logic_Trace trace) { | ||
122 | trace.attributeMapperTrace.asTrace.indicators.keySet | ||
123 | } | ||
124 | |||
119 | } \ No newline at end of file | 125 | } \ No newline at end of file |