Learn R Programming

CoopGame (version 0.2.2)

stopOnInvalidVetoPlayer: Parameter Function stopOnInvalidVetoPlayer

Description

stopOnInvalidVetoPlayer checks if vetoPlayer is specified correctly. Validation result gets stored to object paramCheckResult in case an error occured and causes calculation to stop.

Usage

stopOnInvalidVetoPlayer(paramCheckResult, vetoPlayer)

Arguments

paramCheckResult

list object for check result with list element 'errCode' for the error code and 'errMessage' for the error message.

vetoPlayer

represents the veto player

Error Code Ranges

Error codes and messages shown to user if error on parameter check occurs

Error Code Message 1190
At least one veto player has to be specified Error Code Message

See Also

Other ParameterChecks_CoopGame: getEmptyParamCheckResult(), stopOnInconsistentEstateAndClaimsVector(), stopOnInvalidAllocation(), stopOnInvalidBoolean(), stopOnInvalidClaimsVector(), stopOnInvalidCoalitionS(), stopOnInvalidDictator(), stopOnInvalidEstate(), stopOnInvalidGameVector(), stopOnInvalidGrandCoalitionN(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidWeightVector(), stopOnParamCheckError()

Examples

Run this code
# NOT RUN {
library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validVetoPlayer = 3
stopOnInvalidVetoPlayer(paramCheckResult, vetoPlayer=validVetoPlayer)

# }

Run the code above in your browser using DataLab