ConfigurationInfo ci = getComponent().getConfiguration()!=null ? getComponent().getModel().getConfiguration(getComponent().getConfiguration()) : getComponent().getModel().getConfigurations().length>0 ? getComponent().getModel().getConfigurations()[0] : null; if(upes[i].getValue()!=null) step = SJavaParser.getParsedValue(upes[i], getComponent().getModel().getAllImports(), getComponent().getFetcher(), getComponent().getClassLoader()); Class<?> clazz = upes[i].getClazz().getType(getComponent().getClassLoader(), getComponent().getModel().getAllImports()); try for(IComponentStep step: steps) getComponent().getComponentFeature(IExecutionFeature.class).scheduleStep(step) .addResultListener(crl);
/** * Execute the functional body of the agent. * Is only called once. */ public IFuture<Void> body() { IInternalBDIAgentFeature bdif = component.getComponentFeature(IInternalBDIAgentFeature.class); createStartBehavior().startBehavior(bdif.getBDIModel(), bdif.getRuleSystem(), bdif.getCapability()); // inited = true; return super.body(); }
ConfigurationInfo ci = getComponent().getConfiguration()!=null ? getComponent().getModel().getConfiguration(getComponent().getConfiguration()) : getComponent().getModel().getConfigurations().length>0 ? getComponent().getModel().getConfigurations()[0] : null; if(upes[i].getValue()!=null) step = SJavaParser.getParsedValue(upes[i], getComponent().getModel().getAllImports(), getComponent().getFetcher(), getComponent().getClassLoader()); Class<?> clazz = upes[i].getClazz().getType(getComponent().getClassLoader(), getComponent().getModel().getAllImports()); try for(IComponentStep step: steps) getComponent().getComponentFeature(IExecutionFeature.class).scheduleStep(step) .addResultListener(crl);