Rev | Line | |
---|
[319] | 1 | package bargainingchips.protocol;
|
---|
| 2 |
|
---|
| 3 | import bargainingchips.actions.Offer;
|
---|
| 4 |
|
---|
| 5 | public class ValidationResult
|
---|
| 6 | {
|
---|
| 7 | boolean valid;
|
---|
| 8 | boolean hasEnded;
|
---|
| 9 | Offer outcome;
|
---|
| 10 |
|
---|
| 11 | public ValidationResult()
|
---|
| 12 | {
|
---|
| 13 | valid = false;
|
---|
| 14 | hasEnded = false;
|
---|
| 15 | outcome = null;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | public ValidationResult(boolean valid, boolean hasEnded, Offer outcome)
|
---|
| 19 | {
|
---|
| 20 | super();
|
---|
| 21 | this.valid = valid;
|
---|
| 22 | this.hasEnded = hasEnded;
|
---|
| 23 | this.outcome = outcome;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | public boolean isValid()
|
---|
| 27 | {
|
---|
| 28 | return valid;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public boolean hasEnded()
|
---|
| 32 | {
|
---|
| 33 | return hasEnded;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | public Offer getOutcome()
|
---|
| 37 | {
|
---|
| 38 | return outcome;
|
---|
| 39 | }
|
---|
| 40 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.