Class VotersMap

All Implemented Interfaces:
Serializable, Cloneable, Iterable<ArrayList<Utils.VotePair>>, Collection<ArrayList<Utils.VotePair>>, List<ArrayList<Utils.VotePair>>, RandomAccess, SequencedCollection<ArrayList<Utils.VotePair>>

public class VotersMap extends ArrayList<ArrayList<Utils.VotePair>>
Class that represents/handle the voters map.
See Also:
  • Constructor Details

    • VotersMap

      public VotersMap()
      VotersMap constructor.
  • Method Details

    • insert

      public void insert(int e, int i, akka.actor.ActorRef actorRef, Utils.Vote vote)
      Insert a vote in the map.
      Parameters:
      e - the epoch
      i - the index
      actorRef - the actor reference
      vote - the vote
    • setDecision

      public void setDecision(Utils.Decision d, int e, int i)
      Set the decision for a specific epoch and index.
      Parameters:
      d - the decision
      e - the epoch
      i - the index