public GraphEntity nextTask(GraphEntity task, Graph std) { return Utils.getTargetEntity(task, "NextSeqTask", std.getRelationships()); }
GraphRelationship[] grels=g.getRelationships();
for (GraphRelationship gr : diagram.getRelationships()) { if (gr.getType().equals(PROGRAM_TRANSITION_REL)) { processProgTransition(gr, repProgBehav);
private void generateCameraPositionToBody(Graph simDiag, Repeat simInitRep) throws NullEntity, NotFound { for (GraphEntity hi : Utils.getEntities(simDiag, "CameraInit")) { GraphEntity human = Utils.getTargetEntity(hi, "CameraFaceToHuman", simDiag.getRelationships()); if (human != null) { String humanId = human.getID();
for (GraphRelationship gr : diagran.getRelationships()) { Collection<GraphEntity> conds = new ArrayList<>(); GraphEntity source = null;
setDims.add(new Var("depth", depth)); GraphEntity loc = Utils.getTargetEntity(smartphone, "InitialDeviceLocation", simDiags.getRelationships()); if (loc != null) { if (loc.getType().equals("PartOfBody")) { GraphEntity emu = Utils.getTargetEntity(smartphone, "EmulatorPeer", simDiags.getRelationships()); if (emu != null) { GraphAttribute avdName = emu.getAttributeByName("AvdName"); GraphEntity runApp = Utils.getTargetEntity(emu, "RunAndroidApp", simDiags.getRelationships()); if (runApp != null) { GraphAttribute packageName = runApp.getAttributeByName("PackageField");
private void generatePeopleInitialization(Graph simDiag, Repeat simInitRep) throws NullEntity, NotFound { for (GraphEntity hi : Utils.getEntities(simDiag, HUMAN_INITIALIZATION_OBJ)) { GraphEntity human = Utils.getTargetEntity(hi, "RelatedHuman", simDiag.getRelationships()); if (human != null) { String humanId = human.getID(); simInitRep.add(agentRep); agentRep.add(new Var("agentname", humanId)); GraphEntity activity = Utils.getTargetEntity(hi, "InitialActivity", simDiag.getRelationships()); if (activity != null) { Repeat adlRep = new Repeat("setActivity");