Example #1
0
        public bool isWithinBirthRange(int x, int y, int z, AbstractEnvironmentType env)
        {
            int d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.gw);

            //_around = d;
            tempValue = d;
            if (d >= PhysaSetting.gmin && d < PhysaSetting.gmax)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        public bool isOutsideSurvivalRange(int x, int y, int z, AbstractEnvironmentType env)
        {
            if (_distance_traveled > PhysaSetting._death_distance)
            {
                return(true);
            }
            double d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.sw);

            if (d < PhysaSetting.smin || d > PhysaSetting.smax)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
 public bool isWithinBirthRange(int x, int y, int z, AbstractEnvironmentType env)
 {
     int d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.gw);
     //_around = d;
     tempValue = d;
     if (d >= PhysaSetting.gmin && d < PhysaSetting.gmax)
         return true;
     else
         return false;
 }
Example #4
0
 public bool isOutsideSurvivalRange(int x, int y, int z, AbstractEnvironmentType env)
 {
     if (_distance_traveled > PhysaSetting._death_distance)
     {
         return true;
     }
     double d = env.countNumberOfParticlesPresentByIndex(x, y, z, PhysaSetting.sw);
     if (d < PhysaSetting.smin || d > PhysaSetting.smax)
         return true;
     else return false;
 }