keba
Class AnimatNN

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.BranchGroup
                          |
                          +--keba.Phenomenon
                                |
                                +--keba.Animat
                                      |
                                      +--keba.AnimatNN
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AnimatNN
extends Animat

See Also:
Serialized Form

Field Summary
static int FL
           
static int FR
           
(package private)  float[] hidden
           
static int HUNGER
           
(package private)  float[] inputs
           
static int LEFT
           
static int LM
           
static int NHIDDEN
           
static int NINPUTS
           
(package private)  float noise
           
static int NOUTPUTS
           
(package private)  float[] outputs
           
static int RIGHT
           
static int RL
           
static int RM
           
static int RR
           
static int THIRST
           
(package private)  float thr
           
(package private)  float[][] v
           
(package private)  float[][] w
           
static int WL
           
static int WR
           
 
Fields inherited from class keba.Animat
af, dead, energy, hunger, immortal, leaveTrail, msg, name, ostream, periodWrite, rp, th, thirst, toFile, trail, trailApp, trailBG, trailT, trailT2, trailTG, trailTG2, transWrite, verbose, x2, z2
 
Fields inherited from class keba.Phenomenon
colour, flavour, hardness, id, loudness, odour, radius, t, tg, time, type, x, z
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
capabilities, nodeHashtable, retained
 
Constructor Summary
AnimatNN(float nz, float nx, float nradius, long nid)
           
 
Method Summary
 void drink()
           
 void eat()
           
 boolean foodAtRange()
           
 int foodPerc()
           
 void leftMotor(double thr)
           
 int LRPh(Phenomenon ph)
           
 void move()
           
 boolean rainAtRange()
           
 int rainPerc()
           
(package private)  void restore()
           
 void rightMotor(double thr)
           
 int rockNear()
           
(package private)  void step()
           
 
Methods inherited from class keba.Animat
clean, destroy, getToroidalD, init3D, iniTrail, noise, removeTrail, setEnergy, setHunger, setTh, setThirst, setX, setZ, stepState
 
Methods inherited from class keba.Phenomenon
clone, restore3D, sinit3D
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, createRetained, detach, pickAll, pickAllSorted, pickAny, pickClosest
 
Methods inherited from class javax.media.j3d.Group
addChild, cloneTree, duplicateAttributes, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, insertChild, moveTo, numChildren, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
checkDuplicateNode, checkForCycle, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
checkForLiveOrCompiled, clearCapability, clearLive, duplicateSceneGraphObject, getCapability, getNodeComponent, getUserData, isCompiled, isLive, isLiveOrCompiled, setCapability, setCompiled, setLive, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputs

float[] inputs

hidden

float[] hidden

outputs

float[] outputs

w

float[][] w

v

float[][] v

thr

float thr

noise

float noise

LEFT

public static final int LEFT

RIGHT

public static final int RIGHT

NINPUTS

public static final int NINPUTS

WL

public static final int WL

WR

public static final int WR

FL

public static final int FL

FR

public static final int FR

RL

public static final int RL

RR

public static final int RR

THIRST

public static final int THIRST

HUNGER

public static final int HUNGER

NHIDDEN

public static final int NHIDDEN

NOUTPUTS

public static final int NOUTPUTS

LM

public static final int LM

RM

public static final int RM
Constructor Detail

AnimatNN

public AnimatNN(float nz,
                float nx,
                float nradius,
                long nid)
Method Detail

restore

void restore()
Overrides:
restore in class Animat

step

void step()
Overrides:
step in class Animat

move

public void move()

LRPh

public int LRPh(Phenomenon ph)

foodPerc

public int foodPerc()

rainPerc

public int rainPerc()

rockNear

public int rockNear()

foodAtRange

public boolean foodAtRange()

rainAtRange

public boolean rainAtRange()

rightMotor

public void rightMotor(double thr)

leftMotor

public void leftMotor(double thr)

eat

public void eat()

drink

public void drink()