public final class VoteCastingContext extends Object
Constructor and Description |
---|
VoteCastingContext(boolean _isRealCount,
TraceNodeW _voterTraceNode,
Set<String> _voterDivisions)
Constructs a VoteCastingContext.
|
Modifier and Type | Method and Description |
---|---|
String |
getBar()
Describes the bar against the voter, if any has been set.
|
boolean |
isRealCount()
Answers whether eligibility is being determined for the purpose of a real poll
count, or merely in order to echo a change in the voter interface.
|
void |
setBar(String newBar)
Sets a bar against the voter.
|
Set<String> |
voterDivisions()
The set of divisions of which the voter is a registered member, as determined from
the latest trace of the trust network, if any.
|
TraceNode |
voterTraceNode()
The voter's node from the latest trace of the trust network, if any.
|
VoteCastingContext(boolean _isRealCount, TraceNodeW _voterTraceNode, Set<String> _voterDivisions)
IllegalStateException
- if isRealCount is true and voterTraceNode is nullpublic String getBar()
setBar(String)
,
CountNodeW.getBar()
public boolean isRealCount()
public Set<String> voterDivisions()
Registration.divisions()
public TraceNode voterTraceNode()