es.ants.felixgm.trmsim_wsn.trm.peertrust
Class Transaction

java.lang.Object
  extended by es.ants.felixgm.trmsim_wsn.trm.peertrust.Transaction

public class Transaction
extends java.lang.Object

This class models a transaction between two sensors and the corresponding satisfaction of the client who received the service

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

Constructor Summary
Transaction(Sensor client, Sensor server, Outcome outcome)
          Class Transaction constructor
 
Method Summary
 Sensor getClient()
          Returns the client who requested the service
 Satisfaction getSatisfaction()
          Returns the satisfaction of the client with the received service
 Sensor getServer()
          Returns the server who provided the service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(Sensor client,
                   Sensor server,
                   Outcome outcome)
Class Transaction constructor

Parameters:
client - The client who requested the service
server - The server who provided the service
outcome - Outcome with the satisfaction of the client with the received service
Method Detail

getClient

public Sensor getClient()
Returns the client who requested the service

Returns:
The client who requested the service

getServer

public Sensor getServer()
Returns the server who provided the service

Returns:
The server who provided the service

getSatisfaction

public Satisfaction getSatisfaction()
Returns the satisfaction of the client with the received service

Returns:
The satisfaction of the client with the received service