/** * Get the value fetcher. * @return The value fetcher. */ public IValueFetcher getFetcher() { return new OAVBDIFetcher(state, initcapa!=null ? findSubcapability(initcapa) : ragent); }
/** * Get the service prefix. * @return The prefix for required services. */ public String getServicePrefix() { return findServicePrefix(initcapa!=null ? findSubcapability(initcapa) : ragent); }
/** * Get the internal access. * @return The internal access. */ public IInternalAccess getInternalAccess(Object scope) { return new CapabilityFlyweight(state, scope!=null ? scope : initcapa!=null ? findSubcapability(initcapa) : ragent); }
/** * The prefix is the name of the capability starting from the agent. */ public String findServicePrefix(Object scope) { List path = new ArrayList(); findSubcapability(getAgent(), scope, path); String prefix = ""; for(int i=0; i<path.size(); i++) { prefix += getState().getAttributeValue(path.get(i), OAVBDIRuntimeModel.capabilityreference_has_name)+ "."; } return prefix; }
ret = findSubcapability(subcapa, targetcapa, path); if(!ret) path.remove(path.size()-1);
findSubcapability(ragent, rcapa, path); StringBuffer buf = new StringBuffer(); buf.append(ret.getName()).append(".");
if(interpreter.findSubcapability(interpreter.getAgent(), scope, path))
if(interpreter.findSubcapability(interpreter.getAgent(), scope, path))
if(interpreter.findSubcapability(interpreter.getAgent(), scope, path))