simbad.sim
Class ErraticGoalAgent

java.lang.Object
  extended by simbad.sim.BaseObject
      extended by simbad.sim.SimpleAgent
          extended by simbad.sim.Agent
              extended by simbad.sim.ErraticGoalAgent

public class ErraticGoalAgent
extends Agent


Field Summary
(package private)  double angle
           
(package private)  double angleCurrent
           
(package private)  RangeSensorBelt bumpers
           
(package private)  double clockwise
           
(package private)  javax.vecmath.Vector3d currentPosition
           
(package private)  double d
           
(package private)  double dot
           
(package private)  javax.vecmath.Vector3d goal
           
(package private)  javax.vecmath.Vector3d lastPosition
           
(package private)  RangeSensorBelt sonars
           
(package private)  double speed
           
(package private)  boolean stop
           
 
Fields inherited from class simbad.sim.Agent
agentInspector, frameMeter, kinematicModel, motorsAngularAcceleration, motorsLinearAcceleration, window
 
Fields inherited from class simbad.sim.SimpleAgent
angularAcceleration, angularVelocity, body, collisionDetected, collisionDistance, collisionRadius, dynamicFrictionCoefficient, height, instantRotation, instantTranslation, interactionDetected, linearAcceleration, linearVelocity, mass, name, odometer, positionChanged, radius, staticFrictionCoefficient, t3d1, t3d2, t3d3, v1, veryNearAgent
 
Fields inherited from class simbad.sim.BaseObject
black, branchGroup, canBeTraversed, compilable, detachedFromSceneGraph, group, localBounds, material, rotation, rotationGroup, translation, translationGroup, white, world
 
Constructor Summary
ErraticGoalAgent(javax.vecmath.Vector3d position, javax.vecmath.Vector3d givenGoal, java.lang.String name)
           
ErraticGoalAgent(javax.vecmath.Vector3d position, javax.vecmath.Vector3d givenGoal, java.lang.String name, double givenSpeed)
           
 
Method Summary
 void initBehavior()
          Initialize Agent's Behavior
 void performBehavior()
          Perform one step of Agent's Behavior
 
Methods inherited from class simbad.sim.Agent
asString, create3D, createUIWindow, dispose, getAgentInspector, getKinematicModel, getOdometer, getRotationalVelocity, getTranslationalVelocity, getUIPanel, initPreBehavior, performPreBehavior, reset, resetPosition, setAgentInspector, setFrameMeterRate, setKinematicModel, setMotorsAcceleration, setRotationalVelocity, setTranslationalVelocity, setUIPanel
 
Methods inherited from class simbad.sim.SimpleAgent
addActuatorDevice, addSensorDevice, anOtherAgentIsVeryNear, checkCollision, clearVeryNear, collisionDetected, create, distanceToGround, getActuatorDevice, getActuatorList, getCoords, getCoords, getCounter, getHeight, getLifeTime, getMass, getName, getRadius, getSensorDevice, getSensorList, getVeryNearAgent, integratesPositionChange, integratesVelocities, interactionDetected, moveToPosition, moveToPosition, moveToStartPosition, resetDevices, resetPositionAt, setSimulator, updateActuators, updateCounters, updatePosition, updateSensors, veryNear
 
Methods inherited from class simbad.sim.BaseObject
addChild, addChild, attach, compile, create3D, detach, getBounds, getCanBeTraversed, getGroup, getNode, getRotationTransform, getRotationTransformGroup, getTranslation, getTranslationTransform, getTranslationTransform, resetTransforms, rotateY, setBounds, setCanBeTraversed, setColor, setWorld, translateTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sonars

RangeSensorBelt sonars

bumpers

RangeSensorBelt bumpers

goal

javax.vecmath.Vector3d goal

currentPosition

javax.vecmath.Vector3d currentPosition

lastPosition

javax.vecmath.Vector3d lastPosition

d

double d

clockwise

double clockwise

angle

double angle

dot

double dot

angleCurrent

double angleCurrent

speed

double speed

stop

boolean stop
Constructor Detail

ErraticGoalAgent

public ErraticGoalAgent(javax.vecmath.Vector3d position,
                        javax.vecmath.Vector3d givenGoal,
                        java.lang.String name)

ErraticGoalAgent

public ErraticGoalAgent(javax.vecmath.Vector3d position,
                        javax.vecmath.Vector3d givenGoal,
                        java.lang.String name,
                        double givenSpeed)
Method Detail

initBehavior

public void initBehavior()
Initialize Agent's Behavior

Overrides:
initBehavior in class Agent

performBehavior

public void performBehavior()
Perform one step of Agent's Behavior

Overrides:
performBehavior in class Agent