/** * Component that holds the sensors in the platform. */ @Agent @ComponentTypes( { @ComponentType(name="cpusensor", filename="jadex/platform/sensor/system/SystemSensorAgent.class") }) @Configurations(@Configuration(name="def", components= { @Component(type="cpusensor") })) public class SensorHolderAgent { }
/** * Component that holds the sensors in the platform. */ @Agent @ComponentTypes( { @ComponentType(name="cpusensor", filename="jadex/platform/sensor/system/SystemSensorAgent.class") }) @Configurations(@Configuration(name="def", components= { @Component(type="cpusensor") })) @Properties(@NameValue(name="system", value="true")) public class SensorHolderAgent { }
@Configurations({@Configuration(name="sunny"), @Configuration(name="rainy")}) @Agent(keepalive=Boolean3.FALSE) public class UniversityBDI
@Agent @Configurations({@Configuration(name="1"),@Configuration(name="2")}) public class ObjectConditionBDI
@Agent @Configurations({@Configuration(name="1"),@Configuration(name="2")}) public class ObjectConditionJavaBeansBDI
@ComponentTypes({ @ComponentType(name="Generator", filename="jadex/micro/examples/mandelbrot/GenerateAgent.class"), @ComponentType(name="Calculator", filename="jadex/micro/examples/mandelbrot/CalculateAgent.class"), @ComponentType(name="Display", filename="jadex/micro/examples/mandelbrot/DisplayAgent.class") }) @Configurations( @Configuration(name="default", components={ @Component(type="Generator"), @Component(type="Calculator"), @Component(type="Display") }) ) @Agent public class MandelbrotAgent { }
/** * Test if pojo services can be passed as local parameters. */ @Agent @ProvidedServices(@ProvidedService(type=IDService.class, implementation=@Implementation(PojoDService.class))) @RequiredServices(@RequiredService(name="cms", type=IComponentManagementService.class, binding=@Binding(scope=Binding.SCOPE_PLATFORM))) @Results(@Result(name="testresults", clazz=Testcase.class)) @Configurations({@Configuration(name="first"), @Configuration(name="second")}) public class ServiceParameterAgent { }
/** * Simple test agent with one service. */ @Agent @ComponentTypes( { @ComponentType(name="emptya", clazz=EmptyAAgent.class), @ComponentType(name="emptyb", clazz=EmptyBAgent.class) }) @Configurations( { @Configuration(name="main", components= { @Component(type="emptya", number="1"), @Component(type="emptyb", number="1") }), @Configuration(name="same", components= { @Component(type="emptya", number="1"), @Component(type="emptyb", number="1") }) }) public class MainAgent { }
@RequiredServices(@RequiredService(name="newsser", type=INewsService.class)) @ComponentTypes(@ComponentType(name="provider", clazz=NewsProviderAgent.class)) @Configurations(@Configuration(name="def", components=@Component(type="provider"))) public class NewsConsumerAgent
@ComponentType(name="step", filename="jadex/micro/testcases/blocking/StepAgent.class") }) @Configurations(@Configuration(name="default", components={ @Component(type="block"), @Component(type="step")
/** * Application configurations with users and providers. */ @Agent @ComponentTypes({ @ComponentType(name="user", clazz=UserAgent.class), @ComponentType(name="provider", clazz=ProviderAgent.class) }) @Configurations({ @Configuration(name="10 users and 5 providers", components={ @Component(name="gui", type="user", configuration="with gui"), @Component(type="user", number="10"), @Component(type="provider", number="5") }), @Configuration(name="40 users and 5 providers", components={ @Component(name="gui", type="user", configuration="with gui"), @Component(type="user", number="40"), @Component(type="provider", number="5") }) }) public class ApplicationAgent { }
@ComponentType(name="step", filename="jadex/micro/testcases/blocking/StepAgent.class") }) @Configurations(@Configuration(name="default", components={ @Component(type="block"), @Component(type="step")
@Configurations({ @Configuration(name="a", requiredservices=@RequiredService(name="as", type=IAService.class, binding=@Binding(scope=RequiredServiceInfo.SCOPE_LOCAL))), @Configuration(name="b")
/** * Multi kernel. */ @Arguments({ @Argument(name="defaultkernels", description= "Kernel default locations.", clazz=String[].class, defaultvalue="null"), @Argument(name="ignorekernels", description="Kernels that are ignored.", clazz=String[].class, defaultvalue="new String[] {\"KernelBDI.component.xml\"}"), @Argument(name="ignoreextensions", description="File extensions that are ignored.", clazz=String[].class, defaultvalue="null")}) @ProvidedServices({ @ProvidedService(type=IComponentFactory.class, implementation=@Implementation(expression="new jadex.kernelbase.MultiFactory($args.defaultkernels, $args.ignorekernels, $args.ignoreextensions)")), @ProvidedService(type=IMultiKernelNotifierService.class, implementation=@Implementation(expression="$component.getRawService(jadex.bridge.service.types.factory.IComponentFactory.class)")) }) @ComponentTypes({ @ComponentType(name="KernelMicro", filename="jadex/micro/KernelMicroAgent.class") }) @Configurations({ @Configuration(name="default", components={ @Component(name="kernel_micro", type="KernelMicro") }) }) public class KernelMultiAgent extends MicroAgent { }
@ComponentType(name="step", filename="jadex/micro/testcases/blocking/StepAgent.class") }) @Configurations(@Configuration(name="default", components={ @Component(type="block"), @Component(type="step")
@RequiredServices(@RequiredService(name="syncser", type=ISynchronousExampleService.class)) @ComponentTypes(@ComponentType(name="provider", clazz=ProviderAgent.class)) @Configurations(@Configuration(name="def", components=@Component(type="provider"))) @Results(@Result(name="testresults", description= "The test results.", clazz=Testcase.class)) public class UserAgent
@Configurations({ @Configuration(name="self"), @Configuration(name="platform")})
/** * 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 { }