|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anji.floatingeye.AnjiNetFloatingEye
public class AnjiNetFloatingEye
TODO - non square surface & non square eyes
Implements a floating eye that integrates with an AnjiNet ANN.
| Constructor Summary | |
|---|---|
AnjiNetFloatingEye(AnjiNet aNet,
Surface aSurface,
int anEyeDim,
EyeMovementParms movementParms,
AffinityListener anAffinityListener,
java.util.List additionalInputConnections)
Connects and AnjiNet to a FloatingEye. |
|
| Method Summary | |
|---|---|
long |
cost()
|
FloatingEye |
getFloatingEye()
|
int |
getStepNum()
|
java.lang.String |
getXmld()
|
java.lang.String |
getXmlRootTag()
|
void |
reset()
reset neural net and state of eye |
void |
step()
load eye, step network, and update position from network output |
void |
step(int count)
|
java.lang.String |
toString()
|
java.lang.String |
toXml()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnjiNetFloatingEye(AnjiNet aNet,
Surface aSurface,
int anEyeDim,
EyeMovementParms movementParms,
AffinityListener anAffinityListener,
java.util.List additionalInputConnections)
AnjiNet to a FloatingEye.
aNet - in general, input dimensions must be at least 5 (x, y, z, theta, bias) + 2*eyeDim
(1 input for each coordinate in eye) + number of connections in additionalInputConnections,
and output dimension must be at least 5 (x, y, z, rotate, affinity); but, any input for which
the corresponding maxMovePerStep parameter is 0 is omittedaSurface - 2-d matrix of intsanEyeDim - movementParms - paramaters controlling movement of eyeanAffinityListener - updated when affinity is updatedadditionalInputConnections - input connections in addition to x, y, z, theta, and bias| Method Detail |
|---|
public java.lang.String toXml()
toXml in interface XmlPersistableString XML representation of objectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void reset()
public void step(int count)
count - number of times to stepstep()public void step()
public int getStepNum()
public long cost()
AnjiNet.cost()public FloatingEye getFloatingEye()
public java.lang.String getXmlRootTag()
getXmlRootTag in interface XmlPersistableXmlPersistable.getXmlRootTag()public java.lang.String getXmld()
getXmld in interface XmlPersistableXmlPersistable.getXmld()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||