|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.ants.felixgm.trmsim_wsn.network.Service
es.ants.felixgm.trmsim_wsn.trm.lftm.LFTM_Service
public class LFTM_Service
This class models a service offered in a P2P, Ad-hoc or Wireless Sensor Network,
or even an agent in a multi-agent system.
Its several attributes (price, quality, deliveryTime, etc.) are defined through
fuzzy sets (Variables)
| Field Summary | |
|---|---|
protected Variable |
cost
Service's cost fuzzy set |
protected Variable |
delivery
Service's delivery time fuzzy set |
protected FuzzyRuleSet |
frsCost
Fuzzy rules set used to compare the cost of two services |
protected FuzzyRuleSet |
frsDelivery
Fuzzy rules set used to compare the delivery time of two services |
protected FuzzyRuleSet |
frsPrice
Fuzzy rules set used to compare the price of two services |
protected FuzzyRuleSet |
frsQuality
Fuzzy rules set used to compare the quality of two services |
protected Variable |
price
Service's price fuzzy set |
protected Variable |
quality
Service's quality fuzzy set |
protected double |
U_MAX
Universe MAX. |
protected double |
U_MIN
Universe MIN. |
| Fields inherited from class es.ants.felixgm.trmsim_wsn.network.Service |
|---|
id |
| Constructor Summary | |
|---|---|
LFTM_Service(Service service,
java.util.Collection<LinguisticTerm> linguisticTerms,
java.lang.String fuzzyPrice,
java.lang.String fuzzyCost,
java.lang.String fuzzyDelivery,
java.lang.String fuzzyQuality)
Class LFTM_Service constructor |
|
LFTM_Service(java.lang.String id,
Variable price,
Variable cost,
Variable delivery,
Variable quality)
Class LFTM_Service constructor |
|
| Method Summary | |
|---|---|
Service |
clone()
This method creates and returns a copy of this service |
Variable |
compareTo(LFTM_Service service,
double prizeWeight,
double costWeight,
double deliveryWeight,
double qualityWeight)
This method compares two services, by comparing their attributes and returns a fuzzy set representing such comparison. |
Variable |
get_cost()
This method returns the service's cost fuzzy set |
Variable |
get_delivery()
This method returns the service's delivery time fuzzy set |
Variable |
get_price()
This method returns the service's price fuzzy set |
Variable |
get_quality()
This method returns the service's quality fuzzy set |
| Methods inherited from class es.ants.felixgm.trmsim_wsn.network.Service |
|---|
equals, id, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final double U_MIN
protected final double U_MAX
protected Variable price
protected FuzzyRuleSet frsPrice
protected Variable cost
protected FuzzyRuleSet frsCost
protected Variable delivery
protected FuzzyRuleSet frsDelivery
protected Variable quality
protected FuzzyRuleSet frsQuality
| Constructor Detail |
|---|
public LFTM_Service(Service service,
java.util.Collection<LinguisticTerm> linguisticTerms,
java.lang.String fuzzyPrice,
java.lang.String fuzzyCost,
java.lang.String fuzzyDelivery,
java.lang.String fuzzyQuality)
service - Service to "fuzzify"linguisticTerms - Set of linguistic terms applied in the fuzzy sets representing this service attributes (price, quality, etc.)fuzzyPrice - Price fuzzy value ("Very High", "High", etc.)fuzzyCost - Cost fuzzy value ("Very High", "High", etc.)fuzzyDelivery - Delivery time fuzzy value ("Very High", "High", etc.)fuzzyQuality - Quality fuzzy value ("Very High", "High", etc.)
public LFTM_Service(java.lang.String id,
Variable price,
Variable cost,
Variable delivery,
Variable quality)
id - Services's identifierprice - Fuzzy set representing the price of this servicecost - Fuzzy set representing the cost of this servicedelivery - Fuzzy set representing the delivery time of this servicequality - Fuzzy set representing the quality of this service| Method Detail |
|---|
public Variable compareTo(LFTM_Service service,
double prizeWeight,
double costWeight,
double deliveryWeight,
double qualityWeight)
service - Service to be compared with this serviceprizeWeight - Price weightcostWeight - Cost weightdeliveryWeight - Delivery time weightqualityWeight - Quality weight
public Service clone()
Service
clone in class Servicepublic Variable get_price()
public Variable get_cost()
public Variable get_delivery()
public Variable get_quality()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||