es.ants.felixgm.trmsim_wsn.satisfaction
Class SatisfactionFuzzy

java.lang.Object
  extended by es.ants.felixgm.trmsim_wsn.satisfaction.SatisfactionFuzzy
All Implemented Interfaces:
Satisfaction

public class SatisfactionFuzzy
extends java.lang.Object
implements Satisfaction

This class models a representation of the satisfaction of a client with a received service through the use of fuzzy sets

Since:
0.2
Version:
0.4
Author:
Félix Gómez Mármol, Gregorio Martínez Pérez

Field Summary
protected  Variable satisfaction
          Fuzzy set representing the satisfaction of a client
protected  java.lang.String satisfactionLinguisticTerm
          Linguistic term associated with the fuzzy set representing the satisfaction of a client
 
Constructor Summary
SatisfactionFuzzy(Variable satisfaction)
          Class SatisfactionFuzzy constructor
 
Method Summary
 Satisfaction aggregate(Satisfaction satisfaction)
          This method aggregates this satisfaction with the given one
 Variable getSaitsfaction()
          This method return the fuzzy set representing the satisfaction of a client
 java.lang.String getSatisfactionLinguisticTerm()
          This method returns the linguistic term associated with the fuzzy set representing the satisfaction of a client
 double getSatisfactionValue()
          This method returns the actual satisfaction value
 boolean isSatisfied()
          This method indicates if this Satisfaction object represents a satisfactory or unsatisfactory transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

satisfaction

protected Variable satisfaction
Fuzzy set representing the satisfaction of a client


satisfactionLinguisticTerm

protected java.lang.String satisfactionLinguisticTerm
Linguistic term associated with the fuzzy set representing the satisfaction of a client

Constructor Detail

SatisfactionFuzzy

public SatisfactionFuzzy(Variable satisfaction)
Class SatisfactionFuzzy constructor

Parameters:
satisfaction - Fuzzy set representing the satisfaction of a client
Method Detail

getSatisfactionValue

public double getSatisfactionValue()
This method returns the actual satisfaction value

Returns:
The actual satisfaction value

getSaitsfaction

public Variable getSaitsfaction()
This method return the fuzzy set representing the satisfaction of a client

Returns:
The fuzzy set representing the satisfaction of a client

getSatisfactionLinguisticTerm

public java.lang.String getSatisfactionLinguisticTerm()
This method returns the linguistic term associated with the fuzzy set representing the satisfaction of a client

Returns:
The linguistic term associated with the fuzzy set representing the satisfaction of a client

isSatisfied

public boolean isSatisfied()
Description copied from interface: Satisfaction
This method indicates if this Satisfaction object represents a satisfactory or unsatisfactory transaction

Specified by:
isSatisfied in interface Satisfaction
Returns:
true if this Satisfaction object represents a satisfactory transaction, false otherwise

aggregate

public Satisfaction aggregate(Satisfaction satisfaction)
Description copied from interface: Satisfaction
This method aggregates this satisfaction with the given one

Specified by:
aggregate in interface Satisfaction
Parameters:
satisfaction - Satisfaction to be aggregated with this satisfaction
Returns:
The aggregation of this satisfaction with the given one