com.anji.floatingeye
Class LocationYConnection

java.lang.Object
  extended by com.anji.floatingeye.LocationYConnection
All Implemented Interfaces:
Connection

public class LocationYConnection
extends java.lang.Object
implements Connection

Author:
Philip Tucker

Field Summary
 
Fields inherited from interface com.anji.nn.Connection
XML_TAG
 
Constructor Summary
LocationYConnection(FloatingEye anEye)
           
 
Method Summary
 long cost()
           
 double read()
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationYConnection

public LocationYConnection(FloatingEye anEye)
Parameters:
anEye - floating eye object from which to get location data
Method Detail

read

public double read()
Specified by:
read in interface Connection
Returns:
double value carried on this connection from incoming neuron
See Also:
Connection.read()

toXml

public java.lang.String toXml()
Specified by:
toXml in interface Connection
Returns:
String representation of object
See Also:
Connection.toXml()

cost

public long cost()
Specified by:
cost in interface Connection
Returns:
number corresponding to cost of activation in resources
See Also:
Connection.cost()