🌳 Simulation of a spanning tree protocol
java -jar target/treespanner.jar arg0 arg1
Arguments:
- arg0: File path for the graph
- arg1: Minimum PDUs: Amount of minimum message count every node should reach
Example:
java -jar target/treespanner.jar Example.json 10
- Default: file should have no ending or end with
.txtor.custom - Json: file should end with
.json
in Treespanner.properties:
MAX_ITEMS: Maximum amount of lines in the input fileMAX_IDENT: Maxmimum length for identifiers (graph and node names)MAX_COST: Value range of the edge weights (costs): 0 ...MAX_COSTMAX_NODE_ID: Value range of the node weights (Node ID): 1 ...MAX_NODE_ID