public void graphCleared(String sourceId, long timeId) { internalGraph.clear(); structureChanged = true; }
/** * Clear the internal graph if {@link #useInternalGraph} is enable. * * This method is called in {@link #end()} to ensure the next generation * will start freshly anew. */ protected void clearKeptData() { if (useInternalGraph) internalGraph.clear(); } }
/** * Clear the internal graph if {@link #useInternalGraph} is enable. * * This method is called in {@link #end()} to ensure the next generation * will start freshly anew. */ protected void clearKeptData() { if (useInternalGraph) internalGraph.clear(); } }
public void graphCleared(String sourceId, long timeId) { internalGraph.clear(); structureChanged = true; }
public void clear() { elementLock.lock(); wrappedElement.clear(); elementLock.unlock(); }
public void clear() { elementLock.lock(); wrappedElement.clear(); elementLock.unlock(); }
public void graphCleared(String sourceId, long timeId) { if (sinkTime.isNewEvent(sourceId, timeId)) { sendGraphCleared(sourceId, timeId); passYourWay = true; try { g.clear(); } finally { passYourWay = false; } } }
public void graphCleared(String sourceId, long timeId) { if (sinkTime.isNewEvent(sourceId, timeId)) { sendGraphCleared(sourceId, timeId); passYourWay = true; try { g.clear(); } finally { passYourWay = false; } } }
/** * Enable or disable the use of an internal graph. If enable, nodes, edges * and their attributes are stored in an internal graph. * * This is useful if the generator needs to remember informations like node * id. * * @param on * true if the internal graph has to be enable. */ public void setUseInternalGraph(boolean on) { useInternalGraph = on; if (!on && internalGraph != null) { internalGraph.clear(); internalGraph = null; } if (on && internalGraph == null) { internalGraph = new AdjacencyListGraph(getClass().getName() + "-internal_graph"); internalGraph.setStrict(false); } }
/** * Enable or disable the use of an internal graph. If enable, nodes, edges * and their attributes are stored in an internal graph. * * This is useful if the generator needs to remember informations like node * id. * * @param on * true if the internal graph has to be enable. */ public void setUseInternalGraph(boolean on) { useInternalGraph = on; if (!on && internalGraph != null) { internalGraph.clear(); internalGraph = null; } if (on && internalGraph == null) { internalGraph = new AdjacencyListGraph(getClass().getName() + "-internal_graph"); internalGraph.setStrict(false); } }