|
LightJason - AgentSpeak(L++)
|
layer with consistency data based a markov-chain More...
Inheritance diagram for org.lightjason.agentspeak.consistency.CConsistency:
Collaboration diagram for org.lightjason.agentspeak.consistency.CConsistency:Classes | |
| enum | EAlgorithm |
| numeric algorithm structure More... | |
Public Member Functions | |
| final IConsistency | add ( @Nonnull final IAgent<?> p_object) |
| adds a new object More... | |
| final IConsistency | call () throws Exception |
| final IConsistency | clear () |
| clear More... | |
| final Stream< Map.Entry< IAgent<?>, Double > > | consistency () |
| stream over all data More... | |
| final double | consistency ( @Nonnull final IAgent<?> p_object) |
| returns the consistency of an object More... | |
| final IFilter | filter () |
| returns the used metric filter More... | |
| final double | inconsistency ( @Nonnull final IAgent<?> p_object) |
| returns the inconsistency of an object More... | |
| final Stream< Map.Entry< IAgent<?>, Double > > | inconsistency () |
| stream over all data More... | |
| final IMetric | metric () |
| returns the used metric More... | |
| final IConsistency | remove ( @Nonnull final IAgent<?> p_object) |
| removes an object More... | |
| final DescriptiveStatistics | statistic () |
| returns statistic data of the consistency values More... | |
| final String | toString () |
Static Public Member Functions | |
| static IConsistency | heuristic (final IFilter p_filter, final IMetric p_metric) |
| factory heuristic algorithm More... | |
| static IConsistency | heuristic (final IFilter p_filter, final IMetric p_metric, final int p_iteration) |
| factory heuristic algorithm More... | |
| static IConsistency | heuristic (final IFilter p_filter, final IMetric p_metric, final int p_iteration, final double p_epsilon) |
| factory numerical algorithm More... | |
| static IConsistency | numeric (final IFilter p_filter, final IMetric p_metric) |
| factory numerical algorithm More... | |
Private Member Functions | |
| CConsistency ( @Nonnull final EAlgorithm p_algorithm, @Nonnull final IFilter p_filter, @Nonnull final IMetric p_metric, final int p_iteration, final double p_epsilon) | |
| ctor More... | |
| double | getMetricValue (final IAgent<?> p_first, final IAgent<?> p_second) |
| returns metric consistency More... | |
Private Attributes | |
| final EAlgorithm | m_algorithm |
| algorithm to calculate stationary probability More... | |
| final Map< IAgent<?>, Map.Entry< Double, Double > > | m_data = new ConcurrentHashMap<>() |
| map with object and consistency & inconsistency value More... | |
| final double | m_epsilon |
| epsilon consistency to create an aperiodic markow-chain More... | |
| final IFilter | m_filter |
| metric filter More... | |
| final int | m_iteration |
| number of iterations of the stochastic algorithm More... | |
| final IMetric | m_metric |
| metric object to create the consistency of two objects More... | |
| final DescriptiveStatistics | m_statistic = new SynchronizedDescriptiveStatistics() |
| descriptive statistic More... | |
Static Private Attributes | |
| static final DenseDoubleAlgebra | ALGEBRA = DenseDoubleAlgebra.DEFAULT |
| algebra More... | |
| static final Map.Entry< Double, Double > | DEFAULTNONEXISTING = new AbstractMap.SimpleImmutableEntry<>( 1.0, 0.0 ) |
| default value on non-existing objects More... | |
| static final DoubleFunction | PROBABILITYINVERT = p_value -> 1 - p_value |
| function for inverting probability More... | |
Definition at line 58 of file CConsistency.java.
|
private |
| p_algorithm | algorithm |
| p_filter | metric filter |
| p_metric | object metric |
| p_iteration | iterations |
| p_epsilon | epsilon consistency |
Definition at line 111 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.heuristic(), and org.lightjason.agentspeak.consistency.CConsistency.numeric().
Here is the caller graph for this function:| final IConsistency org.lightjason.agentspeak.consistency.CConsistency.add | ( | @Nonnull final IAgent<?> | p_object | ) |
| p_object | new object |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 130 of file CConsistency.java.
| final IConsistency org.lightjason.agentspeak.consistency.CConsistency.call | ( | ) | throws Exception |
Definition at line 137 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.getMetricValue(), and org.lightjason.agentspeak.consistency.CConsistency.EAlgorithm.getStationaryDistribution().
Here is the call graph for this function:| final IConsistency org.lightjason.agentspeak.consistency.CConsistency.clear | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 204 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.IConsistency.clear().
Here is the call graph for this function:| final Stream<Map.Entry<IAgent<?>, Double> > org.lightjason.agentspeak.consistency.CConsistency.consistency | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 227 of file CConsistency.java.
| final double org.lightjason.agentspeak.consistency.CConsistency.consistency | ( | @Nonnull final IAgent<?> | p_object | ) |
| p_object | object |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 234 of file CConsistency.java.
| final IFilter org.lightjason.agentspeak.consistency.CConsistency.filter | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 220 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.m_filter.
|
private |
| p_first | first element |
| p_second | secend element |
Definition at line 266 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.call().
Here is the caller graph for this function:
|
static |
| p_filter | metric filter |
| p_metric | object metric |
Definition at line 296 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.CConsistency(), and org.lightjason.agentspeak.consistency.CConsistency.EAlgorithm.FIXPOINT.
Here is the call graph for this function:
|
static |
| p_filter | metric filter |
| p_metric | object metric |
| p_iteration | number of iterations |
Definition at line 309 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.CConsistency(), and org.lightjason.agentspeak.consistency.CConsistency.EAlgorithm.FIXPOINT.
Here is the call graph for this function:
|
static |
| p_filter | metric filter |
| p_metric | object metric |
| p_iteration | number of iterations |
| p_epsilon | epsilon |
Definition at line 323 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.CConsistency(), and org.lightjason.agentspeak.consistency.CConsistency.EAlgorithm.FIXPOINT.
Here is the call graph for this function:| final double org.lightjason.agentspeak.consistency.CConsistency.inconsistency | ( | @Nonnull final IAgent<?> | p_object | ) |
| p_object | object |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 241 of file CConsistency.java.
| final Stream<Map.Entry<IAgent<?>, Double> > org.lightjason.agentspeak.consistency.CConsistency.inconsistency | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 248 of file CConsistency.java.
| final IMetric org.lightjason.agentspeak.consistency.CConsistency.metric | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 213 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.m_metric.
|
static |
| p_filter | metric filter |
| p_metric | object metric |
Definition at line 284 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.CConsistency(), and org.lightjason.agentspeak.consistency.CConsistency.EAlgorithm.NUMERICAL.
Here is the call graph for this function:| final IConsistency org.lightjason.agentspeak.consistency.CConsistency.remove | ( | @Nonnull final IAgent<?> | p_object | ) |
| p_object | removing object |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 196 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.IConsistency.remove().
Here is the call graph for this function:| final DescriptiveStatistics org.lightjason.agentspeak.consistency.CConsistency.statistic | ( | ) |
Implements org.lightjason.agentspeak.consistency.IConsistency.
Definition at line 123 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.m_statistic.
| final String org.lightjason.agentspeak.consistency.CConsistency.toString | ( | ) |
Definition at line 254 of file CConsistency.java.
References org.lightjason.agentspeak.consistency.CConsistency.m_data.
|
staticprivate |
Definition at line 67 of file CConsistency.java.
|
staticprivate |
Definition at line 63 of file CConsistency.java.
|
private |
Definition at line 75 of file CConsistency.java.
|
private |
Definition at line 79 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.toString().
|
private |
Definition at line 95 of file CConsistency.java.
|
private |
Definition at line 87 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.filter().
|
private |
Definition at line 99 of file CConsistency.java.
|
private |
Definition at line 91 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.metric().
|
private |
Definition at line 83 of file CConsistency.java.
Referenced by org.lightjason.agentspeak.consistency.CConsistency.statistic().
|
staticprivate |
Definition at line 71 of file CConsistency.java.