source: src/main/java/negotiator/boaframework/offeringstrategy/anac2013/inoxAgent/SaveHelper.java

Last change on this file was 127, checked in by Wouter Pasman, 6 years ago

#41 ROLL BACK of rev.126 . So this version is equal to rev. 125

File size: 884 bytes
Line 
1package negotiator.boaframework.offeringstrategy.anac2013.inoxAgent;
2
3import java.io.Serializable;
4
5/**
6 * Simple help class to facilitate saving and loading.
7 *
8 * @author Ruben van Zessen, Mariana Branco
9 *
10 */
11public class SaveHelper implements Serializable{
12
13 private static final long serialVersionUID = -2510382202061071011L;
14 /** Result of negotiations */
15 private double result;
16 /** Number of previous negotiations */
17 private int number;
18
19 /**
20 * Constructor, sets the result and number of previous negotiations.
21 */
22 public SaveHelper(double res, int num) {
23 result = res;
24 number = num;
25 }
26
27 /**
28 * Function that returns the stored result.
29 */
30 public double getResult() {
31 return result;
32 }
33
34 /**
35 * Function that returns the stored number of previous negotiations.
36 */
37 public int getNumber() {
38 return number;
39 }
40}
Note: See TracBrowser for help on using the repository browser.