|
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.CandidateListMetadata
The metadata associated with a candidiate list for an election.
Field Summary | |
private int |
my_codeCount
The number of candidate codes contained in the associated candidate list. |
private java.lang.String |
my_creationTime
The creation time of the associated candidate list. |
private int |
my_districtCount
The number of districts in the associated candidate list. |
private byte |
my_kiesKringCount
The number of kieskringen in the associated candidate list. |
private byte |
my_kiesLijstCount
The number of kieslijsten in the associated candidate list. |
private int |
my_positieCount
The total number of candidates in the associated candidate list. |
private java.lang.String |
my_requestReference
The request reference of the associated candidate list. |
private java.lang.String |
my_responseReference
The response reference of the associated candidate list. |
Constructor Summary | |
(package private) |
CandidateListMetadata(java.lang.String a_request_reference,
java.lang.String a_response_reference,
java.lang.String a_creation_time,
byte a_kieskring_count,
int a_district_count,
byte a_kieslijst_count,
int a_positie_count,
int a_code_count)
Construct a new candidate list metadata object given the specified initialization values. |
Method Summary | |
(package private) int |
codeCount()
|
(package private) java.lang.String |
creationTime()
|
(package private) int |
districtCount()
|
(package private) byte |
kiesKringCount()
|
(package private) byte |
kiesLijstCount()
|
(package private) int |
positieCount()
|
(package private) java.lang.String |
requestReference()
|
(package private) java.lang.String |
responseReference()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String my_requestReference
private java.lang.String my_responseReference
private java.lang.String my_creationTime
private byte my_kiesKringCount
private int my_districtCount
private byte my_kiesLijstCount
private int my_positieCount
private int my_codeCount
Constructor Detail |
CandidateListMetadata(java.lang.String a_request_reference, java.lang.String a_response_reference, java.lang.String a_creation_time, byte a_kieskring_count, int a_district_count, byte a_kieslijst_count, int a_positie_count, int a_code_count)
a_request_reference
- the request reference of the
associated candidate list.a_response_reference
- the response reference of the
associated candidate list.a_creation_time
- the creation time of the associated
candidate list.a_kieskring_count
- the number of kieskringen in the
associated candidate list.a_district_count
- the number of districts in the associated
candidate list.a_kieslijst_count
- the number of kieslijsten in the
associated candidate list.a_positie_count
- the total number of candidates in the
associated candidate list.a_code_count
- the number of candidate codes contained in
the associated candidate list.
normal_behavior
requires 0 <= a_kieskring_count;
requires a_kieskring_count <= CandidateList.MAX_KIESKRINGEN_PER_CANDIDATE_LIST;
requires 0 <= a_district_count;
requires a_district_count <= KiesKring.MAX_DISTRICTS_PER_KIESKRING;
requires 0 <= a_kieslijst_count;
requires a_kieslijst_count <= KiesKring.MAX_KIESLIJSTEN_PER_KIESKRING;
requires 0 <= a_positie_count;
requires a_positie_count <= KiesLijst.MAX_CANDIDATES_PER_KIESLIJST * a_kieslijst_count;
requires 0 <= a_code_count;
ensures requestReference().equals(a_request_reference);
ensures responseReference().equals(a_response_reference);
ensures creationTime().equals(a_creation_time);
ensures kiesKringCount() == a_kieskring_count;
ensures districtCount() == a_district_count;
ensures kiesLijstCount() == a_kieslijst_count;
ensures positieCount() == a_positie_count;
ensures codeCount() == a_code_count;
Method Detail |
final java.lang.String requestReference()
final java.lang.String responseReference()
final java.lang.String creationTime()
final byte kiesKringCount()
normal_behavior ensures \result >= 0;
final int districtCount()
normal_behavior ensures \result >= 0;
final byte kiesLijstCount()
normal_behavior ensures \result >= 0;
final int positieCount()
normal_behavior ensures \result >= 0;
final int codeCount()
normal_behavior ensures \result >= 0;
public final java.lang.String toString()
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |