Skip to content
Snippets Groups Projects
Commit a780b9f3 authored by s2010720's avatar s2010720
Browse files

Add stub for main

parent bfaea5d9
No related branches found
No related tags found
No related merge requests found
package Main;
import java.util.Map;
import FaultTree.*;
import Heuristics.Heuristic;
public class Main {
public static void main(String[] args) throws Exception {
String heuristicArg = args[0];
Heuristic heuristic;
switch (heuristicArg) {
case "h1":
case "depth-first":
heuristic = null; // TODO
break;
// TODO
default:
throw new Exception("You have to specify a valid heuristic.");
}
FaultTree tree = null; // TODO
Map<BasicEvent, Integer> ordering = heuristic.getOrder(tree);
// TODO: call transformation
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment