stopOnInvalidGrandCoalitionN {CoopGame}R Documentation

Parameter Function stopOnInvalidGrandCoalitionN

Description

stopOnInvalidGrandCoalitionN checks if grand coalition N is specified correctly and causes calculation to stop otherwise.

Usage

stopOnInvalidGrandCoalitionN(paramCheckResult, N)

Arguments

paramCheckResult

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

N

represents the grand coalition.

Error Code Ranges

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

Error Code Message
1010 Grand coalition vector N is invalid as 'NULL'
1011 Grand coalition vector N is invalid as not 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(), stopOnInvalidIndex(), stopOnInvalidLeftRightGloveGame(), stopOnInvalidNChooseB(), stopOnInvalidNumberOfPlayers(), stopOnInvalidNumber(), stopOnInvalidQuota(), stopOnInvalidVetoPlayer(), stopOnInvalidWeightVector(), stopOnParamCheckError()

Examples

library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validGrandCoalition = c(1,2,3,4,5)
stopOnInvalidGrandCoalitionN(paramCheckResult, N=validGrandCoalition)


[Package CoopGame version 0.2.2 Index]