|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCount
@ThreadSafe public final class Count
The tallied results of an election.
| Constructor Summary | |
|---|---|
Count(ReadyDirectory readyDirectory,
CountNode.Table.RankedCumulate rankedCumulate)
Constructs a Count. |
|
| Method Summary | |
|---|---|
long |
candidateCount()
The number of nodes with a receive count of 1 or higher. |
CountNode.Table |
countNodeTable()
The relational store of count nodes that (in part) backs this count. |
long |
holdCount()
The total hold count for all nodes. |
(package private) void |
init(CountNode.Table countNodeTable)
|
long |
nodeCount()
The number of recorded nodes, corresponding to rows in the node table. |
long |
rankCount()
The total number of ranks. |
(package private) static Count |
readObjectFromMountedCountFile(ReadyDirectory readyDirectory)
|
ReadyDirectory |
readyDirectory()
The file part of the backing for this count. |
long |
singleCastCount()
The total number of votes cast. |
(package private) void |
writeObjectToMountedCountFile()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Count(ReadyDirectory readyDirectory,
CountNode.Table.RankedCumulate rankedCumulate)
readyDirectory - per readyDirectory()| Method Detail |
|---|
static Count readObjectFromMountedCountFile(ReadyDirectory readyDirectory)
throws IOException
IOExceptionwriteObjectToMountedCountFile()
void writeObjectToMountedCountFile()
throws IOException
IOExceptionreadObjectFromMountedCountFile(ReadyDirectory)@ThreadRestricted(value="constructor") void init(CountNode.Table countNodeTable)
countNodeTable()public long candidateCount()
CountNode.receiveCount()public CountNode.Table countNodeTable()
Election.countDatabase(),
init(CountNode.Table)public long holdCount()
CountNode.holdCount()public long nodeCount()
CountNodepublic long rankCount()
CountNode.getRank()public ReadyDirectory readyDirectory()
public long singleCastCount()
CountNode.singleCastCount()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||