biosim.core.body
Class NotemigonusCrysoleucas
java.lang.Object
biosim.core.body.Body
biosim.core.body.AbstractFish
biosim.core.body.NotemigonusCrysoleucas
- All Implemented Interfaces:
- HolonomicDrive, AverageSameTypeVec, NearestObstacleVec, NearestSameTypeVec, Proximity, SelfVelXYT, ZoneCoMVecs, java.io.Serializable, sim.engine.Steppable
public class NotemigonusCrysoleucas
- extends AbstractFish
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
desiredVelXYT
public double[] desiredVelXYT
SIZE
public static final double SIZE
- See Also:
- Constant Field Values
RANGE
public static final double RANGE
- See Also:
- Constant Field Values
MAX_VELOCITY_X
public static final double MAX_VELOCITY_X
- See Also:
- Constant Field Values
MAX_VELOCITY_Y
public static final double MAX_VELOCITY_Y
- See Also:
- Constant Field Values
MAX_VELOCITY_THETA
public static final double MAX_VELOCITY_THETA
- See Also:
- Constant Field Values
PROX_SENSORS
public static final int PROX_SENSORS
- See Also:
- Constant Field Values
PROX_RANGE
public static final double PROX_RANGE
- See Also:
- Constant Field Values
NUM_ZONES
public static final int NUM_ZONES
- See Also:
- Constant Field Values
REPULSION_ZONE_RANGE
public static final double REPULSION_ZONE_RANGE
- See Also:
- Constant Field Values
ORIENTATION_ZONE_RANGE
public static final double ORIENTATION_ZONE_RANGE
- See Also:
- Constant Field Values
ATTRACTION_ZONE_RANGE
public static final double ATTRACTION_ZONE_RANGE
- See Also:
- Constant Field Values
REPULSION_ZONE_IDX
public static final int REPULSION_ZONE_IDX
- See Also:
- Constant Field Values
ORIENTATION_ZONE_IDX
public static final int ORIENTATION_ZONE_IDX
- See Also:
- Constant Field Values
ATTRACTION_ZONE_IDX
public static final int ATTRACTION_ZONE_IDX
- See Also:
- Constant Field Values
NotemigonusCrysoleucas
public NotemigonusCrysoleucas()
isLeader
public boolean isLeader()
setLeader
public void setLeader(boolean leader)
getSelfVelXYT
public boolean getSelfVelXYT(double[] rv)
getSize
public double getSize()
- Description copied from class:
Body
- The size of the body in meters. Used in the default portrayal as the size
of the displayed circle. Also used in the default Environment.configSim(...)
method to determine if a random location for a body is a valid starting
location. For Body classes that use more complicated collision detection
you may need to write a custom configSim(...) method.
- Specified by:
getSize
in class Body
getRandom
public ec.util.MersenneTwisterFast getRandom()
- Specified by:
getRandom
in class Body
getNearestObstacleVec
public boolean getNearestObstacleVec(sim.util.MutableDouble2D rv)
getNearestObstacleVecSensorRange
public double getNearestObstacleVecSensorRange()
getNearestSameTypeVec
public boolean getNearestSameTypeVec(sim.util.MutableDouble2D rv)
getNearestSameTypeVecSensorRange
public double getNearestSameTypeVecSensorRange()
getProximity
public double[] getProximity(double[] rv)
getNumProximitySensors
public int getNumProximitySensors()
getProximitySensorRange
public double getProximitySensorRange()
getAverageSameTypeVec
public boolean getAverageSameTypeVec(sim.util.MutableDouble2D rv)
getAverageSameTypeVecSensorRange
public double getAverageSameTypeVecSensorRange()
getZoneCoMVecs
public boolean getZoneCoMVecs(sim.util.MutableDouble2D[] zoneVecs)
getZoneRanges
public void getZoneRanges(double[] zoneRanges)
getNumZones
public int getNumZones()
setDesiredVelocity
public void setDesiredVelocity(double x,
double y,
double theta)
computeNewConfiguration
protected boolean computeNewConfiguration(sim.util.MutableDouble2D newPos,
sim.util.MutableDouble2D newDir)
- Specified by:
computeNewConfiguration
in class Body