Last change
on this file since 465 was 404, checked in by wouter, 2 years ago |
#122 refactoring, creating separate packages for java core and jackson-translator (jackson-t)
|
File size:
766 bytes
|
Line | |
---|
1 | package testcode.actions;
|
---|
2 |
|
---|
3 | import com.fasterxml.jackson.annotation.JsonSubTypes;
|
---|
4 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
---|
5 | import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
|
---|
6 | import com.fasterxml.jackson.annotation.JsonTypeInfo.Id;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * An action represents a "promise" made by a participant in the negotiation. It
|
---|
10 | * can not be retracted and is immutable. But it can be followed by other
|
---|
11 | * actions that override it or make it outdated.
|
---|
12 | */
|
---|
13 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.WRAPPER_OBJECT)
|
---|
14 | @JsonSubTypes({ @JsonSubTypes.Type(value = EndNegotiation.class),
|
---|
15 | @JsonSubTypes.Type(value = Accept.class) })
|
---|
16 | public interface Action {
|
---|
17 | /**
|
---|
18 | *
|
---|
19 | * @return the {@link Id} of the actor of this action.
|
---|
20 | */
|
---|
21 | PartyId getActor();
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.