Marine systems simulation
Fish::IndividualFish Class Reference
+ Collaboration diagram for Fish::IndividualFish:

Classes

struct  behaviour_vote
 

Public Member Functions

void Init (FishResources *fishResources, std::mt19937 &rng, const double *states)
 
void calculateDerivative (int index, const double T, const double *const X, double *const XDot, std::mt19937 &rng, std::vector< int > &ingestionList, bool &obstacle)
 
vec3 Position ()
 
vec3 Velocity ()
 
double BodyLength ()
 
double CharacteristicVelocity ()
 
char BehaviouralState ()
 
void UpdateStates (const double *states)
 
void WriteStates (double *states)
 
int entropy ()
 
vec3 VelocityRel ()
 
double GetDEBG0 ()
 
double GetDEBE0 ()
 
double GetDEBV0 ()
 

Static Public Member Functions

static double forward_scanning_distance (const vec3 &P0, const vec3 &V0, const vec3 &P1, const vec3 &V1)
 

Protected Member Functions

behaviour_vote containment_behaviour (Fish::FishCage &cage, Fish::FishParameters &parameters, vec3 &current, double surface_elevation, double &wallcur, double &walldis)
 
behaviour_vote temperature_behaviour ()
 
behaviour_vote light_behaviour ()
 
behaviour_vote schooling_behaviour (Fish::FishParameters &parameters, int index)
 
behaviour_vote feed_behaviour (const double T, const double *const X, std::mt19937 &rng)
 
behaviour_vote wandering_behaviour (Fish::FishParameters &parameters, std::mt19937 &rng, const double T)
 
behaviour_vote obstacle_behaviour (bool &obstacle)
 
behaviour_vote schooling_behaviour_h (Fish::FishParameters &parameters, int index, const double T)
 
behaviour_vote schooling_behaviour_v (Fish::FishParameters &parameters, int index)
 

Protected Attributes

FishResourcesm_ptr
 
float m_lastEvaluationOfSatiation
 pointer to all common resources, f.i. DebModel, FishParameters, RNG, etc.
 
float m_startTimeManipulation
 Last timestamp at which the fish evaluated whether it experiences satiation or hunger.
 
vec3 m_Position
 Timestamp at which the fish commenced present feed manipulation.
 
vec3 m_Velocity
 
double m_debG
 
double m_debE
 
double m_debV
 
double m_Length
 
char m_behaviouralState
 
CompactData::Duration m_manipulateTime
 
CompactData::Temperature m_prefTemperatureLow
 
CompactData::Temperature m_prefTemperatureHigh
 
CompactData::Speed m_characteristicVelocityFactor
 
CompactData::Speed m_maxSustainableVelocityFactor
 
bool outside_net
 
bool m_obsInt
 
vec3 m_VelocityRel
 
double m_debG0
 
double m_debE0
 
double m_debV0
 

The documentation for this class was generated from the following file: