E
- Type of the decided Objectpublic class Consensus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
batchSize |
TOMMessage |
firstMessageProposed |
Constructor and Description |
---|
Consensus(int eid)
Creates a new instance of Consensus
|
Modifier and Type | Method and Description |
---|---|
void |
decided(Round round) |
byte[] |
getDecision()
Sets the decided value
|
Round |
getDecisionRound() |
TOMMessage[] |
getDeserializedDecision() |
int |
getId()
The Execution ID for this consensus
|
public TOMMessage firstMessageProposed
public int batchSize
public Consensus(int eid)
proposer
- The proposer role of PaW algorithmeid
- The execution ID for this consensusstartTime
- The consensus start timepublic void decided(Round round)
public Round getDecisionRound()
public byte[] getDecision()
public TOMMessage[] getDeserializedDecision()
public int getId()