| stopOnInvalidQuota {CoopGame} | R Documentation |
Parameter Function stopOnInvalidQuota
Description
stopOnInvalidQuota checks if qutoa in a weighted voting game is specified correctly. Validation result gets stored to object paramCheckResult in case an error occured and causes calculation to stop.
Usage
stopOnInvalidQuota(paramCheckResult, q)
Arguments
paramCheckResult |
list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message. |
q |
is the quota |
Error Code Ranges
Error codes and messages shown to user if error on parameter check occurs
| Error Code | Message |
| 1030 | Invalid quota as q is NULL |
| 1031 | Quota must be greater than zero! |
| 1032 | Quota must be numeric! |
Author(s)
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johannes Anwander anwander.johannes@gmail.com
See Also
Other ParameterChecks_CoopGame:
getEmptyParamCheckResult(),
stopOnInconsistentEstateAndClaimsVector(),
stopOnInvalidAllocation(),
stopOnInvalidBoolean(),
stopOnInvalidClaimsVector(),
stopOnInvalidCoalitionS(),
stopOnInvalidDictator(),
stopOnInvalidEstate(),
stopOnInvalidGameVector(),
stopOnInvalidGrandCoalitionN(),
stopOnInvalidIndex(),
stopOnInvalidLeftRightGloveGame(),
stopOnInvalidNChooseB(),
stopOnInvalidNumberOfPlayers(),
stopOnInvalidNumber(),
stopOnInvalidVetoPlayer(),
stopOnInvalidWeightVector(),
stopOnParamCheckError()
Examples
library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validQuota = 3
stopOnInvalidQuota(paramCheckResult, q=validQuota)