This is the class used to model the predation of stocks by a fleet that will catch a specified number of preys, calculating the catch by numbers, and not by biomass, of the prey available.
More...
|
| NumberPredator (CommentStream &infile, const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler) |
| This is the NumberPredator constructor. More...
|
|
virtual | ~NumberPredator () |
| This is the default NumberPredator destructor. More...
|
|
virtual void | Eat (int area, const AreaClass *const Area, const TimeClass *const TimeInfo) |
| This will calculate the amount the predator consumes on a given area. More...
|
|
virtual void | adjustConsumption (int area, const TimeClass *const TimeInfo) |
| This will adjust the amount the predator consumes on a given area, to take oversconsumption into consideration. More...
|
|
virtual void | Print (ofstream &outfile) const |
| This function will print the predator information. More...
|
|
| LengthPredator (const char *givenname, const IntVector &Areas, const TimeClass *const TimeInfo, Keeper *const keeper, Formula multscaler) |
| This is the LengthPredator constructor. More...
|
|
virtual | ~LengthPredator () |
| This is the default LengthPredator destructor. More...
|
|
virtual void | Sum (const PopInfoVector &NumberInArea, int area) |
| This will calculate the amount of prey that is consumed by the predator. More...
|
|
double | getMultScaler () const |
| This will return the multiplicative value used scale the catch. More...
|
|
virtual void | setTimeMultiplier (const TimeClass *const TimeInfo, int quotastep, double value) |
| This is a multiplier set in lengthpredator.
More...
|
|
virtual void | Reset (const TimeClass *const TimeInfo) |
| This function will reset the predation information. More...
|
|
| PopPredator (const char *givenname, const IntVector &areas, const LengthGroupDivision *const OtherLgrpDiv, const LengthGroupDivision *const GivenLgrpDiv) |
| This is the PopPredator constructor to create a predator with a specified length group. More...
|
|
| PopPredator (const char *givenname, const IntVector &areas) |
| This is the PopPredator constructor to create a predator without a specified length group. More...
|
|
virtual | ~PopPredator () |
| This is the default PopPredator destructor. More...
|
|
virtual const PopInfoVector & | getConsumptionPopInfo (int area, const char *preyname) const |
| This function will return the number of a prey on a specified area before the consumption calculation takes place. More...
|
|
virtual const PopInfoVector & | getPredatorNumber (int area) const |
| This function will return the population number of the predator on a given area. More...
|
|
virtual const DoubleMatrix & | getConsumption (int area, const char *preyname) const |
| This will return the amount the predator consumes of a given prey on a given area. More...
|
|
virtual int | hasOverConsumption (int area) const |
| This will return the flag that denotes if the predator has overconsumed on a given area. More...
|
|
virtual const DoubleVector & | getOverConsumption (int area) const |
| This will return the amount the predator overconsumes on a given area. More...
|
|
virtual double | getTotalOverConsumption (int area) const |
| This will return the total amount the predator overconsumes on a given area. More...
|
|
virtual const LengthGroupDivision * | getLengthGroupDiv () const |
| This will return the length group information for the predator. More...
|
|
virtual double | getConsumptionBiomass (int prey, int area) const |
| This will return the biomass the predator consumes of a given prey on a given area. More...
|
|
virtual double | getConsumptionRatio (int area, int prey, int len) const |
| This will return the ratio used to split the predation between the areas and length groups. More...
|
|
const DoubleMatrix & | getUseSuitability (int area, int prey) const |
| This will return the suitability used by the predator for a given prey on a given area, adjusted to take any overconsumption into account. More...
|
|
void | setPrey (PreyPtrVector &preyvec, Keeper *const keeper) |
| This will select the preys that will be consumed by the predator. More...
|
|
| Predator (const char *givenname, const IntVector &Areas) |
| This is the Predator constructor. More...
|
|
virtual | ~Predator () |
| This is the default Predator destructor. More...
|
|
void | setPrey (PreyPtrVector &preyvec, Keeper *const keeper) |
| This will select the preys that will be consumed by the predator. More...
|
|
int | doesEat (const char *preyname) const |
| This function will check to see if the predator will consume a specified prey. More...
|
|
virtual void | Initialise () |
| This will return the number of prey stocks that the predator will consume. More...
|
|
int | numPreys () const |
|
Prey * | getPrey (int i) const |
| This will return a given prey. More...
|
|
const char * | getPreyName (int i) const |
| This will return the name of a given prey. More...
|
|
int | didChange (int i, const TimeClass *const TimeInfo) |
| This function will check to see if the suitability parameters for a given prey have changed on the current timestep. More...
|
|
const DoubleMatrix & | getSuitability (int i) const |
| This will return the suitability values for a given prey. More...
|
|
double | getPreference (int i) const |
| This will return the preference for a given prey. More...
|
|
PredatorType | getType () const |
| This will return the type of predator class. More...
|
|
| HasName () |
| This is the default HasName constructor. More...
|
|
virtual | ~HasName () |
| This is the default HasName destructor. More...
|
|
| HasName (const char *givenname) |
| This is the HasName constructor for a specified name. More...
|
|
const char * | getName () const |
| This will return a null terminated text string containing the name of the object. More...
|
|
| LivesOnAreas () |
| This is the default LivesOnAreas constructor. More...
|
|
virtual | ~LivesOnAreas () |
| This is the default LivesOnAreas destructor. More...
|
|
| LivesOnAreas (const IntVector &Areas) |
| This is the LivesOnAreas constructor for a specified vector of areas. More...
|
|
int | isInArea (int area) const |
| This function will check whether the object is defined on a specified area. More...
|
|
IntVector & | getAreas () |
| This function will return the internal areas that the object is defined on. More...
|
|
int | areaNum (int area) const |
| This function will return the area associated with an internal area. More...
|
|
This is the class used to model the predation of stocks by a fleet that will catch a specified number of preys, calculating the catch by numbers, and not by biomass, of the prey available.