|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectConsole
public class Console
The administration console class - manages a list of PIN numbers that are authorized to vote. The idea is that a poll worker would have this, and would communicate valid PIN numbers to voters. PINs are validated over the network (at the moment, using a simple unencrypted protocol). When a PIN is validated, it is thrown out of the list and replaced. Any of the PINs in the list are acceptable, to deal with voters using PINs out of turn.
Field Summary | |
---|---|
static int |
CONSOLE_PORT
What port we listen to for connections |
static int |
HOW_MANY_PINS
How many PINs are valid at once |
Constructor Summary | |
---|---|
Console()
|
Method Summary | |
---|---|
static java.lang.String |
intListString(java.util.List intlist)
Returns the string representation of a List |
static void |
main(java.lang.String[] args)
Main method. |
static java.lang.Integer |
nextPIN()
Get the next PIN |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONSOLE_PORT
public static final int HOW_MANY_PINS
Constructor Detail |
---|
public Console()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.lang.Integer nextPIN()
public static java.lang.String intListString(java.util.List intlist)
intlist
- A List of Integers
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |