-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configure fixedOrder globally instead for every spawner (#350)
* feat: configure fixedOrder globally instead for every spawner * Update fed/mosaic-mapping/src/main/java/org/eclipse/mosaic/fed/mapping/ambassador/SpawningFramework.java * fix: use fixedOrder in default case * fix: use fixedOrder per default changes test result * feat: FixedOrder does not include any randomness anymore * initial selection chooses item with highest weight. for two or more items with equal weights, the first found item is returned. * feat: use stochastic mapping order by default instead of fixed order * fix: fixedOrder property does not exist anymore in MatrixMapper * fix: apply changed default value of fixedOrder property * fix: fix tests after change of default behavior (fixedOrder = false) * fix: set fixedOrder for old behavior for tests
- Loading branch information
Showing
19 changed files
with
132 additions
and
146 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
bundle/src/assembly/resources/scenarios/Barnim/mapping/mapping_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"config": { | ||
"fixedOrder": true | ||
}, | ||
"prototypes": [ | ||
{ | ||
"name": "Car", | ||
|
3 changes: 3 additions & 0 deletions
3
bundle/src/assembly/resources/scenarios/HelloWorld/mapping/mapping_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"config": { | ||
"fixedOrder": true | ||
}, | ||
"prototypes": [ | ||
{ | ||
"name": "Car", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.