This is the class used to model the predation that is due to the action of a fleet in the Gadget model.
More...
|
| Fleet (CommentStream &infile, const char *givenname, const AreaClass *const Area, const TimeClass *const TimeInfo, Keeper *const keeper, FleetType ftype) |
| This is the Fleet constructor. More...
|
|
virtual | ~Fleet () |
| This is the default Fleet destructor. More...
|
|
void | Print (ofstream &outfile) const |
| This function will print the model population. More...
|
|
virtual void | calcEat (int area, const AreaClass *const Area, const TimeClass *const TimeInfo) |
| This function will calculate the modelled consumption for an area in the model. More...
|
|
virtual void | checkEat (int area, const TimeClass *const TimeInfo) |
| This function will check the modelled consumption for an area in the model. More...
|
|
virtual void | adjustEat (int area, const TimeClass *const TimeInfo) |
| This function will adjust the modelled consumption for an area in the model. More...
|
|
virtual void | reducePop (int area, const TimeClass *const TimeInfo) |
| This function will reduce the model population for an area in the model. More...
|
|
virtual void | Grow (int area, const AreaClass *const Area, const TimeClass *const TimeInfo) |
| This function will calculate the growth of the model population for an area in the model. More...
|
|
virtual void | updateAgePart1 (int area, const TimeClass *const TimeInfo) |
| This function will calculate any transition of the model population for an area in the model. More...
|
|
virtual void | updateAgePart2 (int area, const TimeClass *const TimeInfo) |
| This function will calculate the age increase of the model population for an area in the model. More...
|
|
virtual void | updateAgePart3 (int area, const TimeClass *const TimeInfo) |
| This function will implement the transiton of the model population for an area in the model. More...
|
|
virtual void | updatePopulationPart1 (int area, const TimeClass *const TimeInfo) |
| This function will calculate the spawning of the model population for an area in the model. More...
|
|
virtual void | updatePopulationPart2 (int area, const TimeClass *const TimeInfo) |
| This function will calculate add the newly matured stock into the model population for an area in the model. More...
|
|
virtual void | updatePopulationPart3 (int area, const TimeClass *const TimeInfo) |
| This function will calculate add the new recruits into the model population for an area in the model. More...
|
|
virtual void | updatePopulationPart4 (int area, const TimeClass *const TimeInfo) |
| This function will calculate calculate the straying of the model population for an area in the model. More...
|
|
virtual void | updatePopulationPart5 (int area, const TimeClass *const TimeInfo) |
| This function will calculate add the strayed stock into the model population for an area in the model. More...
|
|
virtual void | calcNumbers (int area, const TimeClass *const TimeInfo) |
| This function will update the model population for an area in the model. More...
|
|
virtual void | Migrate (const TimeClass *const TimeInfo) |
| This function will implement the migration of the model population for the model. More...
|
|
virtual void | Reset (const TimeClass *const TimeInfo) |
| This function will reset the model population. More...
|
|
LengthPredator * | getPredator () const |
| This will return the fleet, as a predator type, for use in other functions. More...
|
|
int | isFleetStepArea (int area, const TimeClass *const TimeInfo) |
| This will check if the fleet will operate on the current timestep. More...
|
|
FleetType | getType () const |
| This will return the type of fleet class. More...
|
|
| BaseClass () |
| This is the default BaseClass constructor. More...
|
|
| BaseClass (const char *givenname) |
| This is the BaseClass constructor for an object with a name. More...
|
|
| BaseClass (const char *givenname, const IntVector &Areas) |
| This is the BaseClass constructor for an object with a name and an area. More...
|
|
virtual | ~BaseClass () |
| This is the default BaseClass destructor. 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 that is due to the action of a fleet in the Gadget model.
This class calculates the catch of the fleets that are to be modelled within the simulation. The fleets are treated as (non-dynamic) predators that ''eat'' the stock that is defined as the prey of the fleet. The amount of the stock that is eaten is calculated by the predator that is associated with the fleet. There are 5 types of fleet, each with a different predator class to calculate the level of predation. A fleet that has been declared as a TOTALFLEET uses the TotalPredator class to calculate the predation, a LINEARFLEET uses the LinearPredator class to calculate the predation, a NUMBERFLEET uses the NumberPredator class to calculate the predation by number, a EFFORTFLEET uses the EffortPredator class to calculate the predation based on effort data and a QUOTAFLEET uses the QuotaPredator class to calculate the fishing quota based on the biomass of stock available, and then uses this calculated fishing level to calculate the predation of the stock.