com.anji.nn
Class RandomConnection

java.lang.Object
  extended bycom.anji.nn.RandomConnection
All Implemented Interfaces:
Connection

public class RandomConnection
extends java.lang.Object
implements Connection

Author:
Philip Tucker

Field Summary
 
Fields inherited from interface com.anji.nn.Connection
XML_TAG
 
Method Summary
 long cost()
           
static RandomConnection getInstance()
           
 double read()
           
 void setRand(java.util.Random aRand)
           
 java.lang.String toXml()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRand

public void setRand(java.util.Random aRand)
Parameters:
aRand - new random generator

getInstance

public static RandomConnection getInstance()
Returns:
singleton instance

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()