org.simnet.neurons
Class ThreeValuedNeuron

java.lang.Object
  extended by org.simnet.interfaces.Neuron
      extended by org.simnet.neurons.ThreeValuedNeuron
All Implemented Interfaces:
GaugeSource

public class ThreeValuedNeuron
extends Neuron

ThreeValuedNeuron.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Neuron
activation, fanIn, fanOut, lowerBound, upperBound
 
Constructor Summary
ThreeValuedNeuron()
          Default constructor needed for external calls which create neurons then set their parameters.
ThreeValuedNeuron(Neuron n)
          This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.
 
Method Summary
 Neuron duplicate()
           
 double getBias()
           
 double getLowerThreshold()
           
 double getLowerValue()
           
 double getMiddleValue()
           
static String getName()
           
 int getTimeType()
           
 double getUpperThreshold()
           
 double getUpperValue()
           
 void setBias(double bias)
           
 void setLowerThreshold(double lowerThreshold)
           
 void setLowerValue(double lowerValue)
           
 void setMiddleValue(double middleValue)
           
 void setUpperThreshold(double upperThreshold)
           
 void setUpperValue(double upperValue)
           
 void update()
          Updates the neurons as inputs change.
 
Methods inherited from class org.simnet.interfaces.Neuron
addActivation, addSource, addTarget, checkBounds, clear, clip, connectedToWeight, containsString, debug, decrementActivation, deleteConnectedSynapses, deleteFanIn, deleteFanOut, duplicate, getActivation, getAverageInput, getBuffer, getFanIn, getFanOut, getGaugeValue, getHelp, getId, getIncrement, getInputValue, getLowerBound, getMotorCoupling, getNeuronTypeIndex, getNumberOfActiveInputs, getParentNetwork, getSensoryCoupling, getSummedIncomingWeights, getToolTipText, getTotalInput, getType, getTypeList, getUpperBound, getWeightedInputs, getX, getY, incrementActivation, initCastor, isInput, isOutput, randomize, randomizeBuffer, round, setActivation, setBuffer, setFanIn, setFanOut, setId, setIncrement, setInputValue, setLowerBound, setMotorCoupling, setParentNetwork, setSensoryCoupling, setTypeList, setUpperBound, setX, setY, toString, updateConnectedOutward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreeValuedNeuron

public ThreeValuedNeuron()
Default constructor needed for external calls which create neurons then set their parameters.


ThreeValuedNeuron

public ThreeValuedNeuron(Neuron n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.

Parameters:
n - Neuron to be created
Method Detail

getTimeType

public int getTimeType()
Specified by:
getTimeType in class Neuron
Returns:
Time type.

duplicate

public Neuron duplicate()
Specified by:
duplicate in class Neuron
Returns:
duplicate ThreeValuedNeuron (used, e.g., in copy/paste).

update

public void update()
Updates the neurons as inputs change.

Specified by:
update in class Neuron

getName

public static String getName()
Returns:
Name of neuron type.

getBias

public double getBias()
Returns:
the bias.

setBias

public void setBias(double bias)
Parameters:
bias - The bias to set.

getLowerThreshold

public double getLowerThreshold()
Returns:
the lower threshold.

setLowerThreshold

public void setLowerThreshold(double lowerThreshold)
Parameters:
lowerThreshold - The lower threshold to set.

getLowerValue

public double getLowerValue()
Returns:
the lower value.

setLowerValue

public void setLowerValue(double lowerValue)
Parameters:
lowerValue - The lower value to set.

getMiddleValue

public double getMiddleValue()
Returns:
the middle value.

setMiddleValue

public void setMiddleValue(double middleValue)
Parameters:
middleValue - The middle value to set.

getUpperThreshold

public double getUpperThreshold()
Returns:
the upper threshold.

setUpperThreshold

public void setUpperThreshold(double upperThreshold)
Parameters:
upperThreshold - The upper threshold to set.

getUpperValue

public double getUpperValue()
Returns:
the upper value.

setUpperValue

public void setUpperValue(double upperValue)
Parameters:
upperValue - The upper value to set.