LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.agent.TestCAgent Class Reference

test agent structure. More...

+ Inheritance diagram for org.lightjason.agentspeak.agent.TestCAgent:
+ Collaboration diagram for org.lightjason.agentspeak.agent.TestCAgent:

Classes

class  CAgent
 agent class More...
 
class  CEmptyPrint
 empty print action More...
 
class  CTestResult
 test action More...
 

Public Member Functions

final void initialize ()
 return list initialize More...
 
final void testASLDefault (final Triple< String, Number, Number > p_asl) throws Exception
 test for default generators and configuration More...
 

Static Public Member Functions

static Object [] generate ()
 data provider for defining asl files More...
 

Static Package Functions

 [static initializer]
 

Private Attributes

List< Pair< Boolean, String > > m_testlog
 list with successful plans More...
 

Additional Inherited Members

- Static Protected Attributes inherited from org.lightjason.agentspeak.IBaseTest
static final boolean PRINTENABLE = Files.exists( Paths.get( "agentprinting.conf" ) )
 enable printing of test-data More...
 

Detailed Description

If a file agentprintin.conf exists on the main directory alls print statements will be shown

Definition at line 71 of file TestCAgent.java.

Member Function Documentation

◆ [static initializer]()

org.lightjason.agentspeak.agent.TestCAgent.[static initializer] ( )
staticpackage

◆ generate()

static Object [] org.lightjason.agentspeak.agent.TestCAgent.generate ( )
static
Returns
triple of test-cases (asl file, number of iterations, expected log items)

Definition at line 89 of file TestCAgent.java.

◆ initialize()

final void org.lightjason.agentspeak.agent.TestCAgent.initialize ( )

Definition at line 107 of file TestCAgent.java.

◆ testASLDefault()

final void org.lightjason.agentspeak.agent.TestCAgent.testASLDefault ( final Triple< String, Number, Number >  p_asl) throws Exception
Parameters
p_asltripel of asl code, cycles and expected success calls
Exceptions
Exceptionon any error

Definition at line 120 of file TestCAgent.java.

References org.lightjason.agentspeak.common.CCommon.actionsFromPackage(), and org.lightjason.agentspeak.agent.TestCAgent.CAgent.CAgentGenerator.generatesingle().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_testlog

List<Pair<Boolean, String> > org.lightjason.agentspeak.agent.TestCAgent.m_testlog
private

Definition at line 76 of file TestCAgent.java.