Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoracio Hoyos2015-04-30 11:10:25 +0000
committerEd Willink2015-04-30 19:47:14 +0000
commit4efe3535b5e65ae33fc1bb82392e72e49b43d39b (patch)
treeb9391eb141b8f94673b54861b4f0a0c1396442d8
parent0781c03415ec0f318fc0fb0ab48932782221da53 (diff)
downloadorg.eclipse.qvtd-4efe3535b5e65ae33fc1bb82392e72e49b43d39b.tar.gz
org.eclipse.qvtd-4efe3535b5e65ae33fc1bb82392e72e49b43d39b.tar.xz
org.eclipse.qvtd-4efe3535b5e65ae33fc1bb82392e72e49b43d39b.zip
[unrelated] executeQvtpToQvts now respects the nestedSchedule flag.
-rw-r--r--plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java19
1 files changed, 12 insertions, 7 deletions
diff --git a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
index f4a8dbc8b..cee23d04b 100644
--- a/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
+++ b/plugins/org.eclipse.qvtd.compiler/src/org/eclipse/qvtd/compiler/internal/etl/MtcBroker.java
@@ -387,7 +387,6 @@ public class MtcBroker {
if (s != null) {
ScheduleToDependencyGraphVisitor visitor = new ScheduleToDependencyGraphVisitor(builder);
// GEt the source/middle/target info from the configuration
- // FIXME why is the configuration not loaded with the generated classes?
for (EObject eContent : configModel.getResource().getContents()) {
if (eContent instanceof Configuration) {
Configuration c = (Configuration) eContent;
@@ -400,11 +399,6 @@ public class MtcBroker {
}
s.accept(visitor);
// Save/print the builder
- //FileOutputStream fos = new FileOutputStream(file);
- //OutputStreamWriter osw = new OutputStreamWriter(fos);
- //BufferedWriter writer = new BufferedWriter(osw);
- //try (Writer writer = new BufferedWriter(new OutputStreamWriter(
- // new FileOutputStream(file), "utf-8"))) {
try (Writer writer = new BufferedWriter(new OutputStreamWriter(
URIConverter.INSTANCE.createOutputStream(this.dependencyGraphUri), "utf-8"))) {
writer.write(builder.toString());
@@ -477,7 +471,10 @@ public class MtcBroker {
} finally {
if ((pModel != null) && (sModel != null))
sModel.setStoredOnDisposal(!dryRun);
- qvtpNestingScheduling(pModel, sModel);
+ if (nestedSchedule)
+ qvtpNestingScheduling(pModel, sModel);
+ else
+ qvtpFlatScheduling(pModel, sModel);
}
}
@@ -1027,6 +1024,14 @@ public class MtcBroker {
this.createGraphml = createGraphml;
}
+ /**
+ * Sets the nested schedule option.
+ *
+ * By default, the scheduler creates a nested schedule. If set to False, the
+ * scheduler generates a flat schedule.
+ *
+ * @param nestedSchedule the new nested schedule
+ */
public void setNestedSchedule(boolean nestedSchedule) {
this.nestedSchedule = nestedSchedule;
}

Back to the top