source: events/src/main/java/geniusweb/actions/Action.java@ 14

Last change on this file since 14 was 10, checked in by bart, 5 years ago

Update 28 jan 2020

File size: 912 bytes
Line 
1package geniusweb.actions;
2
3import com.fasterxml.jackson.annotation.JsonSubTypes;
4import com.fasterxml.jackson.annotation.JsonTypeInfo;
5import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
6import 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 = Offer.class),
16 @JsonSubTypes.Type(value = Accept.class),
17 @JsonSubTypes.Type(value = Comparison.class),
18 @JsonSubTypes.Type(value = ElicitComparison.class) })
19public interface Action {
20 /**
21 *
22 * @return the {@link Id} of the actor of this action.
23 */
24 PartyId getActor();
25
26}
Note: See TracBrowser for help on using the repository browser.