FLFisherycpp.Rd
The same as the FLFishery class but all predictModel slots have been turned into FLQuant objects. The class is used for passing to C++ FLR objects.
# S4 method for FLFisherycpp
capacity(object)
# S4 method for FLFisherycpp,FLQuant
capacity(object) <- value
# S4 method for FLFisherycpp,numeric
capacity(object) <- value
# S4 method for FLFisherycpp
hperiod(object)
# S4 method for FLFisherycpp,FLQuant
hperiod(object) <- value
# S4 method for FLFisherycpp,numeric
hperiod(object) <- value
# S4 method for FLFisherycpp
orevenue(object)
# S4 method for FLFisherycpp,FLQuant
orevenue(object) <- value
# S4 method for FLFisherycpp,numeric
orevenue(object) <- value
# S4 method for FLFisherycpp,ANY
effort(object)
# S4 method for FLFisherycpp,FLQuant
effort(object) <- value
# S4 method for FLFisherycpp,numeric
effort(object) <- value
# S4 method for FLFisherycpp
vcost(object)
# S4 method for FLFisherycpp,FLQuant
vcost(object) <- value
# S4 method for FLFisherycpp,numeric
vcost(object) <- value
# S4 method for FLFisherycpp
fcost(object)
# S4 method for FLFisherycpp,FLQuant
fcost(object) <- value
# S4 method for FLFisherycpp,numeric
fcost(object) <- value
# S4 method for FLFisherycpp
crewshare(object)
# S4 method for FLFisherycpp,FLQuant
crewshare(object) <- value
# S4 method for FLFisherycpp,numeric
crewshare(object) <- value
Object to extract or operate on
Replacement value
What have you done what's in your mind what do you need Where shall we go to let it out What have you seen, we don't know where you've been Life so often blows your candle out Believe in what is right, what's right for you tonight Who knows what the fuck it's all about
FLFisherycpp
objects inherit from FLCatches
woth a number of slots
added.
The list of FLCatch
object with catch data per stock,
(FLCatches
).
Name of the object, e.g. species or stock code, (character
).
Description of the data contents and origin, (character
).
Ranges of age and years, plusgroup, (numeric
).
Number of boats in the fleet, (FLQuant
).
Mean effort per boat applied by the fleet, (FLQuant
).
Start and end of fishing within each time step, as
proportions. An FLQuant
object with dimnames
`quant=c('start', 'end')` in the first dimension.
Variable costs per unit of effort, (FLQuant
).
Variable costs per unit of effort, (FLQuant
).
Revenues obtained from sources other than landings, (FLQuant
).
Formula, parameter values and inputs to calculate the
crew costs, (FLQuant
).
You can inspect the class validity function by using
getValidity(getClassDef('FLFishery'))
All slots in the class have accessor and replacement methods defined that allow retrieving and substituting individual slots.
The values passed for replacement need to be of the class of that slot. A numeric vector can also be used when replacing FLQuant slots, and the vector will be used to substitute the values in the slot, but not its other attributes.
A construction method exists for this class that can take named arguments for
any of its slots. All slots are then created to match the requirements of the
class validity. If an unnamed FLQuant
object is provided, this is used
for sizing but not stored in any slot.
Methods exist for various calculations based on values stored in the class:
Calculate the total crew costs by evaluating the formula in
crewshare
.
Total costs, calculated.
.
.
.
.
.
.
.
.
.
data(ple4)
FLFishery(PLE=as(ple4, 'FLCatch'))
#> An object of class "FLFishery"
#>
#> Name:
#> Description:
#> Names : PLE
#> Quant: quant
#> Dims: quant year unit season area iter
#> 2 61 1 1 1 1
#>
#> Range: min max minyear maxyear
#> 0 0 1 1
#>
#> crewshare An object of class "predictModel":
#> ~ fixed * crew + share * lrevenue
#> params:
#> fixed, cre : [ 3 1 ], units = EUR