diff options
author | 2019-08-14 18:26:33 +0200 | |
---|---|---|
committer | 2019-08-14 18:26:33 +0200 | |
commit | fc84d3fe670331bc89fb1e4c44104bc1fc811438 (patch) | |
tree | 466da8333151c51d2e17075600f9452ed35835da /Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend | |
parent | Be more lenient with rounding IP solver results (diff) | |
download | VIATRA-Generator-fc84d3fe670331bc89fb1e4c44104bc1fc811438.tar.gz VIATRA-Generator-fc84d3fe670331bc89fb1e4c44104bc1fc811438.tar.zst VIATRA-Generator-fc84d3fe670331bc89fb1e4c44104bc1fc811438.zip |
Measurements WIP
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend index e4c758f0..503c06ea 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/src/hu/bme/mit/inf/dslreasoner/domains/cps/dse/RuleBasedCpsSolver.xtend | |||
@@ -35,18 +35,18 @@ class RuleBasedCpsSolver { | |||
35 | val dse = new DesignSpaceExplorer | 35 | val dse = new DesignSpaceExplorer |
36 | dse.addMetaModelPackage(CpsPackage.eINSTANCE) | 36 | dse.addMetaModelPackage(CpsPackage.eINSTANCE) |
37 | dse.initialModel = problem.eResource.resourceSet | 37 | dse.initialModel = problem.eResource.resourceSet |
38 | dse.addTransformationRule(createRule(RequirementNotSatisfied.instance).action [ | 38 | dse.addTransformationRule(createRule.precondition(RequirementNotSatisfied.instance).action [ |
39 | val app = createApplicationInstance | 39 | val app = createApplicationInstance |
40 | req.type.instances += app | 40 | req.type.instances += app |
41 | req.instances += app | 41 | req.instances += app |
42 | ].build) | 42 | ].build) |
43 | dse.addTransformationRule(createRule(Allocate.instance).action [ | 43 | dse.addTransformationRule(createRule.precondition(Allocate.instance).action [ |
44 | app.allocatedTo = host | 44 | app.allocatedTo = host |
45 | ].build) | 45 | ].build) |
46 | // dse.addTransformationRule(createRule(UnallocateAppInstance.instance).action [ | 46 | // dse.addTransformationRule(createRule(UnallocateAppInstance.instance).action [ |
47 | // app.allocatedTo = null | 47 | // app.allocatedTo = null |
48 | // ].build) | 48 | // ].build) |
49 | dse.addTransformationRule(createRule(CreateHostInstance.instance).action [ | 49 | dse.addTransformationRule(createRule.precondition(CreateHostInstance.instance).action [ |
50 | hostType.instances += createHostInstance | 50 | hostType.instances += createHostInstance |
51 | ].build) | 51 | ].build) |
52 | // dse.addTransformationRule(createRule(RemoveHostInstance.instance).action [ | 52 | // dse.addTransformationRule(createRule(RemoveHostInstance.instance).action [ |