ExamplePlacementCost 2.0 KB

12345678910111213141516171819202122232425
  1. % This is an Example File for the Setup Data needed by the Placement Cost Metric.
  2. % This Example is to be specifically used with the Example Graphs underlay1.graphml and operatorgraph1.graphml
  3. % Lines that start with a percent sign as well as empty lines will be ignored by the parser.
  4. % File Endings like .txt are irrelevant for these files.
  5. % The lines with actual content have to follow these strict rules:
  6. % The first line must be the String "operatorIDs: ", followed by the IDs of the nodes of the Operator Graph this Metric is meant to be used with.
  7. % The second line must be the String "underlayIDs: ", followed by the IDs of the nodes of the Underlay Graph this Metric is meant to be used with.
  8. % All following Lines are the actual data in Matrix form, with the Rows being the Operator Nodes and the Columns being the Underlay Nodes. The Data Type is Double.
  9. % The Order of the Operator Node IDs and Underlay Node IDs are independent of the order they appear in the graphml files, but they dictate the order of the Data in the Matrix.
  10. % All individual Data points must be separated by Commas.
  11. % Node IDs and Device Types are case sensitive.
  12. % If this is to be used with more than one operator graph, make sure that the node IDs in the operator graphs are unique.
  13. % If a node with id "n1" exists in two operator graphs, they will both use the first line marked "n1" in the Cost Matrix.
  14. %In this particular example the value of 4.2 in row 3, column 4 means that the cost of maping the operator node with ID n2 onto the Underlay Node with ID n3 is 4.2
  15. operatorIDs: n0, n1, n2, n3
  16. underlayIDs: n0, n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11, n12, n13, n14, n15, n16
  17. 0, 2.5, 1, 3, 1.1, 2.71828, 0.2, 0.5, 0, 0, 3.14159, 1.45, 0.0, 0.0, 0.0, 0.0, 1.0
  18. 1.0, 0.0, 2.0, 1.6, 1.2, 2.7, 3.0, 0.0, 0.0, 1.1, 4.2, 0.4, 1.0, 1.2, 5.1, 4.2, 0.0
  19. 1.3, 3.7, 0.0, 4.2, 0.0, 8.0, 0.8, 5.0, 1.0, 0.0, 2.3, 0.1, 1.0, 1.2, 5.1, 4.2, 0.0
  20. 2.8, 0.4, 1.9, 9.6, 0.0, 0.0, 0.6, 0.9, 1.9, 9.5, 0.1, 0.0, 1.0, 1.2, 5.1, 4.2, 0.0