ingenias.editor.CleanUnusedEntities Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sociaalmled Show documentation
Show all versions of sociaalmled Show documentation
A editor for modelling scenarios for PHAT simulator
package ingenias.editor;
import ingenias.editor.entities.Entity;
import ingenias.editor.persistence.PersistenceManager;
import ingenias.exception.NullEntity;
import ingenias.generator.browser.AttributedElement;
import ingenias.generator.browser.Browser;
import ingenias.generator.browser.BrowserImp;
import ingenias.generator.browser.Graph;
import ingenias.generator.browser.GraphAttribute;
import ingenias.generator.browser.GraphEntity;
import ingenias.generator.browser.GraphEntityImp;
import ingenias.generator.browser.GraphRelationship;
import ingenias.generator.browser.GraphRole;
import ingenias.generator.interpreter.SplitHandler;
import java.awt.Frame;
import java.io.File;
import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Properties;
import java.util.Vector;
public class CleanUnusedEntities {
private static boolean isUsedInSomeDiagram(GraphEntity original,Browser browser) throws IllegalAccessException, NullEntity{
Graph[] v=browser.getGraphs();
Hashtable checked=new Hashtable();
boolean used=false;
for (int l=0;l checked) throws IllegalAccessException, NullEntity{
boolean used=false;
GraphAttribute [] fs=tested.getAllAttrs();
for (int j=0;j