|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sos.koa.AuditLog
This class is used to store all the information needed to generate the 'Verwerkingsverslag' report. In addition it is also used to store information needed for the 'Resultaat van de stemming' report.
Class Specifications |
invariant votingNrOfRegisteredVoters >= importVotesNrOfVotes; invariant votingNrOfRegisteredVoters >= decryptNrOfVotes; invariant votingNrOfRegisteredVoters >= countNrOfVotes; invariant votingNrOfRegisteredVoters >= 0; invariant kiesKringen.owner == this; invariant importCandidatesNrOfLists >= 0; invariant importCandidatesNrOfCandidates >= 0; invariant importCandidatesNrOfBlanco >= 0; invariant importVotesSuccess ==> importCandidatesSuccess; invariant importVotesNrOfKieskringen >= 0; invariant importVotesNrOfVotes >= decryptNrOfVotes; invariant importVotesNrOfVotes >= countNrOfVotes; invariant importVotesNrOfVotes >= 0; invariant importPrivKeySuccess ==> importCandidatesSuccess; invariant importPrivKeySuccess ==> importVotesSuccess; invariant importPubKeySuccess ==> importCandidatesSuccess; invariant importPubKeySuccess ==> importVotesSuccess; invariant importPubKeySuccess ==> importPrivKeySuccess; invariant keypairSuccess ==> importCandidatesSuccess; invariant keypairSuccess ==> importVotesSuccess; invariant keypairSuccess ==> importPrivKeySuccess; invariant keypairSuccess ==> importPubKeySuccess; invariant decryptSuccess ==> importCandidatesSuccess; invariant decryptSuccess ==> importVotesSuccess; invariant decryptSuccess ==> importPrivKeySuccess; invariant decryptSuccess ==> importPubKeySuccess; invariant decryptSuccess ==> keypairSuccess; invariant decryptNrOfVotes >= countNrOfVotes; invariant decryptNrOfVotes >= 0; invariant countSuccess ==> importCandidatesSuccess; invariant countSuccess ==> importVotesSuccess; invariant countSuccess ==> importPrivKeySuccess; invariant countSuccess ==> importPubKeySuccess; invariant countSuccess ==> keypairSuccess; invariant countSuccess ==> decryptSuccess; invariant countNrOfVotes >= 0; |
Field Summary | |
[spec_public] private static java.lang.String[] |
countErrors
List of the errors encountered during counting. |
[spec_public] private static int |
countNrOfVotes
The number of successfully counted votes. |
[spec_public] private static boolean |
countSuccess
To indicate whether the counting process succeeded or not. |
[spec_public] private static java.lang.String |
countTimestampEnd
Timestamp for finish of counting. |
[spec_public] private static java.lang.String |
countTimestampStart
Timestamp for start of counting. |
[spec_public] private static java.lang.String[] |
decryptErrors
List of the errors encountered during decryption. |
[spec_public] private static int |
decryptNrOfVotes
The number of successfully decrypted votes. |
[spec_public] private static boolean |
decryptSuccess
To indicate whether the decryption process succeeded or not. |
[spec_public] private static java.lang.String |
decryptTimestampEnd
Timestamp for finish of decrypting. |
[spec_public] private static java.lang.String |
decryptTimestampStart
Timestamp for start of decrypting. |
[spec_public] private static java.lang.String |
importCandidatesError
To log what went wrong during the import. |
[spec_public] private static java.lang.String |
importCandidatesFileName
The filename of the file read. |
[spec_public] private static java.lang.String |
importCandidatesFileTimestamp
The timestamp of the file read. |
[spec_public] private static int |
importCandidatesNrOfBlanco
The non-negative number of 'blanco' candidates. |
[spec_public] private static int |
importCandidatesNrOfCandidates
The non-negative number of candidates found in the file. |
[spec_public] private static int |
importCandidatesNrOfLists
The non-negative number of kieslijsten found in the file. |
[spec_public] private static java.lang.String |
importCandidatesRefNr
The candidates reference number. |
[spec_public] private static boolean |
importCandidatesSuccess
To indicate whether importing the candidates succeeded or not. |
[spec_public] private static java.lang.String |
importPrivKeyError
To log what went wrong during the import. |
[spec_public] private static java.lang.String |
importPrivKeyFileName
The filename of the file read. |
[spec_public] private static java.lang.String |
importPrivKeyFileTimestamp
The timestamp of the file read. |
[spec_public] private static boolean |
importPrivKeySuccess
To indicate whether importing the private key succeeded or not. |
[spec_public] private static java.lang.String |
importPubKeyError
To log what went wrong during the import. |
[spec_public] private static java.lang.String |
importPubKeyFileName
The filename of the file read. |
[spec_public] private static java.lang.String |
importPubKeyFileTimestamp
The timestamp of the file read. |
[spec_public] private static boolean |
importPubKeySuccess
To indicate whether importing the public key succeeded or not. |
[spec_public] private static java.lang.String |
importVotesError
To log what went wrong during the import. |
[spec_public] private static java.lang.String |
importVotesFileName
The filename of the file read. |
[spec_public] private static java.lang.String |
importVotesFileTimestamp
The timestamp of the file read. |
[spec_public] private static int |
importVotesNrOfKieskringen
The number of kieskringen found in the file with the votes. |
[spec_public] private static int |
importVotesNrOfVotes
The number of encrypted votes found in the file with the votes. |
[spec_public] private static boolean |
importVotesSuccess
To indicate whether importing the votes succeeded or not. |
[spec_public] private static boolean |
keypairSuccess
To indicate whether the private and public key match. |
[spec_public] private static java.util.TreeMap |
kiesKringen
The TreeMap that is used to store the kiesKringen found in the file with the votes. |
[spec_public] private static java.lang.String |
logTimestamp
The creation time of the audit log. |
[spec_public] private static java.lang.String |
votingBureau
The string that contains the name of the voting bureau. |
[spec_public] private static java.lang.String |
votingChairman
The string that contains the name of the voting chairman. |
[spec_public] private static java.lang.String |
votingElection
The string that contains the name of the election. |
[spec_public] private static java.lang.String |
votingElectionTimestampEnd
The string that contains the ending time of the election. |
[spec_public] private static java.lang.String |
votingElectionTimestampStart
The string that contains the starting time of the election. |
[spec_public] private static java.lang.String |
votingExportTimestamp
The string that contains the timestamp for the export of the votes. |
[spec_public] private static java.lang.String |
votingInterval
The string that contains the voting interval. |
[spec_public] private static int |
votingNrOfRegisteredVoters
The number of registered voters. |
[spec_public] private static java.lang.String |
votingState
The string that contains the state of the voting. |
Constructor Summary | |
AuditLog()
|
Method Summary | |
static KiesKring |
addKiesKring(byte number,
non_null java.lang.String name)
|
static void |
clear()
Resets everything to the initial values. |
static java.lang.String[] |
getCountErrors()
Retrieve errors encountered during counting of the votes. |
static int |
getCountNrOfVotes()
Retrieve the number of votes counted. |
static boolean |
getCountSuccess()
Retrieve whether the count process was successful or not. |
static java.lang.String |
getCountTimestampEnd()
Retrieve the end time of the counting process. |
static java.lang.String |
getCountTimestampStart()
Retrieve the start time of the counting process. |
static java.lang.String |
getCurrentTimestamp()
Get the current time. |
static java.lang.String[] |
getDecryptErrors()
Retrieve errors encountered during decryption of the votes. |
static int |
getDecryptNrOfVotes()
Retrieve the number of votes decrypted. |
static boolean |
getDecryptSuccess()
Retrieve whether the decrypt process was successful or not. |
static java.lang.String |
getDecryptTimestampEnd()
Retrieve the end time of the decryption. |
static java.lang.String |
getDecryptTimestampStart()
Retrieve the start time of the decryption. |
static java.lang.String |
getImportCandidatesError()
Retrieve errors encountered during the import of candidates. |
static java.lang.String |
getImportCandidatesFileName()
Retrieve the name of the candidate file. |
static java.lang.String |
getImportCandidatesFileTimestamp()
Retrieve modification time of the candidate file. |
static int |
getImportCandidatesNrOfBlanco()
Retrieve the number of BLANCO candidates. |
static int |
getImportCandidatesNrOfCandidates()
Retrieve the number of candidates. |
static int |
getImportCandidatesNrOfLists()
Retrieve the number of candidate lists (kieslijsten). |
static java.lang.String |
getImportCandidatesRefNr()
Retrieve the candidates reference number. |
static boolean |
getImportCandidatesSuccess()
Retrieve whether importing the candidates was successful. |
static java.lang.String |
getImportPrivKeyError()
Retrieve errors encountered during the import of the private key. |
static java.lang.String |
getImportPrivKeyFileName()
Retrieve the name of the private key file. |
static java.lang.String |
getImportPrivKeyFileTimestamp()
Retrieve modification time of the private key file. |
static boolean |
getImportPrivKeySuccess()
Retrieve whether importing the private key was successful. |
static java.lang.String |
getImportPubKeyError()
Retrieve errors encountered during the import of the public key. |
static java.lang.String |
getImportPubKeyFileName()
Retrieve the name of the public key file. |
static java.lang.String |
getImportPubKeyFileTimestamp()
Retrieve modification time of the public key file. |
static boolean |
getImportPubKeySuccess()
Retrieve whether importing the public key was successful. |
static java.lang.String |
getImportVotesError()
Retrieve errors encountered during the import of votes. |
static java.lang.String |
getImportVotesFileName()
Retrieve the name of the vote file. |
static java.lang.String |
getImportVotesFileTimestamp()
Retrieve modification time of the vote file. |
static int |
getImportVotesNrOfKieskringen()
Retrieve the number of kieskringen. |
static int |
getImportVotesNrOfVotes()
Retrieve the number of votes. |
static boolean |
getImportVotesSuccess()
Retrieve whether importing the encrypted votes was successful. |
static boolean |
getKeypairSuccess()
Retrieve whether the private key and the public key form a pair. |
static java.lang.String |
getLogTimestamp()
Retrieve the timestamp for the creation of the audit log. |
static javax.xml.transform.Source |
getSourceForAuditLog()
Returns a Source object for this object so it can be used as input for a JAXP transformation. |
static java.lang.String |
getVotingBureau()
Retrieve the name of the voting bureau. |
static java.lang.String |
getVotingChairman()
Retrieve the name of the voting chairman. |
static java.lang.String |
getVotingElection()
Retrieve the name of the election. |
static java.lang.String |
getVotingElectionTimestampEnd()
Retrieve the end time of the election. |
static java.lang.String |
getVotingElectionTimestampStart()
Retrieve the start time of the election. |
static java.lang.String |
getVotingExportTimestamp()
Retrieve the timestamp of the export of the votes. |
static java.lang.String |
getVotingInterval()
Retrieve the voting interval. |
static int |
getVotingNrOfRegisteredVoters()
Retrieve the number of registered voters. |
static java.lang.String |
getVotingState()
Retrieve the voting state. |
static boolean |
hasKiesKring(byte a_kieskring_number)
|
static void |
setCountErrors(java.lang.String[] s)
Record errors encountered during counting of the votes. |
static void |
setCountNrOfVotes(int i)
Record the number of votes counted. |
static void |
setCountSuccess(boolean b)
Record whether the count process was successful or not. |
static void |
setCountTimestampEnd(java.lang.String s)
Record the end time of the counting process. |
static void |
setCountTimestampStart(java.lang.String s)
Record the start time of the counting process. |
static void |
setDecryptErrors(java.lang.String[] s)
Record errors encountered during decryption of the votes. |
static void |
setDecryptNrOfVotes(int i)
Record the number of votes decrypted. |
static void |
setDecryptSuccess(boolean b)
Record whether the decrypt process was successful or not. |
static void |
setDecryptTimestampEnd(java.lang.String s)
Record the end time of the decryption. |
static void |
setDecryptTimestampStart(java.lang.String s)
Record the start time of the decryption. |
static void |
setImportCandidatesError(java.lang.String s)
Record errors encountered during the import of candidates. |
static void |
setImportCandidatesFileName(java.lang.String s)
Record the name of the candidate file. |
static void |
setImportCandidatesFileTimestamp(java.lang.String s)
Record modification time of the candidate file. |
static void |
setImportCandidatesNrOfBlanco(int i)
Record the number of BLANCO candidates. |
static void |
setImportCandidatesNrOfCandidates(int i)
Record the number of candidates. |
static void |
setImportCandidatesNrOfLists(int i)
Record the number of candidate lists (kieslijsten). |
static void |
setImportCandidatesRefNr(java.lang.String s)
Record the candidates reference number. |
static void |
setImportCandidatesSuccess(boolean b)
Record whether importing the candidates was successful. |
static void |
setImportPrivKeyError(java.lang.String s)
Record errors encountered during the import of the private key. |
static void |
setImportPrivKeyFileName(java.lang.String s)
Record the name of the private key file. |
static void |
setImportPrivKeyFileTimestamp(java.lang.String s)
Record modification time of the private key file. |
static void |
setImportPrivKeySuccess(boolean b)
Record whether importing the private key was successful. |
static void |
setImportPubKeyError(java.lang.String s)
Record errors encountered during the import of the public key. |
static void |
setImportPubKeyFileName(java.lang.String s)
Record the name of the public key file. |
static void |
setImportPubKeyFileTimestamp(java.lang.String s)
Record modification time of the public key file. |
static void |
setImportPubKeySuccess(boolean b)
Record whether importing the public key was successful. |
static void |
setImportVotesError(java.lang.String s)
Record errors encountered during the import of votes. |
static void |
setImportVotesFileName(java.lang.String s)
Record the name of the vote file. |
static void |
setImportVotesFileTimestamp(java.lang.String s)
Record modification time of the vote file. |
static void |
setImportVotesNrOfKieskringen(int i)
Record the number of kieskringen. |
static void |
setImportVotesNrOfVotes(int i)
Record the number of votes. |
static void |
setImportVotesSuccess(boolean b)
Record whether importing the encrypted votes was successful. |
static void |
setKeypairSuccess(boolean b)
Record whether the private key and the public key form a pair. |
static void |
setLogTimestamp()
Record the timestamp for the creation of the audit log. |
static void |
setVotingBureau(java.lang.String s)
Record the name of the voting bureau. |
static void |
setVotingChairman(java.lang.String s)
Record the name of the voting chairman. |
static void |
setVotingElection(java.lang.String s)
Record the name of the election. |
static void |
setVotingElectionTimestampEnd(java.lang.String s)
Record the end time of the election. |
static void |
setVotingElectionTimestampStart(java.lang.String s)
Record the start time of the election. |
static void |
setVotingExportTimestamp(java.lang.String s)
Record the timestamp of the export of the votes. |
static void |
setVotingInterval(java.lang.String s)
Record the voting interval. |
static void |
setVotingNrOfRegisteredVoters(int i)
Record the number of registered voters. |
static void |
setVotingState(java.lang.String s)
Record the voting state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.lang.String logTimestamp
private static java.lang.String votingInterval
private static int votingNrOfRegisteredVoters
private static java.lang.String votingBureau
private static java.lang.String votingChairman
private static java.lang.String votingState
private static java.lang.String votingElection
private static java.lang.String votingElectionTimestampStart
private static java.lang.String votingElectionTimestampEnd
private static java.lang.String votingExportTimestamp
private static java.util.TreeMap kiesKringen
private static boolean importCandidatesSuccess
private static java.lang.String importCandidatesError
private static java.lang.String importCandidatesFileName
private static java.lang.String importCandidatesFileTimestamp
private static java.lang.String importCandidatesRefNr
private static int importCandidatesNrOfLists
private static int importCandidatesNrOfCandidates
private static int importCandidatesNrOfBlanco
private static boolean importVotesSuccess
private static java.lang.String importVotesError
private static java.lang.String importVotesFileName
private static java.lang.String importVotesFileTimestamp
private static int importVotesNrOfKieskringen
private static int importVotesNrOfVotes
private static boolean importPrivKeySuccess
private static java.lang.String importPrivKeyError
private static java.lang.String importPrivKeyFileName
private static java.lang.String importPrivKeyFileTimestamp
private static boolean importPubKeySuccess
private static java.lang.String importPubKeyError
private static java.lang.String importPubKeyFileName
private static java.lang.String importPubKeyFileTimestamp
private static boolean keypairSuccess
private static boolean decryptSuccess
private static java.lang.String[] decryptErrors
private static java.lang.String decryptTimestampStart
private static java.lang.String decryptTimestampEnd
private static int decryptNrOfVotes
private static boolean countSuccess
private static java.lang.String[] countErrors
private static java.lang.String countTimestampStart
private static java.lang.String countTimestampEnd
private static int countNrOfVotes
Constructor Detail |
public AuditLog()
Method Detail |
public static java.lang.String getCurrentTimestamp()
public static void setLogTimestamp()
public static java.lang.String getLogTimestamp()
public static void setVotingInterval(java.lang.String s)
s
- the voting interval.public static java.lang.String getVotingInterval()
public static void setVotingNrOfRegisteredVoters(int i)
i
- the number of registered voters.public static int getVotingNrOfRegisteredVoters()
public static void setImportCandidatesSuccess(boolean b)
b
- successful or not. public static boolean getImportCandidatesSuccess()
public static void setImportCandidatesError(java.lang.String s)
s
- the error text. public static java.lang.String getImportCandidatesError()
public static void setImportCandidatesFileName(java.lang.String s)
s
- the filename. public static java.lang.String getImportCandidatesFileName()
public static void setImportCandidatesFileTimestamp(java.lang.String s)
s
- the modification time. public static java.lang.String getImportCandidatesFileTimestamp()
public static void setImportCandidatesRefNr(java.lang.String s)
s
- the candidate reference number. public static java.lang.String getImportCandidatesRefNr()
public static void setImportCandidatesNrOfLists(int i)
i
- the number of kieslijsten.public static int getImportCandidatesNrOfLists()
public static void setImportCandidatesNrOfCandidates(int i)
i
- the number of candidates.public static int getImportCandidatesNrOfCandidates()
public static void setImportCandidatesNrOfBlanco(int i)
i
- the number of BLANCO candidates. Typically, this should be 1.public static int getImportCandidatesNrOfBlanco()
public static void setImportVotesSuccess(boolean b)
b
- successful or not. public static boolean getImportVotesSuccess()
public static void setImportVotesError(java.lang.String s)
s
- the errors.public static java.lang.String getImportVotesError()
public static void setImportVotesFileName(java.lang.String s)
s
- the filename. public static java.lang.String getImportVotesFileName()
public static void setImportVotesFileTimestamp(java.lang.String s)
s
- the modification time. public static java.lang.String getImportVotesFileTimestamp()
public static void setImportVotesNrOfKieskringen(int i)
i
- the number of kieskringen. public static int getImportVotesNrOfKieskringen()
public static void setImportVotesNrOfVotes(int i)
i
- the number of votes. public static int getImportVotesNrOfVotes()
public static void setVotingBureau(java.lang.String s)
s
- the voting bureau. public static java.lang.String getVotingBureau()
public static void setVotingChairman(java.lang.String s)
s
- the voting chairman. public static java.lang.String getVotingChairman()
public static void setVotingState(java.lang.String s)
s
- the voting state. public static java.lang.String getVotingState()
public static void setVotingElection(java.lang.String s)
s
- the election. public static java.lang.String getVotingElection()
public static void setVotingElectionTimestampStart(java.lang.String s)
s
- the start time of the election. public static java.lang.String getVotingElectionTimestampStart()
public static void setVotingElectionTimestampEnd(java.lang.String s)
s
- the end time of the election. public static java.lang.String getVotingElectionTimestampEnd()
public static void setVotingExportTimestamp(java.lang.String s)
s
- the timestamp of the export of the votes. public static java.lang.String getVotingExportTimestamp()
public static void setImportPrivKeySuccess(boolean b)
b
- successful or not. public static boolean getImportPrivKeySuccess()
public static void setImportPrivKeyError(java.lang.String s)
s
- the errors.public static java.lang.String getImportPrivKeyError()
public static void setImportPrivKeyFileName(java.lang.String s)
s
- the filename. public static java.lang.String getImportPrivKeyFileName()
public static void setImportPrivKeyFileTimestamp(java.lang.String s)
s
- the modification time. public static java.lang.String getImportPrivKeyFileTimestamp()
public static void setImportPubKeySuccess(boolean b)
b
- successful or not. public static boolean getImportPubKeySuccess()
public static void setImportPubKeyError(java.lang.String s)
s
- the errors.public static java.lang.String getImportPubKeyError()
public static void setImportPubKeyFileName(java.lang.String s)
s
- the filename. public static java.lang.String getImportPubKeyFileName()
public static void setImportPubKeyFileTimestamp(java.lang.String s)
s
- the modification time. public static java.lang.String getImportPubKeyFileTimestamp()
public static void setKeypairSuccess(boolean b)
b
- successful or not. public static boolean getKeypairSuccess()
public static void setDecryptSuccess(boolean b)
b
- successful or not. public static boolean getDecryptSuccess()
public static void setDecryptErrors(java.lang.String[] s)
s
- the errors.public static java.lang.String[] getDecryptErrors()
public static void setDecryptTimestampStart(java.lang.String s)
s
- the start time of the decryption. public static java.lang.String getDecryptTimestampStart()
public static void setDecryptTimestampEnd(java.lang.String s)
s
- the end time of the decryption public static java.lang.String getDecryptTimestampEnd()
public static void setDecryptNrOfVotes(int i)
i
- the number of votes decrypted. public static int getDecryptNrOfVotes()
public static void setCountSuccess(boolean b)
b
- successful or not. public static boolean getCountSuccess()
public static void setCountErrors(java.lang.String[] s)
s
- the errors.public static java.lang.String[] getCountErrors()
public static void setCountTimestampStart(java.lang.String s)
s
- the start time of the counting process. public static java.lang.String getCountTimestampStart()
public static void setCountTimestampEnd(java.lang.String s)
s
- the end time of the counting process. public static java.lang.String getCountTimestampEnd()
public static void setCountNrOfVotes(int i)
i
- the number of votes counted. public static int getCountNrOfVotes()
public static javax.xml.transform.Source getSourceForAuditLog()
public static KiesKring addKiesKring(byte number, non_null java.lang.String name)
public static boolean hasKiesKring(byte a_kieskring_number)
public static void clear()
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |