/** Return all WasInformedBy edges with activity p as a cause. */ public Collection<WasInformedBy> getWasInformedByWithCause(Activity a) { return activityCauseWasInformedByMap.get(a.getId()); }
/** Return all WasAssociatedWith edges with activity p as an effect. */ public Collection<WasAssociatedWith> getWasAssociatedWith(Activity p) { return activityWasAssociatedWithMap.get(p.getId()); }
/** Return all used edges with activity p as an effect. */ public Collection<Used> getUsed(Activity p) { return activityUsedMap.get(p.getId()); }
public String activityLabel(Activity p) { if (displayActivityValue) { return convertActivityName(""+pf.getLabel(p)); } else { return localnameToString(p.getId()); } } public String processColor(Activity p) {
public String activityLabel(Activity p) { if (displayActivityValue) { return convertActivityName(""+pf.getLabel(p)); } else { return localnameToString(p.getId()); } } public String processColor(Activity p) {
public Activity newActivity(Activity a) { Activity res = newActivity(a.getId()); res.getType().addAll(a.getType()); res.getLabel().addAll(a.getLabel()); res.getLocation().addAll(a.getLocation()); res.setStartTime(a.getStartTime()); res.setEndTime(a.getEndTime()); return res; }
public Activity doAction(Activity e) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(e,attrs); convertLabelAttributes(e,attrs); convertLocationAttributes(e,attrs); convertAttributes(e,attrs); return c.newActivity(e.getId(), e.getStartTime(), e.getEndTime(), attrs); }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public WasGeneratedBy newWasGeneratedBy(QualifiedName id, Entity a, String role, Activity p) { WasGeneratedBy res=newWasGeneratedBy(id, a.getId(), p.getId()); if (role!=null) addRole(res, newRole(role,getName().XSD_STRING)); return res; }
public Activity newActivity(Activity a) { Activity res = newActivity(a.getId()); res.getType().addAll(a.getType()); res.getLabel().addAll(a.getLabel()); res.getLocation().addAll(a.getLocation()); res.setStartTime(a.getStartTime()); res.setEndTime(a.getEndTime()); return res; }
public Activity doAction(Activity e) { List<Attribute> attrs=new LinkedList<Attribute>(); convertTypeAttributes(e,attrs); convertLabelAttributes(e,attrs); convertLocationAttributes(e,attrs); convertAttributes(e,attrs); return c.newActivity(e.getId(), e.getStartTime(), e.getEndTime(), attrs); }
@Override public void doAction(Activity a) { register(a.getId()); registerLocation(a.getLocation()); registerType(a.getType()); registerOther(a.getOther()); }
@Override public void doAction(Activity a) { register(a.getId()); registerLocation(a.getLocation()); registerType(a.getType()); registerOther(a.getOther()); }
public Document makeDoc700() { Agent ag1=pFactory.newAgent(q("ag1")); Activity a1=pFactory.newActivity(q("a1")); WasAssociatedWith waw1=pFactory.newWasAssociatedWith(null,a1.getId(),ag1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(waw1); doc.getStatementOrBundle().add(waw1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc400() { Entity e1=pFactory.newEntity(q("e1")); Activity a1=pFactory.newActivity(q("a1")); Used u1=pFactory.newUsed(a1.getId(),e1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(u1); doc.getStatementOrBundle().add(u1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc1100() { Entity e1=pFactory.newEntity(q("e1")); Activity a1=pFactory.newActivity(q("a1")); WasInvalidatedBy wgb1=pFactory.newWasInvalidatedBy(null,e1.getId(),a1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wgb1); doc.getStatementOrBundle().add(wgb1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc900() { Agent a1=pFactory.newAgent(q("a1")); Activity a2=pFactory.newActivity(q("a2")); WasInformedBy wib1=pFactory.newWasInformedBy(null,a2.getId(),a1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wib1); doc.getStatementOrBundle().add(wib1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }
public Document makeDoc500() { Entity e1=pFactory.newEntity(q("e1")); Activity a1=pFactory.newActivity(q("a1")); WasGeneratedBy wgb1=pFactory.newWasGeneratedBy(null,e1.getId(),a1.getId()); Document doc=pFactory.newDocument(); doc.getStatementOrBundle().add(wgb1); doc.getStatementOrBundle().add(wgb1); Namespace nss=Namespace.gatherNamespaces(doc); doc.setNamespace(nss); return doc; }