private Vector<Graph> getPDDiagramsForActor(GraphEntity actor) { Vector<Graph> patientGraphs = new Vector<Graph>(); Vector<GraphRelationship> rels = actor.getAllRelationships("ProfileOf"); for (GraphRelationship rel : rels) { GraphEntity target; try { target = Utils.getSourceEntity(actor, rel); if (target.getType().equals("ParkinsonsProfile")) { GraphAttribute diagNameAtt = target.getAttributeByName("ParkinsonSpecDiag"); if (diagNameAtt != null && diagNameAtt.getSimpleValue() != null && browser.getGraph(diagNameAtt.getSimpleValue()) != null) { patientGraphs.add(browser.getGraph(diagNameAtt.getSimpleValue())); } } } catch (NotFound e) { // TODO Auto-generated catch block e.printStackTrace(); } } return patientGraphs; }
Graph interactionSpec = browser.getGraph(interactionDiagName); if (interactionSpec != null && interactionSpec.getEntities().length > 0) { for (GraphEntity ge : Utils.getEntities(interactionSpec, "EventProcessor")) {
System.out.println("GENERATE ADL: " + humanId); System.out.println("ADL = " + adlDiagName); Graph adlSpec = browser.getGraph(adlDiagName); if (adlSpec != null && adlSpec.getEntities().length > 0) { System.out.println("ADL no empty!");