diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicProblemBuilder.xtend | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicProblemBuilder.xtend b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicProblemBuilder.xtend index 6fa1fcfd..b3b7da5a 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicProblemBuilder.xtend +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/src/hu/bme/mit/inf/dslreasoner/logic/model/builder/LogicProblemBuilder.xtend | |||
@@ -478,7 +478,9 @@ public class LogicProblemBuilder{ | |||
478 | 478 | ||
479 | def public asTerm(boolean value) { createBoolLiteral => [x|x.value = value] } | 479 | def public asTerm(boolean value) { createBoolLiteral => [x|x.value = value] } |
480 | def public asTerm(int value) { createIntLiteral => [x|x.value = value] } | 480 | def public asTerm(int value) { createIntLiteral => [x|x.value = value] } |
481 | def public asTerm(double value) { createRealLiteral => [x|x.value = BigDecimal.valueOf(value)] } | 481 | def public asTerm(double value) { BigDecimal.valueOf(value).asTerm } |
482 | def public asTerm(float value) { BigDecimal.valueOf(value).asTerm } | ||
483 | def public asTerm(BigDecimal value) { createRealLiteral => [x|x.value = value] } | ||
482 | def public asTerm(String value) { createStringLiteral => [x|x.value = value]} | 484 | def public asTerm(String value) { createStringLiteral => [x|x.value = value]} |
483 | def public InstanceOf(TermDescription term, TypeDescriptor type) { | 485 | def public InstanceOf(TermDescription term, TypeDescriptor type) { |
484 | createInstanceOf => [ | 486 | createInstanceOf => [ |