/** * Create the platform. * @param config The PlatformConfiguration object. * @return The external access of the root component. */ public static IFuture<IExternalAccess> createPlatform(final PlatformConfiguration config) { return createPlatform(config, false); }
/** * Create the platform. * @param config The PlatformConfiguration object. * @param cl ClassLoader used as root class loader. * @return The external access of the root component. */ public static IFuture<IExternalAccess> createPlatform(final PlatformConfiguration config, final ClassLoader cl) { return createPlatform(config, cl, false); }
/** * Start the platform and also the agent. */ public static void main(String[] args) { Starter.createPlatform(new String[] { "-component", "jadex.bdiv3.quickstart.QuickstartBDI.class" }); } }
/** * Create the platform. * @param config The PlatformConfiguration object. * @return The external access of the root component. */ public static IFuture<IExternalAccess> createPlatform(final PlatformConfiguration config, boolean printExceptions) { return createPlatform(config, Starter.class.getClassLoader(), printExceptions); }
/** * Create the platform. * @param args The command line arguments. * @return The external access of the root component. * @deprecated since 3.0.7. Use other createPlatform methods instead. */ @Deprecated public static IFuture<IExternalAccess> createPlatform(Map<String, String> args) { PlatformConfiguration config = PlatformConfiguration.processArgs(args); return createPlatform(config); }
/** * Create the platform. * @return The external access of the root component. */ public static IFuture<IExternalAccess> createPlatform() { return createPlatform(PlatformConfiguration.getDefault()); }
/** * Create the platform. * @param args The command line arguments. * @return The external access of the root component. */ public static IFuture<IExternalAccess> createPlatform(String... args) { PlatformConfiguration config = PlatformConfiguration.processArgs(args); return createPlatform(config); }
/** * Main method starts the platform * and creates a chat component. */ public static void main(String[] args) { // Start the platform with the arguments. IFuture<IExternalAccess> platfut = Starter.createPlatform(args); // Wait until the platform has started and retrieve the platform access. IExternalAccess platform = platfut.get(); System.out.println("Started platform: "+platform.getComponentIdentifier()); } }
/** * Main method starts the platform * and creates a chat component. */ public static void main(String[] args) { // Merge arguments and default arguments. String[] defargs = new String[] { "-gui", "false", "-welcome", "false", "-cli", "false", "-printpass", "false" }; String[] newargs = new String[defargs.length+args.length]; System.arraycopy(defargs, 0, newargs, 0, defargs.length); System.arraycopy(args, 0, newargs, defargs.length, args.length); // Start the platform with the arguments. IFuture<IExternalAccess> platfut = Starter.createPlatform(newargs); // Wait until the platform has started and retrieve the platform access. // ThreadSuspendable sus = new ThreadSuspendable(); IExternalAccess platform = platfut.get(); System.out.println("Started platform: "+platform.getComponentIdentifier()); } }
/** * Start a Jadex platform and the TimeUserAgent. */ public static void main(String[] args) { PlatformConfiguration config = PlatformConfiguration.getMinimalRelayAwareness(); config.addComponent(TimeUserAgent.class.getName()+".class"); Starter.createPlatform(config).get(); } }
/** * Start a Jadex platform and the TimeProviderAgent. */ public static void main(String[] args) { PlatformConfiguration config = PlatformConfiguration.getMinimalRelayAwareness(); config.addComponent(TimeProviderAgent.class.getName()+".class"); Starter.createPlatform(config).get(); } }
IFuture<IExternalAccess> platfut = Starter.createPlatform(newargs);
public static void main(String[] args) { PlatformConfiguration config = PlatformConfiguration.getDefaultNoGui(); config.addComponent("jadex.micro.testcases.visibility.FirstAgent.class"); config.addComponent("jadex.micro.testcases.visibility.SecondAgent.class"); jadex.base.Starter.createPlatform(config).get(); } }
/** * Start the platform and the agent. */ public static void main(String[] args) { PlatformConfiguration config = PlatformConfiguration.getMinimal(); config.setKernels(RootComponentConfiguration.KERNEL.micro, RootComponentConfiguration.KERNEL.v3); // config.getRootConfig().setLogging(true); config.addComponent("jadex.bdiv3.quickstart.treasureisland.TreasureHunterB1BDI.class"); Starter.createPlatform(config).get(); } }
IFuture<IExternalAccess> platfut = Starter.createPlatform(newargs);
IExternalAccess platform = Starter.createPlatform(ComponentTestSuite.DEFARGS).get(); IComponentManagementService cms = SServiceProvider.getService(platform, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM).get();
public static void main(String[] args) IExternalAccess plat = Starter.createPlatform(new String[]{"-gui", "false"}).get(); IComponentManagementService cms = SServiceProvider.getService(plat, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM).get();
/** * */ public static void main(String[] args) { String[] pargs = new String[] { "-gui", "false" }; IExternalAccess rootcomp = (IExternalAccess)Starter.createPlatform(pargs).get(new ThreadSuspendable()); IComponentManagementService cms = (IComponentManagementService)SServiceProvider.getServiceUpwards(rootcomp.getServiceProvider(), IComponentManagementService.class).get(new ThreadSuspendable()); dorun(cms, "jadex/micro/testcases/blocking/ShutdownAgent.class"); // dorun(cms, "jadex/micro/benchmarks/MessagePerformanceAgent.class"); // dorun(cms, "jadex/micro/examples/ping/PingScenario.application.xml"); } }
String url = process.getModel().getResourceIdentifier().getLocalIdentifier().getUrl().toString(); Starter.createPlatform(new String[]{"-platformname", process.getComponentIdentifier().getPlatformPrefix()+"_*",
String url = process.getModel().getResourceIdentifier().getLocalIdentifier().getUri().toString(); Starter.createPlatform(new String[]{"-platformname", process.getComponentIdentifier().getPlatformPrefix()+"_*",