es.ants.felixgm.trmsim_wsn.satisfaction
Class SatisfactionDiscreteScale

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

public class SatisfactionDiscreteScale
extends SatisfactionInterval

This class models the representation of the satisfaction of a client with a received service through a discrete scale of values

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

Constructor Summary
SatisfactionDiscreteScale(double initialValue, double step, int numSteps, double value)
          Class SatisfactionDiscreteScale constructor
 
Method Summary
 
Methods inherited from class es.ants.felixgm.trmsim_wsn.satisfaction.SatisfactionInterval
aggregate, getMax, getMin, getSatisfactionValue, isSatisfied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SatisfactionDiscreteScale

public SatisfactionDiscreteScale(double initialValue,
                                 double step,
                                 int numSteps,
                                 double value)
                          throws java.lang.Exception
Class SatisfactionDiscreteScale constructor

Parameters:
initialValue - First (lower) allowed value of the scale
step - Gap size between every two consecutive allowed values
numSteps - Number of allowed values
value - Actual satisfaction value
Throws:
java.lang.Exception - If the given value does not correspond to any allowed value