Bosch DCN Next Generation Instrukcja Użytkownika Strona 180

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 296
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 179
DCN Next Generation Open Interface Release 2.4 Voting
en | 180
Bosch Communications Systems | 2007 February | SRS_VTINF | Du040905
Compressed The ‘byDelegateVotes’ holds for each element (read byte) the vote-result
of two (2) delegates. Using the compressed way of receiving results the
structure can hold 2 * VT_C_MAX_RESULT_DELEGATE delegates,
which is large enough to hold all delegates.
However the vote-result is now stored in the upper or lower nibble of a
byte. This implies that the total number of possible answers is limited to
14 answers (2 answer values are always reserved for ‘not-present’ and
‘present-and-not-voted’). This limitation of the number of answers inhibits
certain voting-kinds, which are not discussed further in this document.
Note that the parliamentary type of voting only uses 3 answer-options.
As a result of both restrictions we can take the conclusion that we cannot receive the voting result
of voting-kinds, which use more that 14 answer options and if the system holds more than
VT_C_MAX_RESULT_DELEGATE delegates.
Delegate voting result organization
The delegate voting results are organized in a list of delegate’s, whereby the DelegateId is used
as index in the list. The complete list is stored in the ‘byDelegateVotes’ array using either normal
or compressed storage.
Because the DelegateId is used as index within the list, the minimum length of the list is equal to
the highest DelegateId present in the downloaded delegate-database. This implies that the list
may contain holes in the DelegateId-numbering. For each not used DelegateId in of the delegate-
database, the voting result is set to VT_C_VOTE_UNASSIGNED.
Example: The downloaded delegate-database consists of the DelegateId’s 1, 2, 3 and 8. This
implies that the highest DelegateId’s is equal to 8 and therefore the list gets the length of 8
delegates. For each DelegateId not
in the delegate-database (DelegateId’s 4-7) the voting result
is set to VT_C_VOTE_UNASSIGNED. The other used DelegateId’s can get the following values
(for Parliamentary Voting type with 3 answers):
VT_C_VOTE_NOT_VOTED The delegate is present, but has not casted a vote (yet).
VT_C_VOTE_YES The delegate is present and has casted the ‘Yes’ vote.
VT_C_VOTE_NO The delegate is present and has casted the ‘No’ vote.
VT_C_VOTE_ABSTAIN The delegate is present and has casted the ‘Abstain’ vote.
VT_C_VOTE_NPPV The delegate is present and has chosen the ‘NPPV’ vote.
Note that for the result values only the lower nibble is used when the voting result is stored in the
‘byDelegateVotes’ array using the compressed storage form.
2.5 Default settings voting application
As mentioned in the sections above, setting of the voting application can be changed using
remote functions. But after successfully executing the VT_C_START_APP remote function, the
remote controller could directly start a voting round without first setting the subject and/or voting
parameters (global and voting kind).
In this particular case the voting is started with the settings as present during the standalone
operation of the voting application. During power-on of the DCN Next Generation-system all
settings will get their default values. When a remote controller already had called remote voting
functions, some setting still have their last values as set by that remote controller (see also
§2.5.1). The default (power-on) values for the remote functions are:
Voting subject The voting number is set to zero and the subject text and legend texts
are set to empty strings. In C-source lines:
wVotingNumber = VT_C_STANDALONE_VOTING;
szVotingSubject = “”;
szLegendSubject = “”;
This means that there is no subject text available on the unit LCD’s.
More information about the parameters can be found in section 3.2.7.
Voting parameters The voting parameters consist of various parameters which have the
following default values:
wVotingMenu = VT_C_MENU_YES_NO_ABSTAIN;
wNrOfAnswerOptions = 3;
Przeglądanie stron 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 295 296

Komentarze do niniejszej Instrukcji

Brak uwag