public void stepBegins(String sourceId, long timeId, double step) { wrappedElement.stepBegins(sourceId, timeId, step); }
public void stepBegins(String sourceId, long timeId, double step) { wrappedElement.stepBegins(sourceId, timeId, step); }
public void stepBegins(double time) { elementLock.lock(); wrappedElement.stepBegins(time); elementLock.unlock(); }
public void stepBegins(double time) { elementLock.lock(); wrappedElement.stepBegins(time); elementLock.unlock(); }
public void stepBegins(String sourceId, long timeId, double step) { if (sinkTime.isNewEvent(sourceId, timeId)) { passYourWay = true; try { g.stepBegins(step); } finally { passYourWay = false; } sendStepBegins(sourceId, timeId, step); } }
public void stepBegins(String sourceId, long timeId, double step) { if (sinkTime.isNewEvent(sourceId, timeId)) { passYourWay = true; try { g.stepBegins(step); } finally { passYourWay = false; } sendStepBegins(sourceId, timeId, step); } }
public static void main(String... strings) throws Exception { Graph g = new AdjacencyListGraph("g"); Timeline timeline = new Timeline(); timeline.addSink(new VerboseSink()); timeline.begin(g); g.stepBegins(0.0); g.addNode("A"); g.addNode("B"); g.stepBegins(1.0); g.addNode("C"); timeline.end(); System.out.printf("############\n"); System.out.printf("# Play :\n"); timeline.play(); System.out.printf("############\n"); System.out.printf("# Playback :\n"); timeline.playback(); System.out.printf("############\n"); System.out.printf("# Sequence :\n"); int i = 0; for (Graph it : timeline) { System.out.printf(" Graph#%d %s\n", i, toString(it)); } System.out.printf("############\n"); }
public static void main(String... args) { GraphSpells graphSpells = new GraphSpells(); Graph g = new AdjacencyListGraph("g"); g.addSink(graphSpells); g.addNode("A"); g.addNode("B"); g.addNode("C"); g.stepBegins(1); g.getNode("A").setAttribute("test1", 100); g.addEdge("AB", "A", "B"); g.addEdge("AC", "A", "C"); g.stepBegins(2); g.addEdge("CB", "C", "B"); g.removeNode("A"); g.stepBegins(3); g.addNode("A"); g.addEdge("AB", "A", "B"); g.stepBegins(4); g.removeNode("C"); g.stepBegins(5); System.out.println(graphSpells); } }
public static void main(String... strings) throws Exception { Graph g = new AdjacencyListGraph("g"); Timeline timeline = new Timeline(); timeline.addSink(new VerboseSink()); timeline.begin(g); g.stepBegins(0.0); g.addNode("A"); g.addNode("B"); g.stepBegins(1.0); g.addNode("C"); timeline.end(); System.out.printf("############\n"); System.out.printf("# Play :\n"); timeline.play(); System.out.printf("############\n"); System.out.printf("# Playback :\n"); timeline.playback(); System.out.printf("############\n"); System.out.printf("# Sequence :\n"); int i = 0; for (Graph it : timeline) { System.out.printf(" Graph#%d %s\n", i, toString(it)); } System.out.printf("############\n"); }
public static void main(String... args) { GraphSpells graphSpells = new GraphSpells(); Graph g = new AdjacencyListGraph("g"); g.addSink(graphSpells); g.addNode("A"); g.addNode("B"); g.addNode("C"); g.stepBegins(1); g.getNode("A").setAttribute("test1", 100); g.addEdge("AB", "A", "B"); g.addEdge("AC", "A", "C"); g.stepBegins(2); g.addEdge("CB", "C", "B"); g.removeNode("A"); g.stepBegins(3); g.addNode("A"); g.addEdge("AB", "A", "B"); g.stepBegins(4); g.removeNode("C"); g.stepBegins(5); System.out.println(graphSpells); } }