public static ArrayList<ModelElement> createSampleTestcase() {
ArrayList<ModelElement> allModelElements = new ArrayList<ModelElement>();
// create nodes
NodeModel[] n = new NodeModel[16];
n[0] = new NodeModel(3.0, 0.0);
n[1] = new NodeModel(1.0, 1.0);
n[2] = new NodeModel(2.0, 1.0);
n[3] = new NodeModel(3.0, 1.0);
n[4] = new NodeModel(4.0, 1.0);
n[5] = new NodeModel(4.0, 2.0);
n[6] = new NodeModel(5.0, 2.0);
n[7] = new NodeModel(1.0, 3.0);
n[8] = new NodeModel(2.0, 3.0);
n[9] = new NodeModel(3.0, 3.0);
n[10] = new NodeModel(4.0, 3.0);
n[11] = new NodeModel(2.0, 4.0);
n[12] = new NodeModel(3.0, 4.0);
n[13] = new NodeModel(4.0, 4.0);
n[14] = new NodeModel(5.0, 4.0);
n[15] = new NodeModel(3.0, 5.0);
// create ways
WayModel[] w = new WayModel[25];
for (int i = 0; i < w.length; i++) {
w[i] = new WayModel("Road " + i);
}
// create traffic lights
TrafficLightModel[] tl = new TrafficLightModel[2];
NodeModel[] tln = new NodeModel[2];
tln[0] = new NodeModel(2.0, 2.0);
tln[1] = new NodeModel(3.0, 2.0);
tl[0] = new TrafficLightModel(tln[0]);
tl[1] = new TrafficLightModel(tln[1]);
// create street network
EdgeModel[] e = new EdgeModel[50];