LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T > Class Template Reference

mutable fuzzy boolean More...

+ Inheritance diagram for org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >:
+ Collaboration diagram for org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >:

Public Member Functions

 CFuzzyValueMutable ( @Nonnull final T p_value)
 ctor More...
 
 CFuzzyValueMutable ( @Nonnull final IFuzzyValue< T > p_value)
 ctor More...
 
 CFuzzyValueMutable ( @Nonnull final T p_value, final double p_fuzzy)
 ctor More...
 
final IFuzzyValueMutable< T > fuzzy (final double p_value)
 sets the weight More...
 
final double fuzzy ()
 returns the fuzziness More...
 
final IFuzzyValue< T > immutable ()
 returns an immutable instance of the object More...
 
final T throwvaluenotassignableto ( @Nonnull final Class<?>... p_class) throws IllegalArgumentException
 throws an illegal argument exception iif the value is not assignable to the class More...
 
final IFuzzyValueMutable< T > value ( @Nullable final T p_value)
 
final T value ()
 returns the result More...
 
final boolean valueassignableto ( @Nonnull final Class<?>... p_class)
 checkes assignable of the value More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.language.fuzzy.IFuzzyValueMutable< T >
IFuzzyValueMutable< T > value (final T p_value)
 sets the fuzzy value More...
 

Static Public Member Functions

static< N > IFuzzyValueMutable< N > from ( @Nonnull final N p_value)
 factory More...
 
static< N > IFuzzyValueMutable< N > from ( @Nonnull final N p_value, final double p_fuzzy)
 factory More...
 

Private Attributes

double m_fuzzy
 fuzzy value More...
 
m_value
 value More...
 

Detailed Description

Definition at line 38 of file CFuzzyValueMutable.java.

Constructor & Destructor Documentation

◆ CFuzzyValueMutable() [1/3]

Parameters
p_valuevalue

Definition at line 54 of file CFuzzyValueMutable.java.

◆ CFuzzyValueMutable() [2/3]

Parameters
p_valuefuzzy value

Definition at line 64 of file CFuzzyValueMutable.java.

◆ CFuzzyValueMutable() [3/3]

org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.CFuzzyValueMutable ( @Nonnull final T  p_value,
final double  p_fuzzy 
)
Parameters
p_valuevalue
p_fuzzyfuzzy value

Definition at line 76 of file CFuzzyValueMutable.java.

References org.lightjason.agentspeak.common.CCommon.languagestring().

+ Here is the call graph for this function:

Member Function Documentation

◆ from() [1/2]

static <N> IFuzzyValueMutable<N> org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.from ( @Nonnull final N  p_value)
static
Parameters
p_valuevalue
Returns
fuzzy value
Template Parameters
Nfuzzy type

Definition at line 148 of file CFuzzyValueMutable.java.

Referenced by org.lightjason.agentspeak.language.fuzzy.operator.bool.CIntersection.factory(), org.lightjason.agentspeak.language.fuzzy.operator.bool.CUnion.factory(), and org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.immutable().

+ Here is the caller graph for this function:

◆ from() [2/2]

static <N> IFuzzyValueMutable<N> org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.from ( @Nonnull final N  p_value,
final double  p_fuzzy 
)
static
Parameters
p_valuevalue
p_fuzzyfuzzy value
Returns
fuzzy value
Template Parameters
Nfuzzy type

Definition at line 163 of file CFuzzyValueMutable.java.

◆ fuzzy() [1/2]

Parameters
p_valueweight
Returns
self reference

Implements org.lightjason.agentspeak.language.fuzzy.IFuzzyValueMutable< T >.

Definition at line 95 of file CFuzzyValueMutable.java.

References org.lightjason.agentspeak.common.CCommon.languagestring().

+ Here is the call graph for this function:

◆ fuzzy() [2/2]

◆ immutable()

Returns
immutable instance

Implements org.lightjason.agentspeak.language.fuzzy.IFuzzyValueMutable< T >.

Definition at line 105 of file CFuzzyValueMutable.java.

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

+ Here is the call graph for this function:

◆ throwvaluenotassignableto()

final T org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.throwvaluenotassignableto ( @Nonnull final Class<?>...  p_class) throws IllegalArgumentException
Parameters
p_classassignable class
Returns
object itself
Exceptions
IllegalArgumentExceptionon assignable error

Implements org.lightjason.agentspeak.language.IAssignable< T >.

Definition at line 131 of file CFuzzyValueMutable.java.

References org.lightjason.agentspeak.common.CCommon.languagestring(), org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.m_value, and org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.valueassignableto().

+ Here is the call graph for this function:

◆ value() [1/2]

final IFuzzyValueMutable<T> org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.value ( @Nullable final T  p_value)

Definition at line 87 of file CFuzzyValueMutable.java.

◆ value() [2/2]

◆ valueassignableto()

final boolean org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.valueassignableto ( @Nonnull final Class<?>...  p_class)
Parameters
p_classclass
Returns
assignable (on null always true)

Implements org.lightjason.agentspeak.language.IAssignable< T >.

Definition at line 124 of file CFuzzyValueMutable.java.

Referenced by org.lightjason.agentspeak.language.fuzzy.CFuzzyValueMutable< T >.throwvaluenotassignableto().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_fuzzy

◆ m_value