LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.consistency.TestCMetric Class Reference

metric tests More...

+ Inheritance diagram for org.lightjason.agentspeak.consistency.TestCMetric:
+ Collaboration diagram for org.lightjason.agentspeak.consistency.TestCMetric:

Classes

class  CAgent
 agent class More...
 
class  CGenerator
 test belief generator More...
 

Public Member Functions

void initialize () throws Exception
 test initialize More...
 
final void symmetricweightequality ()
 test symmetric weight metric equality More...
 
final void symmetricweightinequality ()
 test symmetric weight metric inequality More...
 
final void weightequality ()
 test symmetric metric equality More...
 
final void weightinequality ()
 test symmetric metric equality More...
 

Private Member Functions

CAgent agent (final Collection< ILiteral > p_literals)
 generates an agent More...
 
void check (final String p_message, final IFilter p_filter, final IMetric p_metric, final Collection< ILiteral > p_belief1, final Collection< ILiteral > p_belief2, final double p_excepted, final double p_delta)
 runs the check More...
 

Private Attributes

CAgent.CAgentGenerator m_agentgenerator
 agent generator More...
 
IViewGenerator m_generator
 literal view generator More...
 
Set< ILiteralm_literals
 set with testing literals 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

Definition at line 61 of file TestCMetric.java.

Member Function Documentation

◆ agent()

CAgent org.lightjason.agentspeak.consistency.TestCMetric.agent ( final Collection< ILiteral p_literals)
private
Parameters
p_literalsliteral collection
Returns
agent

Definition at line 202 of file TestCMetric.java.

References org.lightjason.agentspeak.agent.IBaseAgent< T extends IAgent<?>.beliefbase(), org.lightjason.agentspeak.beliefbase.view.IView.generate(), and org.lightjason.agentspeak.consistency.TestCMetric.m_agentgenerator.

+ Here is the call graph for this function:

◆ check()

void org.lightjason.agentspeak.consistency.TestCMetric.check ( final String  p_message,
final IFilter  p_filter,
final IMetric  p_metric,
final Collection< ILiteral p_belief1,
final Collection< ILiteral p_belief2,
final double  p_excepted,
final double  p_delta 
)
private
Parameters
p_messageerror / successful message
p_filteragent filter
p_metricmetric value
p_belief1belief set 1
p_belief2belief set 2
p_exceptedexpected value
p_deltadelta

Definition at line 185 of file TestCMetric.java.

Referenced by org.lightjason.agentspeak.consistency.TestCMetric.symmetricweightequality(), org.lightjason.agentspeak.consistency.TestCMetric.symmetricweightinequality(), org.lightjason.agentspeak.consistency.TestCMetric.weightequality(), and org.lightjason.agentspeak.consistency.TestCMetric.weightinequality().

+ Here is the caller graph for this function:

◆ initialize()

void org.lightjason.agentspeak.consistency.TestCMetric.initialize ( ) throws Exception
Exceptions
Exceptionon any parsing error

Definition at line 82 of file TestCMetric.java.

References org.lightjason.agentspeak.language.CLiteral.from(), and org.lightjason.agentspeak.consistency.TestCMetric.m_agentgenerator.

+ Here is the call graph for this function:

◆ symmetricweightequality()

final void org.lightjason.agentspeak.consistency.TestCMetric.symmetricweightequality ( )

Definition at line 103 of file TestCMetric.java.

References org.lightjason.agentspeak.consistency.TestCMetric.check().

+ Here is the call graph for this function:

◆ symmetricweightinequality()

final void org.lightjason.agentspeak.consistency.TestCMetric.symmetricweightinequality ( )

Definition at line 121 of file TestCMetric.java.

References org.lightjason.agentspeak.consistency.TestCMetric.check(), and org.lightjason.agentspeak.language.CLiteral.from().

+ Here is the call graph for this function:

◆ weightequality()

final void org.lightjason.agentspeak.consistency.TestCMetric.weightequality ( )

Definition at line 139 of file TestCMetric.java.

References org.lightjason.agentspeak.consistency.TestCMetric.check().

+ Here is the call graph for this function:

◆ weightinequality()

final void org.lightjason.agentspeak.consistency.TestCMetric.weightinequality ( )

Definition at line 158 of file TestCMetric.java.

References org.lightjason.agentspeak.consistency.TestCMetric.check(), and org.lightjason.agentspeak.language.CLiteral.from().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_agentgenerator

CAgent.CAgentGenerator org.lightjason.agentspeak.consistency.TestCMetric.m_agentgenerator
private

◆ m_generator

IViewGenerator org.lightjason.agentspeak.consistency.TestCMetric.m_generator
private

Definition at line 70 of file TestCMetric.java.

◆ m_literals

Set<ILiteral> org.lightjason.agentspeak.consistency.TestCMetric.m_literals
private

Definition at line 74 of file TestCMetric.java.