LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.action.builtin.TestCActionMath Class Reference

test math functions More...

+ Inheritance diagram for org.lightjason.agentspeak.action.builtin.TestCActionMath:
+ Collaboration diagram for org.lightjason.agentspeak.action.builtin.TestCActionMath:

Public Member Functions

final void aggregationvalueaction (final Triple< List< ITerm >, Class<? extends IAction >, Function< Stream< Number >, ?>> p_input) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
 test all aggregation-value actions More...
 
final void binomial ()
 test binomial More...
 
final void factorial ()
 test factorial More...
 
final void geometricmean ()
 test geometricmean More...
 
final void harmonicmean ()
 test harmonicmean More...
 
final void hypot ()
 test hypot More...
 
final void maxIndex ()
 test max index More...
 
final void minIndex ()
 test min index More...
 
final void pow ()
 test power More...
 
final void primefactors ()
 test primefactors More...
 
final void sigmoid ()
 test sigmoid More...
 
final void singlevalueaction (final Triple< List< ITerm >, Class<? extends IAction >, Function< Number, ?>> p_input) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
 test all single-value actions More...
 
final void stirling ()
 test stirling More...
 

Static Public Member Functions

static Object [] aggregationvaluegenerate ()
 data provider generator for aggregation-value tests More...
 
static Object [] singlevaluegenerate ()
 data provider generator for single-value tests More...
 

Static Private Member Functions

static Stream< Object > aggregationvaluetestcase (final Stream< Number > p_input, final Stream< Class<? extends IAction >> p_class, final Function< Stream< Number >, ?>... p_result)
 create test case More...
 
static Stream< Object > singlevaluetestcase (final Stream< Number > p_input, final Stream< Class<? extends IAction >> p_class, final Function< Number, ?>... p_result)
 create test case 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 94 of file TestCActionMath.java.

Member Function Documentation

◆ aggregationvalueaction()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.aggregationvalueaction ( final Triple< List< ITerm >, Class<? extends IAction >, Function< Stream< Number >, ?>>  p_input) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
Parameters
p_inputtest data
Exceptions
IllegalAccessExceptionis thrwon on instantiation error
InstantiationExceptionis thrwon on instantiation error
NoSuchMethodExceptionis thrwon on instantiation error
InvocationTargetExceptionis thrwon on instantiation error

Definition at line 259 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN.

◆ aggregationvaluegenerate()

static Object [] org.lightjason.agentspeak.action.builtin.TestCActionMath.aggregationvaluegenerate ( )
static
Returns
data

Definition at line 177 of file TestCActionMath.java.

◆ aggregationvaluetestcase()

static Stream<Object> org.lightjason.agentspeak.action.builtin.TestCActionMath.aggregationvaluetestcase ( final Stream< Number >  p_input,
final Stream< Class<? extends IAction >>  p_class,
final Function< Stream< Number >, ?>...  p_result 
)
staticprivate
Parameters
p_inputinput data
p_classaction class
p_resultresult function
Returns
test-case data

Definition at line 234 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ binomial()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.binomial ( )

Definition at line 310 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CBinomial.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ factorial()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.factorial ( )

Definition at line 329 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CFactorial.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ geometricmean()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.geometricmean ( )

Definition at line 429 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CGeometricMean.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ harmonicmean()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.harmonicmean ( )

Definition at line 448 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CHarmonicMean.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ hypot()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.hypot ( )

Definition at line 466 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CHypot.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ maxIndex()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.maxIndex ( )

Definition at line 493 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CMaxIndex.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ minIndex()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.minIndex ( )

Definition at line 511 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CMinIndex.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ pow()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.pow ( )

Definition at line 408 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CPow.execute(), org.lightjason.agentspeak.language.CRawTerm< T >.from(), and org.lightjason.agentspeak.language.ITerm.raw().

+ Here is the call graph for this function:

◆ primefactors()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.primefactors ( )

Definition at line 351 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CPrimeFactors.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ sigmoid()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.sigmoid ( )

Definition at line 370 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CSigmoid.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ singlevalueaction()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.singlevalueaction ( final Triple< List< ITerm >, Class<? extends IAction >, Function< Number, ?>>  p_input) throws IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException
Parameters
p_inputtest data
Exceptions
IllegalAccessExceptionis thrwon on instantiation error
InstantiationExceptionis thrwon on instantiation error
NoSuchMethodExceptionis thrwon on instantiation error
InvocationTargetExceptionis thrwon on instantiation error

Definition at line 287 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, and org.lightjason.agentspeak.language.ITerm.raw().

+ Here is the call graph for this function:

◆ singlevaluegenerate()

static Object [] org.lightjason.agentspeak.action.builtin.TestCActionMath.singlevaluegenerate ( )
static
Returns
data

Definition at line 102 of file TestCActionMath.java.

◆ singlevaluetestcase()

static Stream<Object> org.lightjason.agentspeak.action.builtin.TestCActionMath.singlevaluetestcase ( final Stream< Number >  p_input,
final Stream< Class<? extends IAction >>  p_class,
final Function< Number, ?>...  p_result 
)
staticprivate
Parameters
p_inputinput data
p_classaction class
p_resultresult function
Returns
test-case data

Definition at line 211 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function:

◆ stirling()

final void org.lightjason.agentspeak.action.builtin.TestCActionMath.stirling ( )

Definition at line 390 of file TestCActionMath.java.

References org.lightjason.agentspeak.language.execution.IContext.EMPTYPLAN, org.lightjason.agentspeak.action.builtin.math.CStirling.execute(), and org.lightjason.agentspeak.language.CRawTerm< T >.from().

+ Here is the call graph for this function: