A B C D E G I J K M N O P Q R S T U V

A

acceptVotesAtomically(Booth) - Method in class jimm.evote.VoteServer
Accepts the votes from a voting booth.
address - Variable in class jimm.evote.Booth
The voting booth's identifier is its IP address.
asQuadByteArray(int) - Method in class jimm.evote.ElectionDay
Returns an int as a quad byte array.

B

BOOTH_DATABASE - Static variable in class jimm.evote.db.VSDbEnv
Name of Booth primary database.
BOOTH_STATE_INDEX - Static variable in class jimm.evote.db.VSDbEnv
Name of Booth secondary database; the key is the state.
Booth - class jimm.evote.Booth.
A voting booth.
Booth(byte[], String, String, String) - Constructor for class jimm.evote.Booth
 
BoothBinding - class jimm.evote.db.BoothBinding.
Translates Booths to and from storage format.
BoothBinding() - Constructor for class jimm.evote.db.BoothBinding
 
BoothStateKeyCreator - class jimm.evote.db.BoothStateKeyCreator.
Creates secondary booth database keys where the state is the key.
BoothStateKeyCreator() - Constructor for class jimm.evote.db.BoothStateKeyCreator
 
boothAddress - Variable in class jimm.evote.ElectionDay
 
boothAddress - Variable in class jimm.evote.Vote
Booth IP address.
boothByStateDb - Variable in class jimm.evote.db.VSDbEnv
 
boothDb - Variable in class jimm.evote.db.VSDbEnv
 

C

candidateID - Variable in class jimm.evote.Vote
Candidate ID number.
candidateParty - Variable in class jimm.evote.Vote
Identifies the candidate's party (PARTY_SILLY, etc.)
city - Variable in class jimm.evote.Booth
City name.
createBooth() - Method in class jimm.evote.ElectionDay
Creates and returns a voting booth.
createSecondaryKey(SecondaryDatabase, DatabaseEntry, DatabaseEntry, DatabaseEntry) - Method in class jimm.evote.db.BoothStateKeyCreator
 
createSecondaryKey(SecondaryDatabase, DatabaseEntry, DatabaseEntry, DatabaseEntry) - Method in class jimm.evote.db.VoteRaceKeyCreator
 
createSecondaryKey(SecondaryDatabase, DatabaseEntry, DatabaseEntry, DatabaseEntry) - Method in class jimm.evote.db.VoteRacePartyKeyCreator
 

D

dataBinding - Variable in class jimm.evote.db.BoothStateKeyCreator
 
dataBinding - Variable in class jimm.evote.db.VoteRaceKeyCreator
 
dataBinding - Variable in class jimm.evote.db.VoteRacePartyKeyCreator
 
dbEnvironment - Variable in class jimm.evote.VoteServer
Manages database housekeeping.
dbEnvironment - Variable in class jimm.evote.db.VSDbEnv
 
district - Variable in class jimm.evote.Booth
District name.

E

ElectionDay - class jimm.evote.ElectionDay.
Simulates election day voting.
ElectionDay() - Constructor for class jimm.evote.ElectionDay
 
ErrorHandler - class jimm.evote.ErrorHandler.
A simple error message handler.
ErrorHandler() - Constructor for class jimm.evote.ErrorHandler
 
elapsedTime - Variable in class jimm.evote.StopWatch
 
emptyDatabases() - Method in class jimm.evote.VoteServer
Empties the databases.
entryToObject(TupleInput) - Method in class jimm.evote.db.BoothBinding
 
entryToObject(TupleInput) - Method in class jimm.evote.db.VoteBinding
 
error(Exception) - Static method in class jimm.evote.ErrorHandler
Prints an exception's error message; does not exit.
error(Exception, boolean) - Static method in class jimm.evote.ErrorHandler
Prints an exception's error message to System.err and exits if exit is true.
error(String) - Static method in class jimm.evote.ErrorHandler
Prints msg to System.err; does not exit.
error(String, boolean) - Static method in class jimm.evote.ErrorHandler
Prints msg to System.err and exits if exit is true.
error(String, Exception) - Static method in class jimm.evote.ErrorHandler
Prints msg and an exception's error message to System.err; does not exit.
error(String, Exception, boolean) - Static method in class jimm.evote.ErrorHandler
Prints msg and an exception's error message to System.err and exits if exit is true.
error(String, OperationStatus) - Static method in class jimm.evote.ErrorHandler
Prints optional msg and printable version of status; does not exit.
error(String, OperationStatus, boolean) - Static method in class jimm.evote.ErrorHandler
Prints optional msg and printable version of status and optionally exits.

G

generateAndSendVotesTo(VoteServer) - Method in class jimm.evote.Booth
Generates simulated votes and sends them to server.
getBoothByStateDb() - Method in class jimm.evote.db.VSDbEnv
 
getBoothDb() - Method in class jimm.evote.db.VSDbEnv
 
getEnv() - Method in class jimm.evote.db.VSDbEnv
 
getProperties() - Static method in class jimm.evote.Util
 
getSomeBoothState() - Method in class jimm.evote.VoteServer
Returns a state string.
getVoteByRaceAndPartyDb() - Method in class jimm.evote.db.VSDbEnv
 
getVoteByRaceDb() - Method in class jimm.evote.db.VSDbEnv
 
getVoteDb() - Method in class jimm.evote.db.VSDbEnv
 

I

intParam(String) - Static method in class jimm.evote.Util
 

J

jimm.evote - package jimm.evote
Application classes, including the vote server and election day simulator.
jimm.evote.db - package jimm.evote.db
Environment, database, and binding classes.

K

key - Variable in class jimm.evote.Vote
Primary key.

M

main(String[]) - Static method in class jimm.evote.ElectionDay
Simulates election day voting.
main(String[]) - Static method in class jimm.evote.VoteServer
usage: VoteServer /path/to/database/directory
mark() - Method in class jimm.evote.StopWatch
Prints the current elapsed time without stopping.
mark(boolean) - Method in class jimm.evote.StopWatch
Prints the current elapsed time without stopping, along with the stop watch name if printMark is true.

N

NUM_PARTIES - Static variable in class jimm.evote.Vote
 
NUM_RACES - Static variable in class jimm.evote.Vote
 
name - Variable in class jimm.evote.StopWatch
 

O

objectToEntry(Object, TupleOutput) - Method in class jimm.evote.db.BoothBinding
 
objectToEntry(Object, TupleOutput) - Method in class jimm.evote.db.VoteBinding
 

P

PARTY_DEMOCRAT - Static variable in class jimm.evote.Vote
 
PARTY_GREEN - Static variable in class jimm.evote.Vote
 
PARTY_INDEPENDENT - Static variable in class jimm.evote.Vote
 
PARTY_LIBERTARIAN - Static variable in class jimm.evote.Vote
 
PARTY_REPUBLICAN - Static variable in class jimm.evote.Vote
 
PARTY_SILLY - Static variable in class jimm.evote.Vote
 
PROPS_FILE - Static variable in class jimm.evote.Util
 
partyToString(int) - Static method in class jimm.evote.Vote
 
pause() - Method in class jimm.evote.StopWatch
Pauses the stop watch.
printPresidentialResults() - Method in class jimm.evote.VoteServer
Prints the number of presidential race votes by party, then announces the winner.
printPresidentialVotes() - Method in class jimm.evote.VoteServer
Runs a query that prints the total number of presidential votes.
printSingleStateBoothList() - Method in class jimm.evote.VoteServer
Finds a state and prints the list of booths in that state.
printSingleStateBoothListUsingCursor(String, byte[]) - Method in class jimm.evote.VoteServer
Prints the booths in state using a cursor.
printSingleStateBoothListUsingIterator(String, byte[]) - Method in class jimm.evote.VoteServer
Prints the booths in state using a map and an iterator.
printSingleVote() - Method in class jimm.evote.VoteServer
Runs a query that uses a specific key to find a single record.
printTotalVotes() - Method in class jimm.evote.VoteServer
Print the number of votes in the vote database.
props - Static variable in class jimm.evote.Util
 
propsCache - Static variable in class jimm.evote.Util
 

Q

quadToString(byte[]) - Static method in class jimm.evote.Util
 

R

RACE_CONGRESS - Static variable in class jimm.evote.Vote
 
RACE_DOG_CATCHER - Static variable in class jimm.evote.Vote
 
RACE_GOVERNOR - Static variable in class jimm.evote.Vote
 
RACE_PRESIDENT - Static variable in class jimm.evote.Vote
 
RACE_SENATE - Static variable in class jimm.evote.Vote
 
RACE_STATE_ASSEMBLY - Static variable in class jimm.evote.Vote
 
race - Variable in class jimm.evote.Vote
Race (RACE_PRESIDENT, etc.)
raceToString(int) - Static method in class jimm.evote.Vote
 
rand - Variable in class jimm.evote.ElectionDay
 
resume() - Method in class jimm.evote.StopWatch
Resumes the stop watch.
runQueries() - Method in class jimm.evote.VoteServer
Runs a few hard-coded queries and outputs the results.

S

STATES - Static variable in class jimm.evote.Util
 
StopWatch - class jimm.evote.StopWatch.
Prints time durations; used for development purposes and foolin' around.
StopWatch() - Constructor for class jimm.evote.StopWatch
Constructor.
StopWatch(String) - Constructor for class jimm.evote.StopWatch
Constructor.
sendVotesToServer(List, VoteServer) - Method in class jimm.evote.ElectionDay
Sends votes to a vote server using multiple threads so the server gets concurrent updates.
shutDown() - Method in class jimm.evote.VoteServer
Gracefully shuts down the databases.
shutDown() - Method in class jimm.evote.db.VSDbEnv
 
simulateVoting(VoteServer) - Method in class jimm.evote.ElectionDay
Simulates election day voting.
start() - Method in class jimm.evote.StopWatch
Remembers the current time.
start(boolean) - Method in class jimm.evote.StopWatch
Remembers the current time and prints a message if requested.
state - Variable in class jimm.evote.Booth
The two-letter abbreviation of the US state this booth is in.
stop() - Method in class jimm.evote.StopWatch
Stops the stop watch and prints the current elapsed time.
stop(boolean) - Method in class jimm.evote.StopWatch
Stops the stop watch and prints the current elapsed time, along with the stop watch name if printMark is true.
storeBooth(Transaction, Booth) - Method in class jimm.evote.VoteServer
Stores booth in the booth database.
storeVote(Transaction, Vote) - Method in class jimm.evote.VoteServer
Stores vote in the vote database.
stringParam(String) - Static method in class jimm.evote.Util
 

T

t0 - Variable in class jimm.evote.StopWatch
 
toString() - Method in class jimm.evote.Booth
 
toString() - Method in class jimm.evote.Vote
 

U

Util - class jimm.evote.Util.
Utility methods.
Util() - Constructor for class jimm.evote.Util
 

V

VOTE_DATABASE - Static variable in class jimm.evote.db.VSDbEnv
Name of Vote primary database.
VOTE_RACE_AND_PARTY_INDEX - Static variable in class jimm.evote.db.VSDbEnv
Name of Vote secondary database; the key is the race id plus the party id.
VOTE_RACE_INDEX - Static variable in class jimm.evote.db.VSDbEnv
Name of Vote secondary database; the key is the race id.
VSDbEnv - class jimm.evote.db.VSDbEnv.
Handles setup and teardown of the database environment and databases.
VSDbEnv(String, boolean) - Constructor for class jimm.evote.db.VSDbEnv
 
Vote - class jimm.evote.Vote.
A vote stored by a booth.
Vote(byte[], int, int, int, int, int) - Constructor for class jimm.evote.Vote
Constructor.
VoteBinding - class jimm.evote.db.VoteBinding.
Translates Votes to and from storage format.
VoteBinding() - Constructor for class jimm.evote.db.VoteBinding
 
VoteRaceKeyCreator - class jimm.evote.db.VoteRaceKeyCreator.
Creates secondary vote database keys where the race is the key.
VoteRaceKeyCreator() - Constructor for class jimm.evote.db.VoteRaceKeyCreator
 
VoteRacePartyKeyCreator - class jimm.evote.db.VoteRacePartyKeyCreator.
Creates secondary vote database keys where the key = race + party.
VoteRacePartyKeyCreator() - Constructor for class jimm.evote.db.VoteRacePartyKeyCreator
 
VoteServer - class jimm.evote.VoteServer.
Stores Votes that come from Booths and runs a few hard-coded queries.
VoteServer(String) - Constructor for class jimm.evote.VoteServer
Opens the databases read-write.
VoteServer(String, boolean) - Constructor for class jimm.evote.VoteServer
Opens the databases.
voteBlockId - Variable in class jimm.evote.Vote
Used to group votes by a single person together.
voteByRaceAndPartyDb - Variable in class jimm.evote.db.VSDbEnv
 
voteByRaceDb - Variable in class jimm.evote.db.VSDbEnv
 
voteDb - Variable in class jimm.evote.db.VSDbEnv
 
voteNum - Variable in class jimm.evote.Vote
This vote's sequence number, assigned to it by a voting booth.
votes - Variable in class jimm.evote.Booth
Votes.

A B C D E G I J K M N O P Q R S T U V

Copyright (c) 2004 by Jim Menard jimm@io.com