public class MasterSuggestionGenerator extends Object implements Acceptor.SuggestionGenerator
Acceptor.SuggestionGenerator.Ranking| Constructor and Description |
|---|
MasterSuggestionGenerator(RepNode repNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceMaster(boolean force)
This entry point is for testing only.
|
Protocol.Value |
get(Proposer.Proposal proposal)
Used to generate a suggested value for use by a Proposer.
|
Acceptor.SuggestionGenerator.Ranking |
getRanking(Proposer.Proposal proposal)
The importance associated with the above suggestion.
|
public MasterSuggestionGenerator(RepNode repNode)
public Protocol.Value get(Proposer.Proposal proposal)
Acceptor.SuggestionGeneratorget in interface Acceptor.SuggestionGeneratorproposal - the Proposal for which the value is being suggested.public Acceptor.SuggestionGenerator.Ranking getRanking(Proposer.Proposal proposal)
Acceptor.SuggestionGeneratorgetRanking in interface Acceptor.SuggestionGeneratorproposal - the proposal associated with the rankingpublic void forceMaster(boolean force)
force - determines whether the forced proposal is in effectCopyright © 2024. All rights reserved.