stopOnInvalidEstate {CoopGame}R Documentation

Parameter Function stopOnInvalidEstate

Description

stopOnInvalidBankruptcy checks if estate is specified correctly (as parameter in a bankruptcy game). Validation result gets stored to object paramCheckResult in case an error occured and causes stop otherwise.

Usage

stopOnInvalidEstate(paramCheckResult, E)

Arguments

paramCheckResult

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

E

is the value of the estate in a bankruptcy game

Error Code Ranges

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

Error Code Message
1150 Estate must be nonnegative!
1151 Estate must be numeric!
1152 Invalid estate as E is NULL

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

See Also

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

Examples

library(CoopGame)
paramCheckResult=getEmptyParamCheckResult()
validEstate = 55
stopOnInvalidEstate(paramCheckResult, E=validEstate)


[Package CoopGame version 0.2.2 Index]