diff options
Diffstat (limited to 'Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage')
1 files changed, 25 insertions, 1 deletions
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/visualisation/PartialInterpretation2Gml.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/visualisation/PartialInterpretation2Gml.xtend index 190b5c94..1e9cdcbe 100644 --- a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/visualisation/PartialInterpretation2Gml.xtend +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage/src/hu/bme/mit/inf/dslreasoner/viatrasolver/partialinterpretationlanguage/visualisation/PartialInterpretation2Gml.xtend | |||
@@ -11,6 +11,9 @@ import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.par | |||
11 | import java.util.HashMap | 11 | import java.util.HashMap |
12 | import java.util.Map | 12 | import java.util.Map |
13 | import java.util.Set | 13 | import java.util.Set |
14 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.IntegerElement | ||
15 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.RealElement | ||
16 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.StringElement | ||
14 | 17 | ||
15 | class PartialInterpretation2Gml { | 18 | class PartialInterpretation2Gml { |
16 | def private getElements(PartialInterpretation model) { | 19 | def private getElements(PartialInterpretation model) { |
@@ -106,10 +109,31 @@ class PartialInterpretation2Gml { | |||
106 | ''' | 109 | ''' |
107 | } | 110 | } |
108 | 111 | ||
109 | def protected transormTitle(DefinedElement object) { | 112 | def protected dispatch transormTitle(DefinedElement object) { |
110 | if(object.name!= null)object.name.replace("\"", "") | 113 | if(object.name!= null)object.name.replace("\"", "") |
111 | else "null" | 114 | else "null" |
112 | } | 115 | } |
116 | def protected dispatch transormTitle(IntegerElement object) { | ||
117 | if(object.valueSet) { | ||
118 | object.value.toString | ||
119 | } else { | ||
120 | "?" | ||
121 | } | ||
122 | } | ||
123 | def protected dispatch transormTitle(RealElement object) { | ||
124 | if(object.valueSet) { | ||
125 | object.value.toString | ||
126 | } else { | ||
127 | "?" | ||
128 | } | ||
129 | } | ||
130 | def protected dispatch transormTitle(StringElement object) { | ||
131 | if(object.valueSet) { | ||
132 | object.value.toString | ||
133 | } else { | ||
134 | "?" | ||
135 | } | ||
136 | } | ||
113 | 137 | ||
114 | def protected transformLink( | 138 | def protected transformLink( |
115 | PartialRelationInterpretation reference, | 139 | PartialRelationInterpretation reference, |