-
Notifications
You must be signed in to change notification settings - Fork 1
/
protocol.py
31 lines (26 loc) · 948 Bytes
/
protocol.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
protocol and performative constants
"""
NEGOTIATION_PROTOCOL = "NEGOTIATION_PROTOCOL"
BID_PROTOCOL = "BID" # Si usamos un manager
BID_ACCEPT_PERFORMATIVE = "ACCEPT"
BID_REFUSE_PERFORMATIVE = "REFUSE"
BID_OFFER_PERFORMATIVE = "OFFER"
NEGOTIATION_ACK_PERFORMATIVE = "ACK"
NEGOTIATION_END_PERFORMATIVE = "END"
# Simplified
JINN_READY = "JINN_READY"
JINN_WAITING = "JINN_SENDER_WAITING"
JINN_SENDER_WAITING = "JINN_SENDER_WAITING"
JINN_RECIVR_WAITING = "JINN_RECIVR_WAITING"
JINN_DONE = "JINN_DONE"
# Advanced
JINN_READY_TO_NEGOTIATE = "JINN_READY_TO_NEGOTIATE"
JINN_WAITING_OFFER_RESPONSE = "JINN_WAITING_OFFER_RESPONSE"
JINN_WAITING_ACCEPTANCE_RESPONSE = "JINN_WAITING_ACCEPTANCE_RESPONSE"
JINN_ACCEPTED_OFFER = "JINN_ACCEPTED_OFFER"
JINN_FINISHED_NEGOTIATION = "JINN_FINISHED_NEGOTIATION"
# Analysis
ANALYSIS_PROTOCOL = "ANALYSIS_PROTOCOL"
HISTORIC_PERFORMATIVE = "HISTORIC_PERFORMATIVE"
ACCEPTANCE_PERFORMATIVE = "ACCEPTANCE_PERFORMATIVE"