org.nlogo.agent
Class Observer3D

java.lang.Object
  extended by java.util.Observable
      extended by org.nlogo.agent.Agent
          extended by org.nlogo.agent.Observer
              extended by org.nlogo.agent.Observer3D
All Implemented Interfaces:
Comparable<Agent>, Agent3D, Agent, Observer

public final class Observer3D
extends Observer
implements Agent3D


Field Summary
 
Fields inherited from class org.nlogo.agent.Observer
BIT
 
Fields inherited from class org.nlogo.agent.Agent
id, variables
 
Constructor Summary
Observer3D(World world)
           
 
Method Summary
 double distance(Agent agent)
           
 double distance(double x, double y, double z)
           
 double distance(Turtle t)
           
 void face(double x, double y, double z)
           
 double followOffsetZ()
           
 Patch3D getPatchAtOffsets(double dx, double dy, double dz)
           
 void home()
           
 void moveto(Agent otherAgent)
           
 void orbitRight(double delta)
           
 void orbitUp(double delta)
           
 void setRotationPoint(Agent agent)
           
 void translate(double thetaX, double thetaY)
           
 boolean updatePosition()
           
 
Methods inherited from class org.nlogo.agent.Observer
assertVariableConstraint, atHome2D, atHome3D, classDisplayName, dist, distance, dx, dy, dz, face, face, followDistance, followDistance, followOffsetX, followOffsetY, getAgentBit, getAgentClass, getBreedVariable, getLinkBreedVariable, getLinkVariable, getObserverVariable, getPatchAtOffsets, getPatchVariable, getTurtleOrLinkVariable, getTurtleVariable, getVariable, heading, heading, oxcor, oxcor, oxyandzcor, oycor, oycor, ozcor, ozcor, perspective, perspective, pitch, pitch, resetPerspective, roll, roll, rotationPoint, setBreedVariable, setLinkBreedVariable, setLinkVariable, setLinkVariable, setObserverVariable, setOrientation, setPatchVariable, setPatchVariable, setPerspective, setPerspective, setRotationPoint, setRotationPoint, setTurtleOrLinkVariable, setTurtleVariable, setTurtleVariable, setVariable, shape, size, targetAgent, targetAgent, toString
 
Methods inherited from class org.nlogo.agent.Agent
compareTo, getVariableCount, id, variableConstraint, variableConstraint, world
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nlogo.api.Agent
id, world
 

Constructor Detail

Observer3D

public Observer3D(World world)
Method Detail

home

public void home()
Overrides:
home in class Observer

updatePosition

public boolean updatePosition()
Overrides:
updatePosition in class Observer

distance

public double distance(Agent agent)

distance

public double distance(Turtle t)
Overrides:
distance in class Observer

distance

public double distance(double x,
                       double y,
                       double z)

followOffsetZ

public double followOffsetZ()

face

public void face(double x,
                 double y,
                 double z)

moveto

public void moveto(Agent otherAgent)
Overrides:
moveto in class Observer

getPatchAtOffsets

public Patch3D getPatchAtOffsets(double dx,
                                 double dy,
                                 double dz)
                          throws AgentException
Specified by:
getPatchAtOffsets in interface Agent3D
Throws:
AgentException

setRotationPoint

public void setRotationPoint(Agent agent)
Overrides:
setRotationPoint in class Observer

orbitRight

public void orbitRight(double delta)
Overrides:
orbitRight in class Observer

orbitUp

public void orbitUp(double delta)
Overrides:
orbitUp in class Observer

translate

public void translate(double thetaX,
                      double thetaY)
Overrides:
translate in class Observer