|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDoubtSignal
public final class DoubtSignal
A signal of doubt extending from one voter (source) to another (destination).
TrustEdge,
Serialized Form| Nested Class Summary | |
|---|---|
(package private) static class |
DoubtSignal.Key
A unique identifier for a particular signal. |
static class |
DoubtSignal.Table
A relational store of doubt signals, backing an electoral register's doubt signaling network. |
| Field Summary | |
|---|---|
(package private) static short |
DOUBT_DESTINATIONS_MAX
Limiting the number of doubt destinations, in order to prevent a DoS attack. |
| Constructor Summary | |
|---|---|
DoubtSignal(String voter0Email,
String voter1Email)
Creates a DoubtSignal with default values. |
|
DoubtSignal(String voter0Email,
String voter1Email,
String reason)
Constructs an existing DoubtSignal. |
|
| Method Summary | |
|---|---|
boolean |
commit(DoubtSignal.Table table,
ElectoralSubserver.UserSession session)
Writes this signal to the table, if it has uncommitted changes. |
int |
compareTo(DoubtSignal other)
Compares based on voter1Email (first) and voter0Email (second). |
boolean |
equals(Object o)
Returns true iff the o is a doubt signal, and all of its key fields are "equal" to this signal's key fields. |
String |
getReason()
An explanation of the reason for the doubt signal. |
DoubtSignal.Key |
key()
The unique identifier of this signal. |
void |
setReason(String newReason)
|
String |
toString()
Returns a description of the signal, including the values of its unique key. |
String |
voter0Email()
Identifies the source voter. |
String |
voter1Email()
Identifies the destination voter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final short DOUBT_DESTINATIONS_MAX
| Constructor Detail |
|---|
public DoubtSignal(String voter0Email,
String voter1Email)
voter0Email - per voter0Email()voter1Email - per voter1Email()
DoubtSignal(String voter0Email,
String voter1Email,
String reason)
voter0Email - per voter0Email()voter1Email - per voter1Email()reason - per getReason()| Method Detail |
|---|
public boolean commit(DoubtSignal.Table table,
ElectoralSubserver.UserSession session)
throws SQLException,
VoterInputTable.BadInputException
SQLException
VoterInputTable.BadInputExceptionpublic String getReason()
setReason(String)public void setReason(String newReason)
getReason()public final DoubtSignal.Key key()
public String voter0Email()
public String voter1Email()
public int compareTo(DoubtSignal other)
compareTo in interface Comparable<DoubtSignal>public boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||