|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.satisfaction.SatisfactionInterval
public class SatisfactionInterval
This class models the representation of the satisfaction of a client with a received service, through an interval of real numbers
| Constructor Summary | |
|---|---|
SatisfactionInterval(double min,
double max,
double value)
Class SatisfactionInterval constructor |
|
| Method Summary | |
|---|---|
Satisfaction |
aggregate(Satisfaction satisfaction)
This method aggregates this satisfaction with the given one |
double |
getMax()
This method returns the upper bound of the interval |
double |
getMin()
This method returns the lower bound of the interval |
double |
getSatisfactionValue()
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 |
| Constructor Detail |
|---|
public SatisfactionInterval(double min,
double max,
double value)
min - Lower bound of the intervalmax - Upper bound of the intervalvalue - Actual satisfaction value| Method Detail |
|---|
public double getSatisfactionValue()
public double getMin()
public double getMax()
public boolean isSatisfied()
Satisfaction
isSatisfied in interface Satisfactionpublic Satisfaction aggregate(Satisfaction satisfaction)
Satisfaction
aggregate in interface Satisfactionsatisfaction - Satisfaction to be aggregated with this satisfaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||