Skip to content
Snippets Groups Projects
Commit 8a7ec99b authored by Chrissi's avatar Chrissi
Browse files

fix some namings in sync

parent 43aec95d
Branches
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ object CompleteTTCProcess extends App { ...@@ -39,6 +39,7 @@ object CompleteTTCProcess extends App {
ctts = new CreateTruthTableSync() ctts = new CreateTruthTableSync()
if (sync) { if (sync) {
SynchronizationCompartment.changeConstructionRule(TTandBDTandBDDSyncConstruction) SynchronizationCompartment.changeConstructionRule(TTandBDTandBDDSyncConstruction)
SynchronizationCompartment.addSynchronizationRule(new SyncHeadNamesSync)
SynchronizationCompartment.addSynchronizationRule(new SyncPortNamesSync) SynchronizationCompartment.addSynchronizationRule(new SyncPortNamesSync)
SynchronizationCompartment.addSynchronizationRule(new SyncChangesTruthTableSync) SynchronizationCompartment.addSynchronizationRule(new SyncChangesTruthTableSync)
SynchronizationCompartment.addSynchronizationRule(new SyncChangesCellSync) SynchronizationCompartment.addSynchronizationRule(new SyncChangesCellSync)
......
...@@ -519,22 +519,6 @@ class SyncChangesTruthTableSync() extends ISyncCompartment { ...@@ -519,22 +519,6 @@ class SyncChangesTruthTableSync() extends ISyncCompartment {
} }
} }
}*/ }*/
/**
* Change the names of TruthTable and BDDs.
*/
def changeName(): Unit = {
if (!doSync) {
doSync = true;
var name: String = +this getName ();
getSyncer().foreach { a =>
if (!a.equals(this)) {
(+a).setName(name);
}
}
doSync = false;
}
}
} }
} }
\ No newline at end of file
...@@ -40,7 +40,7 @@ class SyncHeadNamesSync() extends ISyncCompartment { ...@@ -40,7 +40,7 @@ class SyncHeadNamesSync() extends ISyncCompartment {
def getOuterCompartment(): ISyncCompartment = SyncHeadNamesSync.this def getOuterCompartment(): ISyncCompartment = SyncHeadNamesSync.this
def changeName(): Unit = { def syncSetName(): Unit = {
if (!doSync) { if (!doSync) {
doSync = true; doSync = true;
var name: String = +this getName(); var name: String = +this getName();
......
...@@ -40,7 +40,7 @@ class SyncInputPortNamesSync() extends ISyncCompartment { ...@@ -40,7 +40,7 @@ class SyncInputPortNamesSync() extends ISyncCompartment {
def getOuterCompartment(): ISyncCompartment = SyncInputPortNamesSync.this def getOuterCompartment(): ISyncCompartment = SyncInputPortNamesSync.this
def changeName(): Unit = { def syncSetName(): Unit = {
if (!doSync) { if (!doSync) {
doSync = true; doSync = true;
var name: String = +this getName(); var name: String = +this getName();
......
...@@ -40,7 +40,7 @@ class SyncOutputPortNamesSync() extends ISyncCompartment { ...@@ -40,7 +40,7 @@ class SyncOutputPortNamesSync() extends ISyncCompartment {
def getOuterCompartment(): ISyncCompartment = SyncOutputPortNamesSync.this def getOuterCompartment(): ISyncCompartment = SyncOutputPortNamesSync.this
def changeName(): Unit = { def syncSetName(): Unit = {
if (!doSync) { if (!doSync) {
doSync = true; doSync = true;
var name: String = +this getName(); var name: String = +this getName();
......
...@@ -40,7 +40,7 @@ class SyncPortNamesSync extends ISyncCompartment { ...@@ -40,7 +40,7 @@ class SyncPortNamesSync extends ISyncCompartment {
def getOuterCompartment(): ISyncCompartment = SyncPortNamesSync.this def getOuterCompartment(): ISyncCompartment = SyncPortNamesSync.this
def changeName(): Unit = { def syncSetName(): Unit = {
if (!doSync) { if (!doSync) {
doSync = true; doSync = true;
var name: String = +this getName(); var name: String = +this getName();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment