final class DifferenceShadows extends Object
DifferenceShadowsV| Constructor and Description |
|---|
DifferenceShadows(CountJS _count,
CountNodeJS _anchor,
ShadowedDiff[] _voterDiffBoard,
JsArray<CountNodeJS> _peers,
ShadowedDiff[] _peerDiffBoard,
CountNodeJS _candidate,
ShadowedDiff _candidateDiff,
TheatrePage referrer)
Constructs an instance of DifferenceShadows that co-exists permanently with the
stage.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) CountNodeJS |
anchor()
The count node of the anchoring author complete with voters.
|
(package private) CountNodeJS |
candidate()
The count node of the anchor's candidate complete with her voters, or null if there is no candidate.
|
(package private) ShadowedDiff |
candidateDiff()
Returns the difference between the anchor's position draft and the candidate's; or
null if there is no candidate, or the difference is unknown.
|
(package private) CountJS |
count()
The overall count for the anchor and other count nodes.
|
(package private) ShadowedDiff |
diffFor(DiffLook d1)
Returns the shadowed version of the specified difference, or null if there is
none.
|
(package private) ShadowedDiff |
diffFor(String personName,
String pollName)
Returns the shadowed difference for the specified person and poll, or null if
there is none.
|
(package private) ShadowedDiff |
peerDiff(int n)
Returns the difference between the position drafts of the anchor and her peer at
the specified index; or null if there is no such peer, or the difference is
unknown.
|
(package private) JsArray<CountNodeJS> |
peers()
A sparse array of the anchor's dart sectored peers.
|
(package private) void |
run(LightableDifference.Runner<ShadowedDiff> runner)
Passes all shadowed differences through the specified runner.
|
(package private) void |
setReferrer(TheatrePage referrer)
Stages and lights the HTTP referrer's difference, if it is shadowed.
|
(package private) ShadowedDiff |
voterDiff(int n)
Returns the difference between the anchor's position draft and the voter's at the
specified index; or null if there is no such voter, or the difference is unknown.
|
DifferenceShadows(CountJS _count, CountNodeJS _anchor, ShadowedDiff[] _voterDiffBoard, JsArray<CountNodeJS> _peers, ShadowedDiff[] _peerDiffBoard, CountNodeJS _candidate, ShadowedDiff _candidateDiff, TheatrePage referrer)
_voterDiffBoard - a sparse array of length 20 containing the differences
between the anchor and her voters._peerDiffBoard - a sparse array of length 20 containing the differences
between the anchor and her peers.count(),
anchor(),
peers(),
candidate(),
candidateDiff()CountNodeJS anchor()
CountNodeJS candidate()
ShadowedDiff candidateDiff()
ShadowedDiff diffFor(DiffLook d1)
ShadowedDiff diffFor(String personName, String pollName)
JsArray<CountNodeJS> peers()
ShadowedDiff peerDiff(int n)
n - the dart sector
of the peer less one, from zero (inclusive) to 20 (non-inclusive).void run(LightableDifference.Runner<ShadowedDiff> runner)
@Warning(value="init call") final void setReferrer(TheatrePage referrer)
ShadowedDiff voterDiff(int n)
n - the dart sector
of the voter less one, from zero (inclusive) to 20 (non-inclusive).