24 package org.lightjason.agentspeak.language.fuzzy.operator.bool;
31 import javax.annotation.Nonnull;
32 import java.util.Arrays;
33 import java.util.Collections;
35 import java.util.function.BiConsumer;
36 import java.util.function.BinaryOperator;
37 import java.util.function.Function;
38 import java.util.function.Supplier;
48 public final Supplier<IFuzzyValueMutable<Boolean>>
supplier()
56 return ( i, j ) -> i.fuzzy( Math.max( i.fuzzy(), j.fuzzy() ) ).value( i.value() || j.value() );
60 public final BinaryOperator<IFuzzyValueMutable<Boolean>>
combiner()
62 return ( i, j ) -> i.fuzzy( Math.max( i.fuzzy(), j.fuzzy() ) ).value( i.value() || j.value() );
74 return Collections.emptySet();
80 @SuppressWarnings(
"varargs" )
83 return Arrays.stream( p_values ).collect(
this );
interface for a mutable fuzzy value
final Function< IFuzzyValueMutable< Boolean >, IFuzzyValue< Boolean > > finisher()
final Supplier< IFuzzyValueMutable< Boolean > > supplier()
fuzzy-boolean disjunction / union
final BinaryOperator< IFuzzyValueMutable< Boolean > > combiner()
final Set< Characteristics > characteristics()
result for an immutable fuzzy value
static< N > IFuzzyValueMutable< N > from( @Nonnull final N p_value)
factory
final BiConsumer< IFuzzyValueMutable< Boolean >, IFuzzyValue< Boolean > > accumulator()
IFuzzyValue< T > immutable()
returns an immutable instance of the object
static IFuzzyValueMutable< Boolean > factory()
factory of the initialize value
final IFuzzyValue< Boolean > result( @Nonnull final IFuzzyValue< Boolean >... p_values)