Tabnine Logo
Results.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jadex.micro.annotation.Results
constructor

Best Java code snippets using jadex.micro.annotation.Results.<init> (Showing top 20 results out of 315)

origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  Test threaded component execution.
 */
@Agent(keepalive=Boolean3.FALSE)
@Results(@Result(name="testresults", clazz=Testcase.class))
public class SimpleBlockingTestAgent
{
  /**
   *  Execute the agent
   */
  @AgentBody
  public void	execute(final IInternalAccess agent)
  {
    agent.getComponentFeature(IExecutionFeature.class).waitForDelay(500).get();
    
    agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1,
      new TestReport[]{new TestReport("#1", "Test blocking wait.", true, null)}));
  }
}

origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  Test threaded access to raw services.
 */
@Agent(keepalive=Boolean3.FALSE)
@Results(@Result(name="testresults", clazz=Testcase.class))
public class RawBlockingTestAgent
{
  /**
   *  Execute the agent
   */
  @AgentBody
  public void	execute(final IInternalAccess agent)
  {
    IComponentManagementService    cms    = SServiceProvider.getService(agent,
      IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM).get();
    
    cms.getComponentDescriptions().get();
    
    agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1,
      new TestReport[]{new TestReport("#1", "Test blocking wait.", true, null)}));
  }
}

origin: org.activecomponents.jadex/jadex-applications-micro

@Results(@Result(name="testresults", clazz=Testcase.class))
public class RemoteBlockingTestAgent	extends TestAgent
origin: org.activecomponents.jadex/jadex-applications-bdiv3

@Agent(keepalive=Boolean3.FALSE)
@Results(@Result(name="testresults", clazz=Testcase.class))
public abstract class InterfaceInjectionBDI implements IBDIAgent
origin: org.activecomponents.jadex/jadex-applications-micro

@Agent
@Results(@Result(name="res", clazz=int.class))
public class ResultProducerAgent
origin: org.activecomponents.jadex/jadex-applications-micro

@Results(@Result(name="testresults", clazz=Testcase.class))
public class TestAgent implements ITestService
origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  A minimal test case agent serving as a demonstrator.
 */
@Description("A simple test showing how the test center works with micro agents.")
@Results(@Result(name="testresults", clazz=Testcase.class))
@Agent
public class SimpleTestAgent
{
  @Agent
  protected IInternalAccess agent;
  
  /**
   *  Just finish the test by setting the result and killing the agent.
   */
  @AgentBody
  public void executeBody()
  {
    TestReport    tr    = new TestReport("#1", "Simple micro test.");
    tr.setSucceeded(true);
    agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(1, new TestReport[]{tr}));
    agent.killComponent();
  }

}

origin: org.activecomponents.jadex/jadex-applications-bdiv3

@Results(@Result(name="testresults", clazz=Testcase.class))
public class GoalsWithCapabilityBDI
origin: org.activecomponents.jadex/jadex-applications-bdiv3

@Results(@Result(name="testresults", clazz=Testcase.class))
@Plans(@Plan(body=@Body(ExternalPlan.class)))
public class ExternalPlanBDI
origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  Simple test agent with one service.
 */
@ProvidedServices(@ProvidedService(type=IAService.class, implementation=@Implementation(expression="$pojoagent")))
@Results(@Result(name="testcases", clazz=List.class))
@Service(IAService.class)
@Agent
public class AAgent implements IAService 
{
  @Agent
  protected IInternalAccess agent; 
  
  /**
   *  Init service method.
   */
  @AgentCreated
  public IFuture<Void> test()
  {
    boolean ext = !agent.getComponentFeature(IExecutionFeature.class).isComponentThread();
    String reason = ext? "Wrong thread: "+Thread.currentThread(): null;
    List<TestReport> tests = new ArrayList<TestReport>();
    tests.add(new TestReport("#A1", "Test if service is called on component thread.", !ext, reason));
    agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testcases", tests);
    
//        System.out.println("called service");
    return IFuture.DONE;
  }
}

origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  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
{
}

origin: org.activecomponents.jadex/jadex-applications-micro

@Arguments(@Argument(name = TagProperty.NAME, clazz = String.class, defaultvalue="null"))
@NFProperties(@NFProperty(value = TagProperty.class))
@Results(@Result(name="testresults", description= "The test results.", clazz=Testcase.class))
public class NullTagAgent
origin: org.activecomponents.jadex/jadex-applications-micro

@Results(
origin: org.activecomponents.jadex/jadex-applications-micro

@Service
@Description("Test if a pojo agent can be injected into a service as servicecomponent.")
@Results(@Result(name="testresults", clazz=Testcase.class))
public class PojoInjectionAgent implements IAService
origin: org.activecomponents.jadex/jadex-applications-micro

@Results(@Result(name="testresults", clazz=Testcase.class))
public class RequiredServicesAgent
origin: org.activecomponents.jadex/jadex-applications-micro

  @Configuration(name="b")
})
@Results(@Result(name="testresults", clazz=Testcase.class)) 
@Agent(keepalive=Boolean3.FALSE)
public class RequiredServiceConfigurationsAgent
origin: org.activecomponents.jadex/jadex-applications-micro

@RequiredServices(@RequiredService(name = "MessageService", type = IMessageService.class, binding = @Binding(scope = RequiredServiceInfo.SCOPE_GLOBAL)))
@ProvidedServices(@ProvidedService(type = IMessageService.class, name = "MessageService", implementation = @Implementation(MessageService.class)))
@Results(@Result(name="found", clazz=IServiceIdentifier[].class))
public class FirstAgent
origin: org.activecomponents.jadex/jadex-applications-micro

/**
 *  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
{
}

origin: org.activecomponents.jadex/jadex-applications-micro

@RequiredServices(@RequiredService(name = "ser1", type=IService1.class, 
  binding = @Binding(scope = Binding.SCOPE_PLATFORM)))
@Results(@Result(name="testresults", clazz=Testcase.class))
@ComponentTypes(
origin: org.activecomponents.jadex/jadex-applications-bdiv3

@Agent
@Results(@Result(name="testresults", clazz=Testcase.class))
public class AbstractBeliefsBDI
jadex.micro.annotationResults<init>

Popular methods of Results

  • replace
  • value

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now