01: /*
02: This file is part of the PolePosition database benchmark
03: http://www.polepos.org
04:
05: This program is free software; you can redistribute it and/or
06: modify it under the terms of the GNU General Public License
07: as published by the Free Software Foundation; either version 2
08: of the License, or (at your option) any later version.
09:
10: This program is distributed in the hope that it will be useful,
11: but WITHOUT ANY WARRANTY; without even the implied warranty of
12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: GNU General Public License for more details.
14:
15: You should have received a copy of the GNU General Public
16: License along with this program; if not, write to the Free
17: Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18: MA 02111-1307, USA. */
19:
20: package org.polepos.framework;
21:
22: /**
23: * a result for a lap that holds the name and the time.
24: */
25: public class Result {
26:
27: private final Circuit mCircuit;
28:
29: private final Team mTeam;
30:
31: private final TurnSetup mSetup;
32:
33: private final int mIndex;
34:
35: private final Lap mLap;
36:
37: private final long mTime;
38:
39: private final long mCheckSum;
40:
41: public Result(Circuit circuit, Team team, Lap lap, TurnSetup setup,
42: int index, long time, long checkSum) {
43: mCircuit = circuit;
44: mTeam = team;
45: mLap = lap;
46: mSetup = setup;
47: mIndex = index;
48: mTime = time;
49: mCheckSum = checkSum;
50: }
51:
52: public String getName() {
53: return mLap.name();
54: }
55:
56: public long getTime() {
57: return mTime;
58: }
59:
60: public TurnSetup getSetup() {
61: return mSetup;
62: }
63:
64: public int getIndex() {
65: return mIndex;
66: }
67:
68: public Circuit getCircuit() {
69: return mCircuit;
70: }
71:
72: public Lap getLap() {
73: return mLap;
74: }
75:
76: public long getCheckSum() {
77: return mCheckSum;
78: }
79:
80: public Team getTeam() {
81: return mTeam;
82: }
83:
84: }
|