Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }