/** * Component kernel. */ @Properties({ @NameValue(name="kernel.types", value="new String[] { \"component.xml\"}") }) @ProvidedServices({ @ProvidedService(type=IComponentFactory.class, implementation=@Implementation(expression="new jadex.component.ComponentComponentFactory($component.getServiceProvider())")) }) public class KernelComponentAgent extends MicroAgent { }
/** * Component kernel. */ @Properties(@NameValue(name="kernel.types", value="new String[]{\"BDI.class\"}")) @ProvidedServices({ @ProvidedService(type=IComponentFactory.class, implementation=@Implementation( // expression="new jadex.bdiv3.BDIAgentFactory($component.getServiceProvider())")) expression="new jadex.bdiv3.BDIAgentFactory($component.getServiceProvider(), jadex.commons.SUtil.createHashMap(new String[]{\"debugger.panels\"},new Object[]{\"jadex.tools.debugger.bdiv3.BDIViewerDebuggerPanel\"}))")) }) public class KernelBDIV3Agent extends MicroAgent { }
/** * Agent that provides the DF service. */ @Agent @ProvidedServices(@ProvidedService(type=IDF.class, implementation=@Implementation(DirectoryFacilitatorService.class))) @Properties(value=@NameValue(name="system", value="true")) public class DirectoryFacilitatorAgent { }
/** * Default monitoring agent. */ @Agent @ProvidedServices(@ProvidedService(type=IMonitoringService.class, implementation=@Implementation(MonitoringService.class))) @Properties(value=@NameValue(name="system", value="true")) public class MonitoringAgent { }
/** * Default registry synchronization agent. */ @Agent @ProvidedServices(@ProvidedService(type=IRegistrySynchronizationService.class, implementation=@Implementation(RegistrySynchronizationService.class))) @Properties(value=@NameValue(name="system", value="true")) public class RegistrySynchronizationAgent { }
/** * */ @Agent @ProvidedServices(@ProvidedService(type=ITransportAddressService.class, implementation=@Implementation(TransportAddressService.class))) @Properties(value=@NameValue(name="system", value="true")) public class TransportAddressAgent { }
/** * Agent that provides the simulation service. */ @Agent @ProvidedServices(@ProvidedService(type=ISimulationService.class, implementation=@Implementation(SimulationService.class))) @Properties(value=@NameValue(name="system", value="true")) public class SimulationAgent { }
/** * Agent that provides the file transfer service. */ @Agent @ProvidedServices(@ProvidedService(type=IFileTransferService.class, implementation=@Implementation(FileTransferService.class))) @Properties(value=@NameValue(name="system", value="true")) public class FileTransferAgent { }
/** * Agent that publishes the rs publication service. */ @Agent @ProvidedServices( { @ProvidedService(name="publish_rs", type=IWebPublishService.class, implementation=@Implementation(GrizzlyRestServicePublishService.class)) }) @Properties(@NameValue(name="system", value="true")) public class LegacyGrizzlyRSPublishAgent { }
/** * Agent that provides the marshal service. */ @Agent @ProvidedServices(@ProvidedService(type=IMarshalService.class, implementation=@Implementation(value=MarshalService.class, proxytype=Implementation.PROXYTYPE_RAW))) @Properties(value=@NameValue(name="system", value="true")) public class MarshalAgent { }
/** * Agent that provides the settings service. */ @Agent @ProvidedServices(@ProvidedService(type=ISettingsService.class, implementation=@Implementation(SettingsService.class))) @Properties(value=@NameValue(name="system", value="true")) public class SettingsAgent { }
/** * Agent that publishes the rs publication service. */ @Agent @ProvidedServices( { @ProvidedService(name="publish_rs", type=IWebPublishService.class, implementation=@Implementation(JettyRestPublishService.class)) }) @Properties(@NameValue(name="system", value="true")) public class JettyRSPublishAgent { }
/** * Agent that publishes the rs publication service. */ @Agent @ProvidedServices( { @ProvidedService(name="publish_rs", type=IWebPublishService.class, implementation=@Implementation(GrizzlyRestPublishService.class)) // implementation=@Implementation(GrizzlyRestServicePublishService.class)) }) @Properties(@NameValue(name="system", value="true")) public class GrizzlyRSPublishAgent { }
/** * Micro kernel. */ @Imports("jadex.commons.*") @ProvidedServices({@ProvidedService(type=IComponentFactory.class, implementation=@Implementation( expression="new MicroAgentFactory($component, SUtil.createHashMap(new String[]{\"debugger.panels\"},new Object[]{\"jadex.tools.debugger.micro.MicroDebuggerPanel\"}))")) }) @Agent @Properties(@NameValue(name="system", value="true")) public class KernelMicroAgent { }
/** * Component kernel. */ @Properties({ @NameValue(name="system", value="true"), @NameValue(name="kernel.types", value="new String[] { \"component.xml\"}") }) @ProvidedServices({ @ProvidedService(type=IComponentFactory.class, implementation=@Implementation(expression="new jadex.component.ComponentComponentFactory($component)")) }) @Agent public class KernelComponentAgent { }
/** * Component kernel. */ //@Properties({@NameValue(name="system", value="true"), @NameValue(name="kernel.types", value="new String[]{\"BDI.class\"}")}) @Properties({@NameValue(name="system", value="true"), @NameValue(name="kernel.types", value="new String[]{\"BDI.class\"}")}) @ProvidedServices({ @ProvidedService(type=IComponentFactory.class, implementation=@Implementation( // expression="new jadex.bdiv3.BDIAgentFactory($component)")) expression="new jadex.bdiv3.BDIAgentFactory($component, jadex.commons.SUtil.createHashMap(new String[]{\"debugger.panels\"},new Object[]{\"jadex.tools.debugger.bdiv3.BDIViewerDebuggerPanel\"}))")) }) @Agent public class KernelBDIV3Agent { }
/** * Agent that provides the context service. */ @Agent @Arguments(@Argument(name="contextserviceclass", clazz=Class.class)) @ProvidedServices(@ProvidedService(type=IContextService.class, implementation=@Implementation(expression="$args.contextserviceclass!=null ? jadex.commons.SReflect.classForName0($args.contextserviceclass, jadex.commons.SReflect.class.getClassLoader()).newInstance() : jadex.commons.SReflect.isAndroid() ? jadex.platform.service.context.AndroidContextService.class.getConstructor(new Class[]{jadex.bridge.IComponentIdentifier.class}).newInstance(new Object[]{$component.getComponentIdentifier()}): jadex.platform.service.context.ContextService.class.getConstructor(new Class[]{jadex.bridge.IComponentIdentifier.class}).newInstance(new Object[]{$component.getComponentIdentifier()})"))) @Properties(value=@NameValue(name="system", value="true")) public class ContextAgent { }
/** * Agent that provides the clock service. */ @Agent @Arguments(@Argument(name="simulation", clazz=boolean.class, defaultvalue="false")) @ProvidedServices(@ProvidedService(type=IClockService.class, implementation=@Implementation( expression="$args.simulation==null || !$args.simulation.booleanValue()? new jadex.platform.service.clock.ClockService(new jadex.platform.service.clock.ClockCreationInfo(jadex.bridge.service.types.clock.IClock.TYPE_SYSTEM, \"system_clock\", System.currentTimeMillis(), 100), $component, $args.simulation): new jadex.platform.service.clock.ClockService(new jadex.platform.service.clock.ClockCreationInfo(jadex.bridge.service.types.clock.IClock.TYPE_EVENT_DRIVEN, \"simulation_clock\", System.currentTimeMillis(), 100), $component, $args.simulation)", proxytype=Implementation.PROXYTYPE_RAW))) @Properties(value=@NameValue(name="system", value="true")) public class ClockAgent { }
/** * Agent that provides the security service. */ @Agent @Arguments({ @Argument(name="usepass", clazz=boolean.class, defaultvalue="true"), @Argument(name="printpass", clazz=boolean.class, defaultvalue="true"), @Argument(name="trustedlan", clazz=boolean.class, defaultvalue="true"), @Argument(name="networkname", clazz=String[].class), @Argument(name="networkpass", clazz=String[].class), @Argument(name="virtualnames", clazz=String[].class), @Argument(name="validityduration", clazz=long.class) }) @ProvidedServices(@ProvidedService(type=ISecurityService.class, implementation=@Implementation(expression="new jadex.platform.service.security.SecurityService($args.usepass, $args.printpass, $args.trustedlan, $args.networkname==null? null: new String[]{$args.networkname}, $args.networkpass==null? null: new String[]{$args.networkpass}, null, $args.virtualnames, $args.validityduration)"))) @Properties(value=@NameValue(name="system", value="true")) public class SecurityAgent { }
/** * Base class agent. */ @Agent @Description("Base description") @Imports({"b1", "b2"}) @Properties({@NameValue(name="a", value="\"ba\""), @NameValue(name="b", value="\"bb\"")}) @RequiredServices(@RequiredService(name="clock", type=IClockService.class, binding=@Binding(scope=RequiredServiceInfo.SCOPE_PLATFORM))) @ProvidedServices(@ProvidedService(name="myservice", type=IAService.class, implementation=@Implementation(Object.class))) @Arguments(@Argument(name="arg1", defaultvalue="\"bval\"", clazz=String.class)) @Results(@Result(name="res1", defaultvalue="\"bres\"", clazz=String.class)) @Configurations({@Configuration(name="config1"), @Configuration(name="config2")}) public abstract class BaseAgent { }