Level 0 function that returns workers presence status (are they present or not).

isWorkersPresent(x, simParamBee = NULL)

areWorkersPresent(x, simParamBee = NULL)

areDronesPresent(x, simParamBee = NULL)

Arguments

x

Colony-class or MultiColony-class

simParamBee

SimParamBee, global simulation parameters

Value

logical, named by colony id when x is

MultiColony-class

Functions

  • areWorkersPresent(): Are workers present

  • areDronesPresent(): Are drones present

Examples

founderGenomes <- quickHaplo(nInd = 8, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
SP$nThreads = 1L
basePop <- createVirginQueens(founderGenomes)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found

drones <- createDrones(x = basePop[1], nInd = 1000)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found

# Create a Colony and a MultiColony class
colony <- createColony(x = basePop[2])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony <- cross(colony, drones = droneGroups[[1]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony <- buildUp(x = colony, nWorkers = 120, nDrones = 20)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found

apiary <- createMultiColony(basePop[3:4], n = 2)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
apiary <- cross(apiary, drones = droneGroups[c(2, 3)])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
apiary <- buildUp(x = apiary, nWorkers = 100, nDrones = 10)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found

isWorkersPresent(colony)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isWorkersPresent(removeWorkers(colony))
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isWorkersPresent(apiary)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isWorkersPresent(removeWorkers(apiary))
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found