ColoredStationAnimation[] targetStations = { stations[2], stations[0], stations[1], stations[1], stations[1] };
for (int i = 0; i < links.length; i++) {
addEdge(links[i], sourceStations[i], targetStations[i]);
}
for (int i = 0; i < 10; i++) {
addJob(new JobAnimation(0.075, new JobPath[] { new RandomPath(this, stations[i % stations.length]) }, new Rectangle(6, 6),
new SampleIconsToolkit()), stations[i % stations.length]);
}
controller = new Animator(30, this);
}