This function updates the coordinate of each lobster at each timestep,
updateGrid(
Lobster,
Trap,
trapCatch,
lobSize,
lobSex,
radiusOfInfluence,
currentZoI,
dStep,
howClose,
q0,
qmin,
saturationThreshold,
trapSaturation,
lengthBased,
lobLengthThreshold,
sexBased
)a list of new coordinates, number of catch and their sizes
is the x & y coordinates of each lobster
is the x & y coordinates of the trap
number of trapped lobster
Size of trapped lobster
Sex of trapped lobster
is the initial radius of influence
is the bait's area of influence at each timestep
is how much a lobster moves in each time step
The area within which a lobster considered trapped
is the initial probability of entry into an empty trap
is the asymptotic minimum probability of entry
is the number of lobsters in a trap at which the probability of another lobster entering the trap is zero
Logical. If TRUE, lobsters behavioral interaction is included during the simulation.
Logical. If TRUE, lobster size is taken into account
is a size threshold (Carapace Length in mm), if a lobster larger than this threshold caught there will be no more entry to the trap
Logical. If TRUE, lobster sex is taken into account and user must provide a list containing sex distribution for the simulated population