Line | |
---|
1 | package geniusweb.protocol.tournament;
|
---|
2 |
|
---|
3 | import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
---|
4 | import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
|
---|
5 | import com.fasterxml.jackson.annotation.JsonSubTypes;
|
---|
6 | import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
|
---|
7 |
|
---|
8 | import geniusweb.protocol.NegoState;
|
---|
9 | import geniusweb.protocol.tournament.allpermutations.AllPermutationsState;
|
---|
10 | import geniusweb.protocol.tournament.allpermutationslearn.AllPermutationsLearnState;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * The current state of the tournament. Must be implement Json serialization so
|
---|
14 | * that it can be used to log the state. State must contain all information to
|
---|
15 | * determine the relevant info of the negotiation. It may also be used to
|
---|
16 | * restart the nego if a crash occurs.
|
---|
17 | */
|
---|
18 | @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
|
---|
19 | @JsonSubTypes({ @Type(value = AllPermutationsState.class),
|
---|
20 | @Type(value = AllPermutationsLearnState.class) })
|
---|
21 | public interface TournamentState extends NegoState {
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.