LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic Class Reference

plan statistic to count execution values More...

+ Inheritance diagram for org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic:
+ Collaboration diagram for org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic:

Public Member Functions

final int compareTo ( @Nonnull final IPlanStatistic p_other)
 
final long count ()
 returns the number of executions More...
 
final boolean equals (final Object p_object)
 
final long fail ()
 returns number of failed execution More...
 
final double failratio ()
 returns the ratio of failed executions More...
 
final int hashCode ()
 
final IPlanStatistic incrementfail ()
 increments the failed executions More...
 
final IPlanStatistic incrementsuccessful ()
 increments the successful executions More...
 
final IPlan plan ()
 plan reference More...
 
final long successful ()
 returns number of successful execution More...
 
final double successfulratio ()
 returns the ratio of successful execution More...
 
final String toString ()
 
final Stream< IVariable<?> > variables ()
 returns a stream with variables of the internal data More...
 

Static Public Member Functions

static IPlanStatistic from ( @Nonnull final IPlan p_plan)
 factory More...
 

Private Member Functions

 CPlanStatistic ( @Nonnull final IPlan p_plan)
 ctor More...
 

Private Attributes

final AtomicLong m_fail = new AtomicLong()
 count of fail exeuctions More...
 
final IPlan m_plan
 plan reference More...
 
final AtomicLong m_successful = new AtomicLong()
 count of successful exeuctions More...
 

Detailed Description

Constructor & Destructor Documentation

◆ CPlanStatistic()

org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.CPlanStatistic ( @Nonnull final IPlan  p_plan)
private
Parameters
p_planplan reference

Definition at line 63 of file language/instantiable/plan/statistic/CPlanStatistic.java.

Referenced by org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.from().

+ Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

final int org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.compareTo ( @Nonnull final IPlanStatistic  p_other)

Definition at line 180 of file language/instantiable/plan/statistic/CPlanStatistic.java.

References org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.hashCode().

+ Here is the call graph for this function:

◆ count()

final long org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.count ( )

◆ equals()

final boolean org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.equals ( final Object  p_object)

Definition at line 154 of file language/instantiable/plan/statistic/CPlanStatistic.java.

References org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.hashCode().

+ Here is the call graph for this function:

◆ fail()

final long org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.fail ( )

◆ failratio()

final double org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.failratio ( )
Returns
ratio

Implements org.lightjason.agentspeak.language.instantiable.plan.statistic.IPlanStatistic.

Definition at line 107 of file language/instantiable/plan/statistic/CPlanStatistic.java.

Referenced by org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.variables().

+ Here is the caller graph for this function:

◆ from()

static IPlanStatistic org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.from ( @Nonnull final IPlan  p_plan)
static
Parameters
p_planplan object
Returns
statistic object

Definition at line 173 of file language/instantiable/plan/statistic/CPlanStatistic.java.

References org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.CPlanStatistic().

Referenced by org.lightjason.agentspeak.action.builtin.agent.CAddPlan.execute(), org.lightjason.agentspeak.action.builtin.TestCActionAgent.getplan(), org.lightjason.agentspeak.agent.IBaseAgent< CMethodBindingBlacklist >.IBaseAgent(), org.lightjason.agentspeak.action.builtin.TestCActionAgent.planlist(), and org.lightjason.agentspeak.action.builtin.TestCActionAgent.removeplan().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hashCode()

final int org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.hashCode ( )

Definition at line 147 of file language/instantiable/plan/statistic/CPlanStatistic.java.

Referenced by org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.compareTo(), and org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.equals().

+ Here is the caller graph for this function:

◆ incrementfail()

final IPlanStatistic org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.incrementfail ( )

◆ incrementsuccessful()

final IPlanStatistic org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.incrementsuccessful ( )

◆ plan()

final IPlan org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.plan ( )

◆ successful()

final long org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.successful ( )

◆ successfulratio()

final double org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.successfulratio ( )
Returns
ratio

Implements org.lightjason.agentspeak.language.instantiable.plan.statistic.IPlanStatistic.

Definition at line 91 of file language/instantiable/plan/statistic/CPlanStatistic.java.

Referenced by org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.variables().

+ Here is the caller graph for this function:

◆ toString()

◆ variables()

final Stream<IVariable<?> > org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.variables ( )
Returns
variable stream

Implements org.lightjason.agentspeak.language.instantiable.plan.statistic.IPlanStatistic.

Definition at line 133 of file language/instantiable/plan/statistic/CPlanStatistic.java.

References org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.failratio(), and org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.successfulratio().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_fail

final AtomicLong org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.m_fail = new AtomicLong()
private

◆ m_plan

◆ m_successful

final AtomicLong org.lightjason.agentspeak.language.instantiable.plan.statistic.CPlanStatistic.m_successful = new AtomicLong()
private